Skip to content
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

installation error through pybombs #26

Open
viktorivan opened this issue Dec 30, 2020 · 5 comments
Open

installation error through pybombs #26

viktorivan opened this issue Dec 30, 2020 · 5 comments

Comments

@viktorivan
Copy link

viktorivan commented Dec 30, 2020

Hi, I'm installing gr-dab with the command pybombs install gr-dab and I get the following error
[ 95%] Generating adjustment_gui.py
ModuleNotFoundError

Cannot import gnuradio.

Is the model path environment variable set correctly?
All OS: PYTHONPATH

Is the library path environment variable set correctly?
Linux: LD_LIBRARY_PATH
Windows: PATH
MacOSX: DYLD_LIBRARY_PATH

(No module named 'gnuradio')
make[2]: *** [python/app/CMakeFiles/pygen_python_app_c8039.dir/build.make:142: python/app/adjustment_gui.py] Error 1
make[1]: *** [CMakeFiles/Makefile2:538: python/app/CMakeFiles/pygen_python_app_c8039.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
[ERROR] Build failed. See output above for error messages.
[ERROR] Problem occurred while building package gr-dab:
Build failed.
[ERROR] Error installing package gr-dab. Aborting.

Regards

@trial-n-error
Copy link

Hi,

I do not use pybombs. However I received a similiar problem and think your problem is related the file python/app/CMakeLists.txt.

When it runs grcc the PYTHONPATH is overriden. I expect that pybombs has a previous PYTHONPATH defined which is not taken in account there.

Best regards,
Mario

@trial-n-error
Copy link

Hi Viktorivan,

Regarding my previous suspicion, you could verify and change in python/app/CMakeLists.txt from

COMMAND bash -c "PYTHONPATH=${CMAKE_BINARY_DIR}/python/app GRC_BLOCKS_PATH=${CMAKE_SOURCE_DIR}/grc/ grcc ${CMAKE_SOURCE_DIR}/python/app/adjustment_gui.grc -o ${CMAKE_BINARY_DIR}/python/app/"

to

COMMAND bash -c "PYTHONPATH=$ENV{PYTHONPATH}:${CMAKE_BINARY_DIR}/python/app GRC_BLOCKS_PATH=${CMAKE_SOURCE_DIR}/grc/ grcc ${CMAKE_SOURCE_DIR}/python/app/adjustment_gui.grc -o ${CMAKE_BINARY_DIR}/python/app/"

Please note, that after the change you need to start clean with a cmake generation. You need to delete your previous generated cmake output (e.g. if you used a "build" directory, remove it and create it new) and execute cmake again. Just executing make will not pull in your changes from CMakeLists.txt

Please provide feedback here if it helped on your side.

Best regards,
Mario

Hi,

I do not use pybombs. However I received a similiar problem and think your problem is related the file python/app/CMakeLists.txt.

When it runs grcc the PYTHONPATH is overriden. I expect that pybombs has a previous PYTHONPATH defined which is not taken in account there.

Best regards,
Mario

@viktorivan
Copy link
Author

Hi Mario

Its works for me!!! I installed gr-dab from Pybombs withuot problems with that modification.

Best regards

Ivan

@VDelport
Copy link

VDelport commented Jun 10, 2022

Hello,

I also have gr-dab with the command
pybombs install gr-dab
installed and get the same error.

What do I have to do specifically after I
gr-dab/python/app/CMakeLists.txt
change as above?

Running again
pybombs install gr-dab
leads to the same error.

@viktorivan
Copy link
Author

viktorivan commented Jun 10, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants