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

gnuradio import droneid #49

Open
gettyhub opened this issue May 13, 2024 · 3 comments
Open

gnuradio import droneid #49

gettyhub opened this issue May 13, 2024 · 3 comments

Comments

@gettyhub
Copy link

gettyhub commented May 13, 2024

Had to clone turbofec (https://github.com/ttsou/turbofec) & CRCpp (https://github.com/d-bahr/CRCpp) in order to build on Ubuntu 22.04 with gnuradio 3.10.

However when I go into the droneid_test.grc, it comes up with an error about importing droneid.

It does show the droneid grc blocks in gnuradio-companion however.

@proto17
Copy link
Owner

proto17 commented May 27, 2024

Could you share the exact version of GNU Radio that you're using and whether or not you built it from source? That would help me try to recreate the issue.

Could you also share the error that you're seeing?

@gettyhub
Copy link
Author

gettyhub commented May 27, 2024

Could you share the exact version of GNU Radio that you're using and whether or not you built it from source? That would help me try to recreate the issue.

Could you also share the error that you're seeing?

Gnuradio 3.10.1.1-2 and the import error is in gnuradio-companion, in the import block. Import droneid from gnuradio.

I've rebooted since building droneid and right now it appears to be not having import error messages. Just now they're related to opencl and fosphor. I do have fosphor installed. The dialog box does come up.

@proto17
Copy link
Owner

proto17 commented May 27, 2024

I think you may have been bitten by Python not looking in /usr/local/lib/python<VERSION>/dist-packages. If you run find /usr/local/lib/python3.* -name droneid -type d you should get a single directory where the droneid package lives. This all assumes that you didn't do any trickery when installing the module.

As an example, if the command above returned /usr/local/lib/python3.10/dist-packages/gnuradio/droneid then you could launch GNU Radio Companion from the command line with: PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.10/dist-packages gnuradio-companion and things should be happy. The $PYTHONPATH up front is there in case the PYTHONPATH environment variable has already had paths added to it.

Glad to hear a reboot seems to have solved the problem!

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

2 participants