Having trouble installing piicodev from Thonny for raspberry pi 4…it worked before BOOKWORM update or could there be some other problem.
I had a similar issue on my pico W. I had to manually download/install the piivodev files.
Hey Robin,
It looks like bookworm may be causing a bunch of issues (as new releases tend to do) I will have a look into it and see what’s going on as this is the first time I am hearing about this issue.
Cheers,
Blayden
Hey Robin,
As it turns out, Bookworm has removed Pip installs from the current OS so it will make package management a bit different. We are working on a solid solution right now to get it figured out.
Cheers,
Blayden
You could install the piicodev package (as well as any other pancakes you need) in a Python virtual environment, then set Thonny to use the Python executable in your virtual environment.
I haven’t tried this but it should work.
Tried the link in the virtual environments in Thonny…but it seems that that option for virtual environment doesn’t exist under Thonny options/ interpreter now.
Hey Robin,
Once you’re on this view under Tools > Options > Interpreter, you can select Local Python 3 and then provide the path to the virtual environment. If you need to active a virtual environment, you can hit New Virtual Environment down in the bottom right to do so, and use the appropriate activate scripts (a batch file for windows, or the source CLI tool for bash) from your command line in order to install pip packages in that environment:
P.S. For anyone reading this in future, these are all workarounds at the moment. I expect there’ll be a new solution soon for the deployment of Python packages either with or without Pip instead. Otherwise, if you’re just looking for the raw PiicoDev MicroPython Modules, you can grab them straight from the repos available below:
Hi,
Are there any updates on this? I still cannot use PiicoDev in Thonny.
It sounds like something system-level is at play and it may be best to just move on with the project.
As a fallback @Jacob258201 you can just download the source files into your working directory.
Every tutorial (for Pico) shows how to download the PiicoDev_Unified.py
file and the relevant device driver file. Follow these steps, download the files into the directory where you will write your code and everything ought to work - completely sidestepping the Thonny package manager.
thank you very much, it worked. Appreciate the help.
I’m really pleased to hear you’re past this friction point and able to move on with your project
Happy Making!
Ive just received BME280 Atmosperic sensorand cant get things happening with Raspberrypi 3B
I reformatted the SD card removing Jesse and installed Raspberry Pi OS (32bit)
Following the BME280 guide I enabled i2c then searched for the Piicodev package with Thonny without success see screen shot
I checked python was installed and a check responded version 3.11
Next attempt was to install piicodev directly, which failed, see screen shot
Then I attempted to create a virtual environment which also failed
Is there a simple solution to get the BME280 up and running?
Hi @Robert281517, Welcome to the forums!!!
Could you let us know where you are having trouble or the errors you are encountering when creating the Virtual Environemnt?
A VENV is needed for packages to be installed which is where the issue seems to be stemming from at the moment.
This guide has really good step-by-step instructions for setting up a Virtual environment.
Thanks Aaron
The link to the guide you showed helped . Thonny has made it easy to create a VE
The BME280 is now pumping out data