-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error trying to import octave in Anaconda Spyder using "from oct2py import octave" #303
Comments
Hi @HamidKarimi-Rouzbahani, what is the error that is printed? It his coming from this line. |
Hi @blink1073, Thanks for getting back to me. The error is as above: ImportError: cannot import name 'octave' from 'oct2py' (C:\Users\99021\Anaconda3\envs\pyspi\lib\site-packages\oct2py\ init.py) Please note that it drops the double underlines before and after init when I paste the error here. I am not sure which line of init it comes from. Sorry, I am not super familiar with Python. Is there any more information that can help you? I am trying to use the pyspi toolbox, which seems to use some matlab codes and therefore needs octave. So, it calls oct2py to load octave but seems to fail. I have installed GNU octave from here: https://octave.org/download Thanks |
Hmm, perhaps this command will give us a better answer. |
Command Prompt returns this error: C:\Program Files\Python\Python39\python.exe: Error while finding module specification for 'octave_kernel.check.' (ModuleNotFoundError: No module named 'octave_kernel') Would it be possible to drop a few lines here about how to install octave and load it through oct2py in Spyder? Maybe if I understand how it is to be done, I can manage to fix the problem somehow. |
This looks like a multiple-pythons issue. I'd recommend asking for help from the spyder folks, I haven't used spyder in many years. |
I have the same problem when I import octave root@62ec78395647:/home# python3 -m octave_kernel.check Connecting to Octave... |
And I ran this :
During handling of the above exception, another exception occurred: Traceback (most recent call last): |
+1 |
Hi there,
I am trying to import octave in Anaconda Spyder using this command:
from oct2py import octave
However, it gives an error and says:
cannot import name 'octave' from 'oct2py' (C:\ ...\ ...\Anaconda3\envs\pyspi\lib\site-packages\oct2py_init_.py)
my oct2py is a version 5.6.0 and I am using Python 3.9.0 on a Windows 10 machine.
Can you help me with this issue?
Thanks,
Hamid
The text was updated successfully, but these errors were encountered: