ryanvolz / radioconda

Software radio distribution and installer for conda
Other
342 stars 39 forks source link

GNU radio companion does not start #27

Closed ottomc2 closed 1 month ago

ottomc2 commented 1 year ago

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

ryanvolz commented 1 year 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.

ottomc2 commented 1 year ago

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

ottomc2 commented 1 year ago

it does not seem to like % after PYTHONPATH also, echo -command is not recognized the location of .exe file looks correct otherwise?

ryanvolz commented 1 year ago

(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)
ottomc2 commented 1 year ago

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']

ryanvolz commented 1 year ago

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?

ottomc2 commented 1 year ago

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 from .index_tricks import * File "C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\numpy\lib\index_tricks.py", line 12, in import numpy.matrixlib as matrixlib File "C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\numpy\matrixlib\init__.py", line 4, in 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\init.py", line 73, in from . import linalg File "C:\Users\ernst.otto\AppData\Local\conda1\lib\site-packages\numpy\linalg\linalg.py", line 34, in 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\init__.py)

ottomc2 commented 1 year ago

import math

ottomc2 commented 1 year ago

import math

ottomc2 commented 1 year ago

this interface does not like >

ottomc2 commented 1 year ago

hence, my text looks weird when i type >>> in the beginning. there is no responce on import math; it just returns: >>> that's it

ryanvolz commented 1 year ago

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.

ryanvolz commented 1 month ago

Not sure if this is still an issue. Please re-open if it is.