argilo / secplus

A software implementation of the Security+ system used by garage door openers
GNU General Public License v3.0
235 stars 31 forks source link

Can't import secplus module from within GNU Radio Companion #22

Closed argilo closed 5 months ago

argilo commented 5 months ago

After opening secplus_rx.grc in GNU Radio Companion, the following error sometimes appears:

Can't interpret source code: No module named 'secplus'

And for secplus_tx.grc and secplus_v2_tx.grc, the following error message sometimes appears:

Import "import secplus" failed.

This happens because the current directory may not be part Python's module search path. (PyBOMBS adds the empty string to PYTHONPATH, but native installations do not have this.)

For the time being, a workaround is to run sudo cp secplus.py /usr/local/lib/python3.*/dist-packages/.

argilo commented 5 months ago

This was fixed in 5884f60e9e7757794594c19d7aead1b17c8312bd.