Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6967

HATs and other add-ons • Re: Error: no module named pa1010d (The Pi Hut GPS module)

$
0
0
@B.Goode
I think I have made some progress using the venv method.
I have successfully installed pa1010d (and apparently pynmea2 as well)
By typing pip list in the Terminal it shows that these are loaded correctly

However, I am stuck again.
My program still does not run and again issues the same error:

Code:

ModuleNotFoundError: No module named pa1010d
Is that because I need to run my program in a different folder?
Did you remember to activate your venv?
Did you move you file into the venv folder.

(pynmea2 is the module used to parse the GNSS/GPS NMEA messages)

Have a read of this for some background on venv usage (you may want to quickly switch to reading mode in your browser or keep an add block running, otherwise it hard to follow, at least on a mobile phone.)
https://raspberrytips.com/python-virtual-environments/

Statistics: Posted by bensimmo — Sat Nov 16, 2024 7:01 am



Viewing all articles
Browse latest Browse all 6967

Trending Articles