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

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

$
0
0

I had selected the virtual environment at the bottom right corner of the Thonny editor.


What, exactly, do you see as the name of the Python3 interpreter at the bottom right of the screen, after selecting the python virtual environment.

In line with my previous demonstrations, mine shows "Local Python 3 * /home/david/Support/RDS/pa1010/bin/python3"

And after using Thonny's RED stop/restart button the heading at the top of the Shell Windows displays
" Python 3.11.2 (/home/david/Support/RDS/pa1010/bin/python3) "

Running the same test script as previously results in -

Code:

>>> %Run rds_gps_test.pyImported pa1010d module withou error.>>>

(I actually preferred IDLE to Thonny)
There are no Pi or Python police controlling how you choose to work. You are free to install and use the IDLE IDE if you prefer. Raspberry Pi have chosen not to pre-install it or recommend it, that's all.

But I suggest you check carefully how IDLE might interact - or not - with your Python Virtual Environment, before creating another round of frustration for yourself.

Statistics: Posted by B.Goode — Thu Nov 28, 2024 3:00 pm



Viewing all articles
Browse latest Browse all 4919

Trending Articles