Comments (17)
Hello @lahc1,
It seems the some paths to the older version of gnuradio are still remaining after the activation of the new conda environment. Can you answer to the following questions:
- How did you installed gnuradio 3.8.2? with conda, pybombs, apt, from source, or any other way?
- While in the environment gr310
- Do the result
conda list | grep "gnuradio"
only mention versions 3.10.3.0? - What is the result of
gnuradio-config-info -v --prefix
? - What is the result of
echo $PATH
- Do the result
from gr-lora_sdr.
Hi @tapparelj,
yes it seems a conda path problem, but I am not able to solve it.
I installed gnuradio 3.8.2 using conda.
(gr310) ubuntu16-sdr2@ubuntu16sdr2-OptiPlex-7070:~/gr-lora_sdr_folder/gr-lora_sdr/examples$ conda list | grep "gnuradio"
gnuradio 3.10.3.0 py310hb890b00_2 conda-forge
gnuradio-core 3.10.3.0 py310h179aa5a_2 conda-forge
gnuradio-grc 3.10.3.0 py310h0dc8b28_2 conda-forge
gnuradio-iio 3.10.3.0 py310h3058d4e_2 conda-forge
gnuradio-qtgui 3.10.3.0 py310hc030b51_2 conda-forge
gnuradio-soapy 3.10.3.0 py310h00a44fc_2 conda-forge
gnuradio-uhd 3.10.3.0 py310he2bccb3_2 conda-forge
gnuradio-video-sdl 3.10.3.0 py310h0dc8b28_2 conda-forge
gnuradio-zeromq 3.10.3.0 py310h935459f_2 conda-forge
(gr310) ubuntu16-sdr2@ubuntu16sdr2-OptiPlex-7070:~/gr-lora_sdr_folder/gr-lora_sdr/examples$ gnuradio-config-info -v --prefix
/home/ubuntu16-sdr2/anaconda3/envs/gr310/
3.10.3.0
(gr310) ubuntu16-sdr2@ubuntu16sdr2-OptiPlex-7070:~/gr-lora_sdr_folder/gr-lora_sdr/examples$ echo $PATH
/home/ubuntu16-sdr2/bin:/home/ubuntu16-sdr2/.local/bin:/home/ubuntu16-sdr2/anaconda3/envs/gr310/bin:/home/ubuntu16-sdr2/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
(gr310) ubuntu16-sdr2@ubuntu16sdr2-OptiPlex-7070:~/gr-lora_sdr_folder/gr-lora_sdr/examples$ python3 tx_rx_functionnality_check.py
Traceback (most recent call last):
File "/home/ubuntu16-sdr2/gr-lora_sdr_folder/gr-lora_sdr/examples/tx_rx_functionnality_check.py", line 23, in <module>
import gnuradio.lora_sdr as lora_sdr
ModuleNotFoundError: No module named 'gnuradio.lora_sdr'
(gr310) ubuntu16-sdr2@ubuntu16sdr2-OptiPlex-7070:~/gr-lora_sdr_folder/gr-lora_sdr/examples$ gnuradio-companion &
[1] 16753
Gtk init_check failed. GRC might not be able to start a GUI.
Traceback (most recent call last):
File "/home/ubuntu16-sdr2/anaconda3/envs/gr310/bin/gnuradio-companion", line 103, in <module>
run_main()
File "/home/ubuntu16-sdr2/anaconda3/envs/gr310/bin/gnuradio-companion", line 96, in run_main
sys.exit(main())
File "/usr/local/lib/python3/dist-packages/gnuradio/grc/main.py", line 73, in main
from .gui.Platform import Platform
File "/usr/local/lib/python3/dist-packages/gnuradio/grc/gui/Platform.py", line 26, in <module>
from . import canvas
File "/usr/local/lib/python3/dist-packages/gnuradio/grc/gui/canvas/__init__.py", line 21, in <module>
from .param import Param
File "/usr/local/lib/python3/dist-packages/gnuradio/grc/gui/canvas/param.py", line 23, in <module>
from .. import ParamWidgets, Utils, Constants
File "/usr/local/lib/python3/dist-packages/gnuradio/grc/gui/ParamWidgets.py", line 66, in <module>
add_style_provider()
File "/usr/local/lib/python3/dist-packages/gnuradio/grc/gui/ParamWidgets.py", line 61, in add_style_provider
Gtk.StyleContext.add_provider_for_screen(
TypeError: Argument 0 does not allow None as a value
[1]+ Exit 1 gnuradio-companion
any suggestions?
from gr-lora_sdr.
Hi,
It seems that there is an issue with the overall installation if you can't launch gnuradio-companion. Can you try duplicating the conda environment again and when building the lora_sdr module, do not specify the prefix (it will install in the current conda environment if any is active)?
from gr-lora_sdr.
Hi, It seems that there is an issue with the overall installation if you can't launch gnuradio-companion. Can you try duplicating the conda environment again and when building the lora_sdr module, do not specify the prefix (it will install in the current conda environment if any is active)?
Hi, I have done this but still stuck with same issues. I even deleted all the environment then install again and still stuck. any recommendation? thanks
gnuradio 3.8.2 is working fine in a separate conda environment.
from gr-lora_sdr.
Hi,
The argument 0 of Gtk.StyleContext.add_provider_for_screen( is uspposed to be your screen.
- Do you have a peculiar setup for your display?
- What is the output of
echo $DISPLAY
?- if there is not output can you try to run
export DISPLAY=:0
?
- if there is not output can you try to run
from gr-lora_sdr.
hi,
that is not an issue, terminal is trying to launch Xming. I tried it also on the PC itself and got same output of Gnuradio.
from gr-lora_sdr.
Hi,
When you speak about the PC itself, just to be sure, its OS is Ubuntu?
from gr-lora_sdr.
yes, it is Ubuntu 18.
could it be that the base
or other conda environments are conflicting with gr310
env?
because on base
and one other env
GNURadio 3.8.2 is installed.
from gr-lora_sdr.
Can you try to set the path /home/ubuntu16-sdr2/anaconda3/envs/gr310/bin
in the very beginning of $PATH to be sure it uses those binaries first?
export PATH=/home/ubuntu16-sdr2/anaconda3/envs/gr310/bin:$PATH
from gr-lora_sdr.
after setting the path to: export PATH=/home/ubuntu16-sdr2/anaconda3/envs/gr310/bin:$PATH
GNURadio is running but with version 3.8.2.
(gr310) ubuntu16-sdr@ubuntu16sdr-OptiPlex-7070:~/Downloads/gr-lora_sdr/examples$ conda list | grep "gnuradio"
gnuradio 3.10.3.0 py310hb890b00_2 conda-forge
gnuradio-core 3.10.3.0 py310h179aa5a_2 conda-forge
gnuradio-grc 3.10.3.0 py310h0dc8b28_2 conda-forge
gnuradio-iio 3.10.3.0 py310h3058d4e_2 conda-forge
gnuradio-qtgui 3.10.3.0 py310hc030b51_2 conda-forge
gnuradio-soapy 3.10.3.0 py310h00a44fc_2 conda-forge
gnuradio-uhd 3.10.3.0 py310he2bccb3_2 conda-forge
gnuradio-video-sdl 3.10.3.0 py310h0dc8b28_2 conda-forge
gnuradio-zeromq 3.10.3.0 py310h935459f_2 conda-forge
(gr310) ubuntu16-sdr@ubuntu16sdr-OptiPlex-7070:~/Downloads/gr-lora_sdr/examples$ gnuradio-config-info -v --prefix
/home/ubuntu16-sdr/miniconda3/envs/gr310/
3.10.3.0
(gr310) ubuntu16-sdr@ubuntu16sdr-OptiPlex-7070:~/Downloads/gr-lora_sdr/examples$ echo $PATH
/home/ubuntu16-sdr2/anaconda3/envs/gr310/bin:/home/ubuntu16-sdr/.local/bin:/home/ubuntu16-sdr/miniconda3/envs/gr310/bin:/home/ubuntu16-sdr/miniconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
from gr-lora_sdr.
Do you have anything in echo $PYTHONPATH
and echo $LD_LIBRARY_PATH
?
If not you can try to set them
export PYTHONPATH=/home/ubuntu16-sdr2/anaconda3/envs/gr310/lib/python3.10/dist-packages:$PYTHONPATH
and
export LD_LIBRARY_PATH=/home/ubuntu16-sdr2/anaconda3/envs/gr310/lib:$LD_LIBRARY_PATH
from gr-lora_sdr.
I already set echo $PYTHONPATH
and echo $LD_LIBRARY_PATH
as you mentioned. It is still not working.
(gr310) ubuntu16-sdr@ubuntu16sdr-OptiPlex-7070:~/Downloads/gr-lora_sdr/examples$ conda install gnuradio=3.10 python=3.10.5
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
Retrieving notices: ...working... done
from gr-lora_sdr.
In a terminal what is the output from python
, import gnuradio
, gnuradio
?
from gr-lora_sdr.
It worked after following this page: https://wiki.gnuradio.org/index.php?title=ModuleNotFoundError#B._Finding_the_Python_library
(gr310) ubuntu16-sdr@ubuntu16sdr-OptiPlex-7070:~/Downloads/gr-lora_sdr/examples$ gnuradio-companion -h
usage: gnuradio-companion [-h] [--log {debug,info,warning,error,critical}] [flow_graphs ...]
GNU Radio Companion 3.10.3.0 This program is part of GNU Radio GRC comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it.
positional arguments:
flow_graphs
options:
-h, --help show this help message and exit
--log {debug,info,warning,error,critical}
I have another problem with UHD, it got updated to version 4.2.0. But the version I need is 3.15 because the USRPs are also flashed with UHD3.15:
(gr310) ubuntu16-sdr@ubuntu16sdr-OptiPlex-7070:~/Downloads/gr-lora_sdr/examples$ ./lora_TX.py
[INFO] [UHD] linux; GNU C++ version 10.3.0; Boost_107400; UHD_4.2.0.HEAD-release
[INFO] [MPMD] Initializing 1 device(s) in parallel with args: mgmt_addr=192.168.10.2,type=n3xx,product=n320,serial=31EABBA,claimed=False,addr=192.168.10.2
any suggestion how to switch back to UHD3.15?
thanks.
from gr-lora_sdr.
Can't you just conda remove uhd
and conda install -c conda-forge uhd=3.15
?
from gr-lora_sdr.
it worked, now I have UHD 3.15.0. But uhd_usrp_sink
is missing from GNURadio. I tried sudo ldconfig
, it didn't help.
is there any way to make UHD 3.15 compatible with GNURadio 3.10.3 ?
from gr-lora_sdr.
Hi,
is gnuradio-uhd still listed by conda list | grep "gnuradio"
? If not you can try to install it with conda install gnuradio-uhd
and see if it tries to override your UHD installation. Else you might try to build gr-uhd from source (https://github.com/gnuradio/gnuradio/tree/main/gr-uhd).
In any case, I'm not aware of which version of UHD is compatible or not with gnuradio 3.10 but reflashing your USRP might be the easiest way to go.
from gr-lora_sdr.
Related Issues (20)
- Header Generation Process HOT 2
- When the tx_gain of the USRP B210 is relatively low, the communication distance between the USRP (as the transmitter) and the SX1280 is particularly short. HOT 5
- Implementing encoder and decoder with smaller SF 2-6 HOT 9
- getting nothing terminal window after running setup HOT 18
- PREAMBLE, SYNC WORD and LDRO HOT 6
- HackRF CRC issues HOT 3
- Erroneous Decoding for LDRO Enabled Transmissions HOT 1
- Error `include could not find requested file:` HOT 1
- ModuleNotFoundError even after loading PYTHONPATH HOT 2
- Chirps not appearing in Waterfall HOT 8
- RE:getting nothing terminal window after running setup HOT 6
- GNU Radio3.8.3.1 HOT 3
- Error when increasing spreading factor. HOT 4
- Cannot use a file source to replace USRP source HOT 12
- USRP not working HOT 6
- canβt recv LLCC68 message HOT 2
- Difficulties decoding meshtastic HOT 5
- Performance of cyl_bessel_i() on a low-powered arm64 device HOT 4
- Trouble receiving real-time signals HOT 5
- how to get rssi HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gr-lora_sdr.