Closed ottomc2 closed 1 month ago
Hmmm. If it's saying that it cannot import gnuradio, then it must have a problem with the Python path. Conda is usually pretty good about making that work in a variety of situations, but you may have some other installation of Python that is interfering. Stick to the Conda prompt and see if you can figure out how deep the problem runs. This is what I see trying the following commands:
(base) C:\Users\rvolz>where python
C:\Users\rvolz\radioconda\python.exe
C:\Users\rvolz\AppData\Local\Microsoft\WindowsApps\python.exe
(base) C:\Users\rvolz>echo %PYTHONPATH%
%PYTHONPATH%
Key results are that the radioconda python.exe
comes first, and %PYTHONPATH%
is unset so that nothing is overriding the default.
I never ran python on that computer; hence, there was no python installation prior to that of Radioconda. That's what I see when trying to type the commands you suggested: (base) C:\Users\ernst.otto>where python C:\Users\ernst.otto\AppData\Local\conda1\python.exe C:\Users\ernst.otto\AppData\Local\Microsoft\WindowsApps\python.exe
(base) C:\Users\ernst.otto>python.exe Python 3.10.5 | packaged by conda-forge | (main, Jun 14 2022, 06:57:19) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
SyntaxError: invalid syntax
echo %PYTHONPATH% File "
", line 1 echo %PYTHONPATH% ^ SyntaxError: invalid syntax echo %PYTHONPATH Traceback (most recent call last): File " ", line 1, in NameError: name 'echo' is not defined
it does not seem to like % after PYTHONPATH also, echo -command is not recognized the location of .exe file looks correct otherwise?
(base) C:\Users\ernst.otto>python.exe Python 3.10.5 | packaged by conda-forge | (main, Jun 14 2022, 06:57:19) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
SyntaxError: invalid syntax
echo %PYTHONPATH% File "", line 1 echo %PYTHONPATH% ^ SyntaxError: invalid syntax echo %PYTHONPATH Traceback (most recent call last): File "", line 1, in NameError: name 'echo' is not defined
Oh, the echo %PYTHONPATH%
line is meant to be executed from the Conda prompt and not within the Python interpreter.
the location of .exe file looks correct otherwise?
Yeah, that looks good. And running python
launches the correct conda-forge version. I'm stumped.
After launching the Python interpreter (python.exe
), can you report what the following code returns?
import sys
print(sys.path)
OK i opened a Conda prompt window and typed echo %PYTHONPATH% there: (base) C:\Users\ernst.otto>echo %PYTHONPATH% %PYTHONPATH%
Then, after launching python.exe
import sys print(sys.path) ['', 'C:\Users\ernst.otto\AppData\Local\conda1\python310.zip', 'C:\Users\ernst.otto\AppData\Local\conda1\DLLs', 'C:\Users\ernst.otto\AppData\Local\conda1\lib', 'C:\Users\ernst.otto\AppData\Local\conda1', 'C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages', 'C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\win32', 'C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\win32\lib', 'C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\Pythonwin']
Thanks. My installation reports essentially the same, but without the last 3 entries (\win32
, \win32\lib
, \Pythonwin
). Since they come at the end and the other ones look right, I don't think they would have any effect. But it's still curious to me.
You said import gnuradio
errored. How about some other things, like import math
and import numpy
?
import math : on Conda prompt directly (base) C:\Users\ernst.otto>import math 'import' is not recognized as an internal or external command, operable program or batch file. after launching python.exe :
import math
import numpy Traceback (most recent call last): File "
", line 1, in File "C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\numpy__init.py", line 143, in from . import lib File "C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\numpy\lib__init.py", line 25, in init.py", line 73, infrom .index_tricks import * File "C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\numpy\lib\index_tricks.py", line 12, in init__.py", line 4, inimport numpy.matrixlib as matrixlib File "C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\numpy\matrixlib\ from .defmatrix import * File "C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\numpy\matrixlib\defmatrix.py", line 11, in from numpy.linalg import matrix_power File "C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\numpy\linalg\ from . import linalg File "C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\numpy\linalg\linalg.py", line 34, in init__.py)from numpy.linalg import _umath_linalg ImportError: cannot import name '_umath_linalg' from partially initialized module 'numpy.linalg' (most likely due to a circular import) (C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\numpy\linalg\
import math
import math
this interface does not like >
hence, my text looks weird when i type >>> in the beginning. there is no responce on import math; it just returns: >>> that's it
So the standard library package built into Python (math
) works, but not an external package (numpy
). I don't know what that tells us and will have to think about it for a little bit.
Not sure if this is still an issue. Please re-open if it is.
I installed it recently and I have an icon but the app does not want to start. a prompt window comes up, few lines appear in it, and everything disappears in few seconds. Latest revision radioconda 2002.6.24.0 downloaded from here: https://github.com/ryanvolz/radioconda There is the only version for windows available there: radioconda-Windows-x86_64.exe installed successfully Typing like "gnuradio-companion &" in a prompt window does not help much. En error message comes: cannot import gnu radio