projecthorus / horusdemodlib

High Altitude Balloon Telemetry Library
GNU Lesser General Public License v2.1
49 stars 26 forks source link

start_rtlsdr.sh: ModuleNotFoundError: No module named 'crcmod' #176

Closed j0uni closed 12 months ago

j0uni commented 12 months ago

I'm running start_rtlsdr.sh on Ubuntu machine and it ends up in error No module named 'crcmod'.

I have installed requirements.txt on pip3 (I needed to mod the script to use python3 too).

If I run "python3 -m horusdemodlib.uploader" alone, it starts and works. Of course it is not receiving any data so I don't know if that has effect.

Also the rtl_fm + decoded part works alone fine.

Somehow the piping to python just "looses" all modules that have been installed to the system + in virtual environment (no difference).

j0uni commented 12 months ago

Also if I run

echo "hello" | python3 -m horusdemodlib.uploader

that works too without nagging about missing crcmod.

darksidelemm commented 12 months ago

This sounds like the python version where the packages have been installed is not the same as what is running when you run the commands.

On Mon, 21 Aug 2023, 15:53 j0uni, @.***> wrote:

Also if I run

echo "hello" | python3 -m horusdemodlib.uploader

that works too without nagging about missing crcmod.

— Reply to this email directly, view it on GitHub https://github.com/projecthorus/horusdemodlib/issues/176#issuecomment-1685722033, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH57E4MXIBQS3AG542R24TXWL5HPANCNFSM6AAAAAA3X4B5CA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

j0uni commented 12 months ago

Thanks for the tip. I replaced the python-command from the script with

/home/jouni/horusdemodlib//venv/bin/python3

And now it works.

darksidelemm commented 12 months ago

The startup scripts should enter the venv automatically if it exists... I'm wondering why thats not working...

On Mon, 21 Aug 2023, 16:21 j0uni, @.***> wrote:

Thanks for the tip. I replaced the python-command from the script with

/home/jouni/horusdemodlib//venv/bin/python3

And now it works.

— Reply to this email directly, view it on GitHub https://github.com/projecthorus/horusdemodlib/issues/176#issuecomment-1685751189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH57E6DHIJ7B4HF2Z54ODTXWMANXANCNFSM6AAAAAA3X4B5CA . You are receiving this because you commented.Message ID: @.***>

j0uni commented 12 months ago

:D Because I commented it out when I was trying to debug this.

Brought those rows back and now it works. I don't know why it didn't work in the first place. Strange.