I am trying to install the 'io' package for Octave on my Macbook Air, because I want to convert the .mat file into .xls file. However, when I try to install the package, the following errors appear:
octave:33> pkg install io-2.2.6.tar.gz
gzip: /Users/mlt660609/Downloads/io-2.2.6.tar.gz: not in gzip format
A(I): index out of bounds; value 3 out of bound 2
error: called from 'install' in file /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/install.m near line 102, column 19
error: called from:
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/private/install.m at line 146, column 5
error: /usr/local/octave/3.8.0/share/octave/3.8.0/m/pkg/pkg.m at line 394, column 9
Anyone can help?? Thanks.
Related
I want to install the image package in Octave-online.net, but when I tried it, it gave me an error message. I am on a MacBook Air 2013 (if that's important), on macOS 11.7.2 .
I have tried to install Octave on my laptop and that didn't work, so I'm trying it with the online version.
I wrote
pkg install -forge image
and expected it to install the package, but instead it gave me the following error message:
error: get_forge_pkg: could not read version number from package's page
error: called from
get_forge_pkg at line 55 column 7
get_forge_download at line 32 column 14
pkg at line 538 column 31
Does somebody know how to fix this or another way to install the package?
Thanks so much!
i'm doing a program in octave in which i got
t=0:.0002:20;
Gs=tf(100,[1 10])
u1=sin(t);
y1=lsim(Gs,u1,t);
plot(t,9.95*sin(t-0.1),’r’,t,y1,’b’)
However when i write Gs=tf(100,[1 10]) in the command window it appears "warning: the 'tf' function belongs to the control package from Octave Forge which
you have installed but not loaded. To load the package, run 'pkg load
control' from the Octave prompt."
How can i load this package? I trully can't understand it...
enter image description here
enter image description here
When i load it it appears:
pkg load control
warning: addpath: C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages\control-3.2.0: No such file or d
irectory
warning: called from
load_packages_and_dependencies at line 48 column 5
load_packages at line 47 column 3
pkg at line 461 column 7
t=0:.0002:20;
Gs=tf(100,[1 10])
error: could not find any INDEX file in directory C:\Octave\OCTAVE~1.0\mingw64\share\octave\packages
control-3.2.0, try 'pkg rebuild all' to generate missing INDEX files
error: called from
describe>parse_pkg_idx at line 94 column 5
describe at line 59 column 40
pkg at line 555 column 43
unimplemented>check_package at line 540 column 15
unimplemented at line 127 column 11
In the octave terminal, type
pkg load control
To load the control package. If you do not already have the control package installed, you need to install it. You can do so directly from Octave Forge by typing
pkg install -forge control
Note that this will install this package in your predefined 'prefix'. You can find where that is by typing
pkg prefix
If you're not sure if you have the control package installed, you can check the list of already installed packages by typing
pkg list
Type help pkg to see more details about how octave's package manager works.
In any case, the tf function belongs to the control package, and like all packages, you need to load it before you can use its functions.
Having said this, even after loading the control package, your above code doesn't work. It seems like you're calling the tf function using the wrong format.
I am new to Octave, coming from Matlab. I am trying to install a few packages, and so far none has worked. I have tried the download method from forge, then running the install command. But my question is about my latest attempt. There it is:
pkg install -global -forge io
csvconcat.cc:79:37: warning: result of comparison of constant 18446744073709551615 with expression of type
'unsigned int' is always true [-Wtautological-constant-out-of-range-compare]
while ((pos=str.find(prot, pos)) != str.npos) {
~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
1 warning generated.
error: couldn't append to /Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app#4.4.1/4.4.1/share/octave/octave_packages
save: unable to open output file '/Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app#4.4.1/4.4.1/share/octave/octave_packages'
error: called from
install at line 254 column 7
pkg at line 437 column 9
Couldn't find any documentation on it, I am a bit lost.... (oh and btw, I can't find the config.log file! where is that gem?)
I am on MacOS catalina 10.15.7, and just followed that procedure https://flaviocopes.com/fix-xcrun-error-invalid-active-developer-path/, which solved the issues I had before which is described on that page.
cheers for any help
The error:
error: couldn't append to /Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app#4.4.1/4.4.1/share/octave/octave_packages
save: unable to open output file '/Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app#4.4.1/4.4.1/share/octave/octave_packages'
error: called from
install at line 254 column 7
pkg at line 437 column 9
basically says it's failing to save to that file. Probably a permissions issue. Check if the file /Applications/Octave-4.4.1.app/Contents/Resources/usr/Cellar/octave-octave-app#4.4.1/4.4.1/share/octave/octave_packages exists and its permissions. That file is a database of all packages installed globally, i.e., for all users in the system.
Fixing the permission issues is dependent on what is the permissions issue you have (probably you need to run octave as root to install a global package). But maybe try to install the package for your user only, i.e., install the package without the -global flag, like so:
pkg install -forge io
Iam trying to use Octave 4.2.2 with Symbolic pkg v.2.9.0 but I get this error related to sympy package:
Your kit looks good for running the Symbolic package. Happy hacking!
>>
>> syms
Symbolic variables in current scope:
>> a = sym( "a" );
Symbolic pkg v2.9.0: /home/usuario/.local/lib/python3.6/site-packages/sympy/__init__.py:676: SymPyDeprecationWarning:
importing sympy.core.compatibility with 'from sympy import *' has been
deprecated since SymPy 1.6. Use import sympy.core.compatibility
instead. See https://github.com/sympy/sympy/issues/18245 for more
info.
deprecated_since_version="1.6").warn()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<stdin>", line 12, in octoutput_drv
File "<stdin>", line 54, in octoutput
File "<stdin>", line 55, in octoutput
File "/home/usuario/.local/lib/python3.6/site-packages/sympy/__init__.py", line 677, in __getattr__
return getattr(self.mod, name)
AttributeError: module 'sympy.core.compatibility' has no attribute 'integer_types'
Waiting................warning: readblock: timeout of 30 exceeded, breaking out
warning: called from
readblock at line 101 column 7
python_ipc_popen2 at line 99 column 14
python_ipc_driver at line 62 column 13
pycall_sympy__ at line 163 column 9
sym at line 452 column 9
no output so far
error: ipc_popen2: something wrong? timed out starting python
error: called from
python_ipc_popen2 at line 101 column 7
python_ipc_driver at line 62 column 13
pycall_sympy__ at line 163 column 9
sym at line 452 column 9
>> a
error: 'a' undefined near line 1 column 1
>>
I dig into code and find this two references:
https://github.com/sympy/sympy/pull/18245
https://github.com/sympy/sympy/pull/19316
But Iam not a programmer so any idea is greatly appreciated.
I tried to uninstall sympy-1.6 and install sympy-1.5 but that doesn't work.
Thanks for your time.
Daniel
I have managed to found the answer.
The problem is on sympy version 1.6 so I downgraded it to version 1.5.1 with pip3.
I had a similar issue, the problem seems to be that you have to install sympy for python2 not for python3. Install it with pip and then try typing in octave
sympref diagnose
And it will tell you that the current interpreter is python3, you got to change this.
setenv PYTHON python2
sympref reset
Because apparently the symbolic package was developed for python2.
I hope I could help you.
I'm transitioning to python 3.4 and trying to install NLTK.
Pyyaml and numpy are installed, setuptools and pip as well - all in the newest version- Win 7 64bit.
However, NLTK puzzles me with an error no matter how I try to install it. Here is the cmd-output of my last try. Btw, haven't changed the files in any way ;)
Does anyone know what I could do to get NLTK up and running?
C:\Python34\Scripts\nltk-3.0a4>python setup.py install
running install
Traceback (most recent call last):
File "setup.py", line 81, in <module>
zip_safe=True, # since normal files will be present too?
File "C:\Python34\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Python34\lib\site-packages\setuptools\command\install.py", line 65, i
n run
self.do_egg_install()
File "C:\Python34\lib\site-packages\setuptools\command\install.py", line 101,
in do_egg_install
cmd.ensure_finalized() # finalize before bdist_egg munges install cmd
File "C:\Python34\lib\distutils\cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
304, in finalize_options
self.index_url, search_path = self.shadow_path, hosts=hosts,
File "C:\Python34\lib\site-packages\setuptools\package_index.py", line 269, in
__init__
Environment.__init__(self,*args,**kw)
File "C:\Python34\lib\site-packages\pkg_resources.py", line 799, in __init__
self.scan(search_path)
File "C:\Python34\lib\site-packages\pkg_resources.py", line 829, in scan
self.add(dist)
File "C:\Python34\lib\site-packages\pkg_resources.py", line 849, in add
dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
TypeError: unorderable types: str() < NoneType()
Sorry, sometimes its the most obvious things that work...
In this case, simply double clicking the setup.py file from the nltk folder, allowing windows to execute it with python and its installed beautifully.
Try to install it using the following command
C:\Python34\Scripts\nltk-3.0a4>setup.py install
Open Command Prompt (Run as Administrator). Use cd to navigate to the folder in which your downloaded nltk package is present. Then run the command python setup.py install. That's all.
Did you try updating the setuptools package:
pip3 install --upgrade setuptools