Re: [Discuss-gnuradio] Problem with gnuradio-companion
Hi Mike - you should do 2 things. First, type which gnuradio-companion and see if it's what you expect. And secondly, type - but don't remove anything just yet sudo apt-get remove gnuradio\* When it prompts you, type n for no. -- Cinaed On 08/03/2016 11:51 AM, Marcus Müller wrote: > Hi Mike, > > /usr/lib contains files that probably were installed by Ubuntu itself, > i.e. not built from source. > > Please make sure you're not having packages installed that conflict with > the things you want to build from source! > > Best regards, > Marcus > On 08/03/2016 08:46 PM, Mike Willis wrote: >> Oops - hit send before finishing. >> >> So, eventually I discovered that there were some files in >> /usr/lib/python2.7/dist-packages/gnuradio - not sure how they got >> there but they were dated the same date I upgraded 14.04 to 16.04. I >> moved them all to another place and that eliminated the error. But >> these are not in the path so should not have been found - unless >> python has a default path, but that would be stupid as it would cause >> all sorts of issues, like this one. >> >> But still, all my blocks are missing. How do I recompile my own block >> so gnuradio running in a prefix that is not /usr/local can find it? >> Presumably in a switch to cmake but there is nothing about this I can >> find in the pybombs documentation. >> >> Mike >> >> >> >> On Wed, Aug 3, 2016 at 7:34 PM, Mike Willis wrote: >>> The file is there so its not that. Nor was the suggestion by Cinaed >>> Simson successful. Gnuradio runs OK, but not gnuradio-companion. Hmm. >>> >>> mike@mjw-i7:~/gnuradio/lib/python2.7/dist-packages/gnuradio/grc$ ls -l >>> total 52 >>> -rw-r--r-- 1 mike mike 2374 Aug 1 12:22 checks.py >>> -rw-r--r-- 1 mike mike 2420 Aug 1 13:43 checks.pyc >>> -rw-r--r-- 1 mike mike 2420 Aug 1 13:43 checks.pyo >>> drwxrwxr-x 4 mike mike 4096 Aug 1 13:59 core >>> drwxrwxr-x 2 mike mike 4096 Aug 1 13:59 gui >>> -rw-r--r-- 1 mike mike0 Aug 1 12:22 __init__.py >>> -rw-r--r-- 1 mike mike 135 Aug 1 13:43 __init__.pyc >>> -rw-r--r-- 1 mike mike 135 Aug 1 13:43 __init__.pyo >>> -rw-r--r-- 1 mike mike 834 Aug 1 12:22 __main__.py >>> -rw-r--r-- 1 mike mike 1742 Aug 1 12:22 main.py >>> -rw-r--r-- 1 mike mike 184 Aug 1 13:43 __main__.pyc >>> -rw-r--r-- 1 mike mike 1331 Aug 1 13:43 main.pyc >>> -rw-r--r-- 1 mike mike 184 Aug 1 13:43 __main__.pyo >>> -rw-r--r-- 1 mike mike 1331 Aug 1 13:43 main.pyo >>> >>> The paths are set up in setup_env.sh >>> >>> # WARNING: This file is auto-generated by pybombs, any manual changes >>> to it may be overwritten! >>> export PATH="/home/mike/gnuradio/bin:$PATH" >>> export >>> PYTHONPATH="/home/mike/gnuradio/python:/home/mike/gnuradio/lib/python2.6/site-packages:/home/mike/gnuradio/lib64/python2.6/site-packages:/home/mike/gnuradio/lib/python2.6/dist-packages:/home/mike/gnuradio/lib64/python2.6/dist-packages:/home/mike/gnuradio/lib/python2.7/site-packages:/home/mike/gnuradio/lib64/python2.7/site-packages:/home/mike/gnuradio/lib/python2.7/dist-packages:/home/mike/gnuradio/lib64/python2.7/dist-packages:$PYTHONPATH" >>> export >>> LD_LIBRARY_PATH="/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:$LD_LIBRARY_PATH" >>> export >>> LIBRARY_PATH="/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:$LIBRARY_PATH" >>> export >>> PKG_CONFIG_PATH="/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:$PKG_CONFIG_PATH" >>> export PYBOMBS_PREFIX="/home/mike/gnuradio" >>> # If we're in a Python virtualenv, activate that >>> if [ -r /home/mike/gnuradio/bin/activate ]; then >>> source /home/mike/gnuradio/bin/activate >> ___ >> Discuss-gnuradio mailing list >> Discuss-gnuradio@gnu.org >> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > . > ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion
Hi Mike, On 08/03/2016 09:29 PM, Mike Willis wrote: > > Well I did work it out eventually, it is extremely difficult for > non-expert developers to use this software to anything like its > potential. > Honestly, I can feel your frustration, believe me. I'd love being able to roll out GNU Radio and dependencies on every system out there instantly! We all would! > > Why can’t Pybombs check for this sort of thing? > It does. > > It shouldn’t be difficult to develop a script to find old > installations and highlight them. > Well, sadly, it is. It is nearly impossible to do so reliably :( Pybombs, aside from those packages that are explicitly marked for source building, checks for "native" packages! You *can* usually install GNU Radio from source into a prefix using Pybombs next to a "native" packet. But looking at your PYTHONPATH, your system has gone through multiple iterations of that scheme, and now is seriously messed up. Sorry to say that. It's not pybombs. It's that your system, through all of the attempts of varying success at installing things parallely to your distro's installation directories has become so atypical. It's very important to me to stress this isn't "your fault" or anything. It's just that you and we have probably spent more time than reasonable at "fixing" that system instead of drawing a line somewhere clearly stating that it now would pay to make a clean-slate installation. :( > > You might say it’s just me but maybe I am the 1% that has looked at > it, tried and failed but didn’t then give up. I meet many people who > would like to use gnuradio but just find it gets too difficult very > quickly. > I know! I hope we can sort this out quickly! > > > > For those who like me who just want to get on with life and not spend > day or two learning about the intricacies of cmake – the old method of > installing blocks: > > > > mkdir build > > cd build > > cmake ../ > > make > > sudo make install > > > > needs to be replaced by: > > > > mkdir build > > cd build > > cmake ../ |-DCMAKE_INSTALL_PREFIX=/wherever/you/installed/gnuradio| > > make > > make install > Correct! If you don't want to install into the system default non-distro prefix but into your private prefix, you need to tell your build system. > > > > Since it became standard to build in a non default prefix, not > /usr/local/ 90% of the information on the web about how to do this is > out of date. > > :( Best regards, Marcus ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion
Hi Mike, /usr/lib contains files that probably were installed by Ubuntu itself, i.e. not built from source. Please make sure you're not having packages installed that conflict with the things you want to build from source! Best regards, Marcus On 08/03/2016 08:46 PM, Mike Willis wrote: > Oops - hit send before finishing. > > So, eventually I discovered that there were some files in > /usr/lib/python2.7/dist-packages/gnuradio - not sure how they got > there but they were dated the same date I upgraded 14.04 to 16.04. I > moved them all to another place and that eliminated the error. But > these are not in the path so should not have been found - unless > python has a default path, but that would be stupid as it would cause > all sorts of issues, like this one. > > But still, all my blocks are missing. How do I recompile my own block > so gnuradio running in a prefix that is not /usr/local can find it? > Presumably in a switch to cmake but there is nothing about this I can > find in the pybombs documentation. > > Mike > > > > On Wed, Aug 3, 2016 at 7:34 PM, Mike Willis wrote: >> The file is there so its not that. Nor was the suggestion by Cinaed >> Simson successful. Gnuradio runs OK, but not gnuradio-companion. Hmm. >> >> mike@mjw-i7:~/gnuradio/lib/python2.7/dist-packages/gnuradio/grc$ ls -l >> total 52 >> -rw-r--r-- 1 mike mike 2374 Aug 1 12:22 checks.py >> -rw-r--r-- 1 mike mike 2420 Aug 1 13:43 checks.pyc >> -rw-r--r-- 1 mike mike 2420 Aug 1 13:43 checks.pyo >> drwxrwxr-x 4 mike mike 4096 Aug 1 13:59 core >> drwxrwxr-x 2 mike mike 4096 Aug 1 13:59 gui >> -rw-r--r-- 1 mike mike0 Aug 1 12:22 __init__.py >> -rw-r--r-- 1 mike mike 135 Aug 1 13:43 __init__.pyc >> -rw-r--r-- 1 mike mike 135 Aug 1 13:43 __init__.pyo >> -rw-r--r-- 1 mike mike 834 Aug 1 12:22 __main__.py >> -rw-r--r-- 1 mike mike 1742 Aug 1 12:22 main.py >> -rw-r--r-- 1 mike mike 184 Aug 1 13:43 __main__.pyc >> -rw-r--r-- 1 mike mike 1331 Aug 1 13:43 main.pyc >> -rw-r--r-- 1 mike mike 184 Aug 1 13:43 __main__.pyo >> -rw-r--r-- 1 mike mike 1331 Aug 1 13:43 main.pyo >> >> The paths are set up in setup_env.sh >> >> # WARNING: This file is auto-generated by pybombs, any manual changes >> to it may be overwritten! >> export PATH="/home/mike/gnuradio/bin:$PATH" >> export >> PYTHONPATH="/home/mike/gnuradio/python:/home/mike/gnuradio/lib/python2.6/site-packages:/home/mike/gnuradio/lib64/python2.6/site-packages:/home/mike/gnuradio/lib/python2.6/dist-packages:/home/mike/gnuradio/lib64/python2.6/dist-packages:/home/mike/gnuradio/lib/python2.7/site-packages:/home/mike/gnuradio/lib64/python2.7/site-packages:/home/mike/gnuradio/lib/python2.7/dist-packages:/home/mike/gnuradio/lib64/python2.7/dist-packages:$PYTHONPATH" >> export >> LD_LIBRARY_PATH="/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:$LD_LIBRARY_PATH" >> export >> LIBRARY_PATH="/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:$LIBRARY_PATH" >> export >> PKG_CONFIG_PATH="/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:$PKG_CONFIG_PATH" >> export PYBOMBS_PREFIX="/home/mike/gnuradio" >> # If we're in a Python virtualenv, activate that >> if [ -r /home/mike/gnuradio/bin/activate ]; then >> source /home/mike/gnuradio/bin/activate > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion
Oops - hit send before finishing. So, eventually I discovered that there were some files in /usr/lib/python2.7/dist-packages/gnuradio - not sure how they got there but they were dated the same date I upgraded 14.04 to 16.04. I moved them all to another place and that eliminated the error. But these are not in the path so should not have been found - unless python has a default path, but that would be stupid as it would cause all sorts of issues, like this one. But still, all my blocks are missing. How do I recompile my own block so gnuradio running in a prefix that is not /usr/local can find it? Presumably in a switch to cmake but there is nothing about this I can find in the pybombs documentation. Mike On Wed, Aug 3, 2016 at 7:34 PM, Mike Willis wrote: > The file is there so its not that. Nor was the suggestion by Cinaed > Simson successful. Gnuradio runs OK, but not gnuradio-companion. Hmm. > > mike@mjw-i7:~/gnuradio/lib/python2.7/dist-packages/gnuradio/grc$ ls -l > total 52 > -rw-r--r-- 1 mike mike 2374 Aug 1 12:22 checks.py > -rw-r--r-- 1 mike mike 2420 Aug 1 13:43 checks.pyc > -rw-r--r-- 1 mike mike 2420 Aug 1 13:43 checks.pyo > drwxrwxr-x 4 mike mike 4096 Aug 1 13:59 core > drwxrwxr-x 2 mike mike 4096 Aug 1 13:59 gui > -rw-r--r-- 1 mike mike0 Aug 1 12:22 __init__.py > -rw-r--r-- 1 mike mike 135 Aug 1 13:43 __init__.pyc > -rw-r--r-- 1 mike mike 135 Aug 1 13:43 __init__.pyo > -rw-r--r-- 1 mike mike 834 Aug 1 12:22 __main__.py > -rw-r--r-- 1 mike mike 1742 Aug 1 12:22 main.py > -rw-r--r-- 1 mike mike 184 Aug 1 13:43 __main__.pyc > -rw-r--r-- 1 mike mike 1331 Aug 1 13:43 main.pyc > -rw-r--r-- 1 mike mike 184 Aug 1 13:43 __main__.pyo > -rw-r--r-- 1 mike mike 1331 Aug 1 13:43 main.pyo > > The paths are set up in setup_env.sh > > # WARNING: This file is auto-generated by pybombs, any manual changes > to it may be overwritten! > export PATH="/home/mike/gnuradio/bin:$PATH" > export > PYTHONPATH="/home/mike/gnuradio/python:/home/mike/gnuradio/lib/python2.6/site-packages:/home/mike/gnuradio/lib64/python2.6/site-packages:/home/mike/gnuradio/lib/python2.6/dist-packages:/home/mike/gnuradio/lib64/python2.6/dist-packages:/home/mike/gnuradio/lib/python2.7/site-packages:/home/mike/gnuradio/lib64/python2.7/site-packages:/home/mike/gnuradio/lib/python2.7/dist-packages:/home/mike/gnuradio/lib64/python2.7/dist-packages:$PYTHONPATH" > export > LD_LIBRARY_PATH="/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:$LD_LIBRARY_PATH" > export > LIBRARY_PATH="/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:$LIBRARY_PATH" > export > PKG_CONFIG_PATH="/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:$PKG_CONFIG_PATH" > export PYBOMBS_PREFIX="/home/mike/gnuradio" > # If we're in a Python virtualenv, activate that > if [ -r /home/mike/gnuradio/bin/activate ]; then > source /home/mike/gnuradio/bin/activate ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion
Can you verify there's not multiple "grc/" directories, eg. in ~/gnuradio/lib{64}/python{2.7,2.6}/{dist,site-packages}/gnuradio ? There seems to be quite some buildup on more or less compatible entries in your PYTHONPATH, which rings my "uh-oh, this system might not be free of package name ambguities" alarm bells. Best regards, Marcus On 08/03/2016 08:34 PM, Mike Willis wrote: > The file is there so its not that. Nor was the suggestion by Cinaed > Simson successful. Gnuradio runs OK, but not gnuradio-companion. Hmm. > > mike@mjw-i7:~/gnuradio/lib/python2.7/dist-packages/gnuradio/grc$ ls -l > total 52 > -rw-r--r-- 1 mike mike 2374 Aug 1 12:22 checks.py > -rw-r--r-- 1 mike mike 2420 Aug 1 13:43 checks.pyc > -rw-r--r-- 1 mike mike 2420 Aug 1 13:43 checks.pyo > drwxrwxr-x 4 mike mike 4096 Aug 1 13:59 core > drwxrwxr-x 2 mike mike 4096 Aug 1 13:59 gui > -rw-r--r-- 1 mike mike0 Aug 1 12:22 __init__.py > -rw-r--r-- 1 mike mike 135 Aug 1 13:43 __init__.pyc > -rw-r--r-- 1 mike mike 135 Aug 1 13:43 __init__.pyo > -rw-r--r-- 1 mike mike 834 Aug 1 12:22 __main__.py > -rw-r--r-- 1 mike mike 1742 Aug 1 12:22 main.py > -rw-r--r-- 1 mike mike 184 Aug 1 13:43 __main__.pyc > -rw-r--r-- 1 mike mike 1331 Aug 1 13:43 main.pyc > -rw-r--r-- 1 mike mike 184 Aug 1 13:43 __main__.pyo > -rw-r--r-- 1 mike mike 1331 Aug 1 13:43 main.pyo > > The paths are set up in setup_env.sh > > # WARNING: This file is auto-generated by pybombs, any manual changes > to it may be overwritten! > export PATH="/home/mike/gnuradio/bin:$PATH" > export > PYTHONPATH="/home/mike/gnuradio/python:/home/mike/gnuradio/lib/python2.6/site-packages:/home/mike/gnuradio/lib64/python2.6/site-packages:/home/mike/gnuradio/lib/python2.6/dist-packages:/home/mike/gnuradio/lib64/python2.6/dist-packages:/home/mike/gnuradio/lib/python2.7/site-packages:/home/mike/gnuradio/lib64/python2.7/site-packages:/home/mike/gnuradio/lib/python2.7/dist-packages:/home/mike/gnuradio/lib64/python2.7/dist-packages:$PYTHONPATH" > export > LD_LIBRARY_PATH="/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:$LD_LIBRARY_PATH" > export > LIBRARY_PATH="/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:$LIBRARY_PATH" > export > PKG_CONFIG_PATH="/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:$PKG_CONFIG_PATH" > export PYBOMBS_PREFIX="/home/mike/gnuradio" > # If we're in a Python virtualenv, activate that > if [ -r /home/mike/gnuradio/bin/activate ]; then > source /home/mike/gnuradio/bin/activate > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion
The file is there so its not that. Nor was the suggestion by Cinaed Simson successful. Gnuradio runs OK, but not gnuradio-companion. Hmm. mike@mjw-i7:~/gnuradio/lib/python2.7/dist-packages/gnuradio/grc$ ls -l total 52 -rw-r--r-- 1 mike mike 2374 Aug 1 12:22 checks.py -rw-r--r-- 1 mike mike 2420 Aug 1 13:43 checks.pyc -rw-r--r-- 1 mike mike 2420 Aug 1 13:43 checks.pyo drwxrwxr-x 4 mike mike 4096 Aug 1 13:59 core drwxrwxr-x 2 mike mike 4096 Aug 1 13:59 gui -rw-r--r-- 1 mike mike0 Aug 1 12:22 __init__.py -rw-r--r-- 1 mike mike 135 Aug 1 13:43 __init__.pyc -rw-r--r-- 1 mike mike 135 Aug 1 13:43 __init__.pyo -rw-r--r-- 1 mike mike 834 Aug 1 12:22 __main__.py -rw-r--r-- 1 mike mike 1742 Aug 1 12:22 main.py -rw-r--r-- 1 mike mike 184 Aug 1 13:43 __main__.pyc -rw-r--r-- 1 mike mike 1331 Aug 1 13:43 main.pyc -rw-r--r-- 1 mike mike 184 Aug 1 13:43 __main__.pyo -rw-r--r-- 1 mike mike 1331 Aug 1 13:43 main.pyo The paths are set up in setup_env.sh # WARNING: This file is auto-generated by pybombs, any manual changes to it may be overwritten! export PATH="/home/mike/gnuradio/bin:$PATH" export PYTHONPATH="/home/mike/gnuradio/python:/home/mike/gnuradio/lib/python2.6/site-packages:/home/mike/gnuradio/lib64/python2.6/site-packages:/home/mike/gnuradio/lib/python2.6/dist-packages:/home/mike/gnuradio/lib64/python2.6/dist-packages:/home/mike/gnuradio/lib/python2.7/site-packages:/home/mike/gnuradio/lib64/python2.7/site-packages:/home/mike/gnuradio/lib/python2.7/dist-packages:/home/mike/gnuradio/lib64/python2.7/dist-packages:$PYTHONPATH" export LD_LIBRARY_PATH="/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:$LD_LIBRARY_PATH" export LIBRARY_PATH="/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:$LIBRARY_PATH" export PKG_CONFIG_PATH="/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:$PKG_CONFIG_PATH" export PYBOMBS_PREFIX="/home/mike/gnuradio" # If we're in a Python virtualenv, activate that if [ -r /home/mike/gnuradio/bin/activate ]; then source /home/mike/gnuradio/bin/activate ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion
On 08/01/2016 06:54 AM, Mike Willis wrote: > I can't fix this one - 3 hours trying and I have given up. Ubuntu > 16.04. gnuradio-companion isn't working. Everything else seems to be > fine, existing flowgraphs run OK, even gqrx. I have tried a complete > re-installation, right back to the pybombs prefix init stage but no > dice. > > Any ideas? I recommend you comment out PYTHONPATH in your .bashrc file (or wherever it's defined) and create a new one with only 1 entry, namely export PYTHONPATH=/home/mike/gnuradio/lib/python2.7/dist-packages But check it - see if that is correct directory by cd /home/mike/gnuradio/lib/python2.7/dist-packages There should be at least 3 sub directories. Check to see if there's anything in the lib64 directory cd /home/mike/gnuradio/lib64/python2.7/dist-packages If it exists and has the same sub directories as the lib path then you have 2 gnuradio installations - you have choose one or the other. Look at the dates and take the directory with the most recent date. Once you've set the PYTHONPATH, set export LD_LIBRARY_PATH=/home/mike/gnuradio/lib or export LD_LIBRARY_PATH=/home/mike/gnuradio/lib64 - which ever the case may be - although it's not clear you need to set LD_LIBRARY_PATH - but it won't hurt if it's done correctly. It's either the lib path or the lib64 path - but not both. Then start python, type type from gnuradio import gr If that works try gnuradio-companion -- Cinaed > > mike@mjw-i7:~/.gnuradio$ gnuradio-companion > Traceback (most recent call last): > File "/home/mike/gnuradio/bin/gnuradio-companion", line 29, in > from gnuradio.grc.main import main > ImportError: No module named main > > I have set the environment etc. All looks good except there is no > lib64 director in my prefix /home/mike/gnuradio > > mike@mjw-i7:~/.gnuradio$ env |grep gnuradio > LIBRARY_PATH=/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/: > LD_LIBRARY_PATH=/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/: > PYBOMBS_PREFIX=/home/mike/gnuradio > PATH=/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin > PWD=/home/mike/gnuradio > PYTHONPATH=/home/mike/gnuradio/python:/home/mike/gnuradio/lib/python2.6/site-packages:/home/mike/gnuradio/lib64/python2.6/site-packages:/home/mike/gnuradio/lib/python2.6/dist-packages:/home/mike/gnuradio/lib64/python2.6/dist-packages:/home/mike/gnuradio/lib/python2.7/site-packages:/home/mike/gnuradio/lib64/python2.7/site-packages:/home/mike/gnuradio/lib/python2.7/dist-packages:/home/mike/gnuradio/lib64/python2.7/dist-packages: > PKG_CONFIG_PATH=/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig: > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion
Your PYTHONPATH looks fine to me. In one of those paths should be a "gnuradio/grc/main.py". Looks like that didn't get installed for some reason. Maybe you could double check whats actually in there. Admittedly, the error message could/should be a bit friendlier. I will fix that. Sebastian On 08/01/2016 03:54 PM, Mike Willis wrote: > I can't fix this one - 3 hours trying and I have given up. Ubuntu > 16.04. gnuradio-companion isn't working. Everything else seems to be > fine, existing flowgraphs run OK, even gqrx. I have tried a complete > re-installation, right back to the pybombs prefix init stage but no > dice. > > Any ideas? > > mike@mjw-i7:~/.gnuradio$ gnuradio-companion > Traceback (most recent call last): > File "/home/mike/gnuradio/bin/gnuradio-companion", line 29, in > from gnuradio.grc.main import main > ImportError: No module named main > > I have set the environment etc. All looks good except there is no > lib64 director in my prefix /home/mike/gnuradio > > mike@mjw-i7:~/.gnuradio$ env |grep gnuradio > LIBRARY_PATH=/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/: > LD_LIBRARY_PATH=/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/: > PYBOMBS_PREFIX=/home/mike/gnuradio > PATH=/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin > PWD=/home/mike/gnuradio > PYTHONPATH=/home/mike/gnuradio/python:/home/mike/gnuradio/lib/python2.6/site-packages:/home/mike/gnuradio/lib64/python2.6/site-packages:/home/mike/gnuradio/lib/python2.6/dist-packages:/home/mike/gnuradio/lib64/python2.6/dist-packages:/home/mike/gnuradio/lib/python2.7/site-packages:/home/mike/gnuradio/lib64/python2.7/site-packages:/home/mike/gnuradio/lib/python2.7/dist-packages:/home/mike/gnuradio/lib64/python2.7/dist-packages: > PKG_CONFIG_PATH=/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig: > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion and HackRF
On Tue, Sep 9, 2014 at 5:24 AM, GeorgeF wrote: > When I run "sudo apt-get install hackrf-tools" I get the following: "E: > Unable to locate package hackrf-tools". > > I then assumed that the command should be "sudo apt-get install hackrf". > That seemed to install something. > > I then added the needed line to 52-hackrf.rules and rebooted. > > Now when I run hackrf_info I received the following: > hackrf_open() failed: HACKRF_ERROR_NOT_FOUND (-5) Are you in the group that was mentioned in that line you added? Does an OpenMoko show when you do lsusb? Who owns the device /dev/bus/usb/bus-from-usb/number-from-lsusb? > What else am I missing? > > George > > On 9/8/2014 18:35, Doug Hutton wrote: > > George - > > I just finished doing the same thing for my shiny-new Hackrf. > Here is what worked for me on the same Ubuntu and GNURadio: > > sudo apt-get install hackrf-tools > > Add a one-line file to enable USB access to hackrf. > > sudo gedit > Start a new file and enter this one line: > ATTR{idVendor}=="1d50", ATTR{idProduct}=="6089", SYMLINK+="hackrf-one-%k", > MODE="660", GROUP="plugdev" > Right-click on the file tab, click Save As, click on Computer, then go to > this directory: > /etc/udev/rules.dEnter this file name: 52-hackrf.rules > then click Save. > > Exit gedit > Reboot > > With Hackrf One plugged in to USB, test it: > hackrf_info > > A few lines of data should display. > > Doug > > > On 9/8/2014 5:06 PM, GeorgeF wrote: > > I just reinstalled Ubuntu on my computer, I compiled GNURadio from source. > > I'm now running GNU Radio Companion 3.7.6git-1-g01deede3 > > With GNU Radio Companion I can access and listen to radio stations on my > RTL-SDR dongle just fine. However today I just received my HackRF radio. > > Now, using the "osmocom Source" & HackRF I receive the following error msg. > "FATAL: No supported devices found to pick from" Is there a driver I need > to download for HackRF, if so where & how to I add that to my system? > > Thanks > George > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > -- Regards, Richard Sharpe (何以解憂?唯有杜康。--曹操) ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion and HackRF
Try this page: https://github.com/mossmann/hackrf/wiki/FAQ On 9/9/2014 7:24 AM, GeorgeF wrote: When I run "sudo apt-get install hackrf-tools" I get the following: "E: Unable to locate package hackrf-tools". I then assumed that the command should be "sudo apt-get install hackrf". That seemed to install something. I then added the needed line to 52-hackrf.rules and rebooted. Now when I run hackrf_info I received the following: hackrf_open() failed: HACKRF_ERROR_NOT_FOUND (-5) What else am I missing? George On 9/8/2014 18:35, Doug Hutton wrote: George - I just finished doing the same thing for my shiny-new Hackrf. Here is what worked for me on the same Ubuntu and GNURadio: sudo apt-get install hackrf-tools Add a one-line file to enable USB access to hackrf. sudo gedit Start a new file and enter this one line: ATTR{idVendor}=="1d50", ATTR{idProduct}=="6089", SYMLINK+="hackrf-one-%k", MODE="660", GROUP="plugdev" Right-click on the file tab, click Save As, click on Computer, then go to this directory: /etc/udev/rules.dEnter this file name: 52-hackrf.rules then click Save. Exit gedit *Reboot** * With Hackrf One plugged in to USB, test it: hackrf_info A few lines of data should display. Doug ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion and HackRF
When I run "sudo apt-get install hackrf-tools" I get the following: "E: Unable to locate package hackrf-tools". I then assumed that the command should be "sudo apt-get install hackrf". That seemed to install something. I then added the needed line to 52-hackrf.rules and rebooted. Now when I run hackrf_info I received the following: hackrf_open() failed: HACKRF_ERROR_NOT_FOUND (-5) What else am I missing? George On 9/8/2014 18:35, Doug Hutton wrote: George - I just finished doing the same thing for my shiny-new Hackrf. Here is what worked for me on the same Ubuntu and GNURadio: sudo apt-get install hackrf-tools Add a one-line file to enable USB access to hackrf. sudo gedit Start a new file and enter this one line: ATTR{idVendor}=="1d50", ATTR{idProduct}=="6089", SYMLINK+="hackrf-one-%k", MODE="660", GROUP="plugdev" Right-click on the file tab, click Save As, click on Computer, then go to this directory: /etc/udev/rules.dEnter this file name: 52-hackrf.rules then click Save. Exit gedit *Reboot** * With Hackrf One plugged in to USB, test it: hackrf_info A few lines of data should display. Doug On 9/8/2014 5:06 PM, GeorgeF wrote: I just reinstalled Ubuntu on my computer, I compiled GNURadio from source. I'm now running GNU Radio Companion 3.7.6git-1-g01deede3 With GNU Radio Companion I can access and listen to radio stations on my RTL-SDR dongle just fine. However today I just received my HackRF radio. Now, using the "osmocom Source" & HackRF I receive the following error msg. "FATAL: No supported devices found to pick from" Is there a driver I need to download for HackRF, if so where & how to I add that to my system? Thanks George ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion and HackRF
On Mon, Sep 8, 2014 at 3:35 PM, Doug Hutton wrote: > George - > > I just finished doing the same thing for my shiny-new Hackrf. > Here is what worked for me on the same Ubuntu and GNURadio: > > sudo apt-get install hackrf-tools > > Add a one-line file to enable USB access to hackrf. > > sudo gedit > Start a new file and enter this one line: > ATTR{idVendor}=="1d50", ATTR{idProduct}=="6089", SYMLINK+="hackrf-one-%k", > MODE="660", GROUP="plugdev" > Right-click on the file tab, click Save As, click on Computer, then go to > this directory: > /etc/udev/rules.dEnter this file name: 52-hackrf.rules > then click Save. > > Exit gedit > Reboot That file comes with the hackrf sources and I did not have to reboot to have that work. Linux needs less reboots than Windows :-) ls pybombs/src/hackrf/host/libhackrf/ 53-hackrf.rules CMakeLists.txt libhackrf.pc.in Readme.md src > With Hackrf One plugged in to USB, test it: > hackrf_info > > A few lines of data should display. > > Doug > > > > On 9/8/2014 5:06 PM, GeorgeF wrote: > > I just reinstalled Ubuntu on my computer, I compiled GNURadio from source. > > I'm now running GNU Radio Companion 3.7.6git-1-g01deede3 > > With GNU Radio Companion I can access and listen to radio stations on my > RTL-SDR dongle just fine. However today I just received my HackRF radio. > > Now, using the "osmocom Source" & HackRF I receive the following error msg. > "FATAL: No supported devices found to pick from" Is there a driver I need > to download for HackRF, if so where & how to I add that to my system? > > Thanks > George > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > -- Regards, Richard Sharpe (何以解憂?唯有杜康。--曹操) ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion and HackRF
George - I just finished doing the same thing for my shiny-new Hackrf. Here is what worked for me on the same Ubuntu and GNURadio: sudo apt-get install hackrf-tools Add a one-line file to enable USB access to hackrf. sudo gedit Start a new file and enter this one line: ATTR{idVendor}=="1d50", ATTR{idProduct}=="6089", SYMLINK+="hackrf-one-%k", MODE="660", GROUP="plugdev" Right-click on the file tab, click Save As, click on Computer, then go to this directory: /etc/udev/rules.dEnter this file name: 52-hackrf.rules then click Save. Exit gedit *Reboot** * With Hackrf One plugged in to USB, test it: hackrf_info A few lines of data should display. Doug On 9/8/2014 5:06 PM, GeorgeF wrote: I just reinstalled Ubuntu on my computer, I compiled GNURadio from source. I'm now running GNU Radio Companion 3.7.6git-1-g01deede3 With GNU Radio Companion I can access and listen to radio stations on my RTL-SDR dongle just fine. However today I just received my HackRF radio. Now, using the "osmocom Source" & HackRF I receive the following error msg. "FATAL: No supported devices found to pick from" Is there a driver I need to download for HackRF, if so where & how to I add that to my system? Thanks George ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Problem with gnuradio-companion and HackRF
On Mon, Sep 08, 2014 at 06:06:42PM -0400, GeorgeF wrote: > > Now, using the "osmocom Source" & HackRF I receive the following error > msg. "FATAL: No supported devices found to pick from" Is there a > driver I need to download for HackRF, if so where & how to I add that > to my system? You need libhackrf. And you'll probably need to recompile gr-osmosdr after installing it: https://github.com/mossmann/hackrf/wiki/Getting-Started-with-HackRF-and-GNU-Radio#software-setup Mike ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] problem with gnuradio companion on USRP E100
On 02/01/2011 01:40 PM, Achilleas Anastasopoulos wrote: I am following the instruction for installing gnuradio companion on a USRP E100. I installed python-lxmx The config/grc_grc.m4 patch does not seem to be relevant: I do not see the line that I am supposed to changein any case bootstrap and configure work and report that grc will be build. The GRC change is in git now. I am on the way to FOSDEM now. I think we need to install another set of python modules, but I am about to board a plane so I can't look it up right now :) Philip After make install I get the following message when running gnuradio-companion: any thoughts? thanks Achilleas usrp-e1xx:~$ gnuradio-companion /usr/lib/python2.6/site-packages/Cheetah/CacheRegion.py:30: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 Traceback (most recent call last): File "/usr/local/bin/gnuradio-companion", line 48, in from gnuradio.grc.python.Platform import Platform File "/usr/local/lib/python2.6/site-packages/gnuradio/grc/python/Platform.py", line 29, in from Generator import Generator File "/usr/local/lib/python2.6/site-packages/gnuradio/grc/python/Generator.py", line 21, in import subprocess ImportError: No module named subprocess ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio