|
Post by Lemachine2u on Feb 12, 2022 10:08:05 GMT -8
I am trying to install and run SkyWeather2. Continue to receive message that MySQLdb module is not found when running SkyWeather2.py... and I know the program "pclogging.py" contains the import command for this module. I've spent countless hours trying a number of "fixes" suggested on this forum and elsewhere to no avail. When attempting "sudo apt install python-mysqldb" per one post, I received the following message. "E: Package 'python-mysqldb' has no installation candidate" as shown below. I am running on Raspberry Pi 400 with Python 3.9.2.
pi@raspberrypi:~/SDL_Pi_SkyWeather2 $ sudo apt install python-mysqldb Reading package lists... Done Building dependency tree... Done Reading state information... Done Package python-mysqldb is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'python-mysqldb' has no installation candidate
Would appreciate some help getting this program to run. Seems the only issue I have is with the Import of MySQLdb module called in pclogging.py
|
|
|
Post by SDL on Feb 12, 2022 13:45:32 GMT -8
|
|
|
Post by Lemachine2u on Feb 14, 2022 10:46:50 GMT -8
Hello, It is running the latest 64-bit OS, version 11 "bullseye". I'm not planning to use the Pi camera with this RPi so that isn't a problem for me. Plan for this RPi project was to monitor weather, indoor conditions, simultaneously with collecting other data coming from home brewery processes (i.e fermentation - Tilt Pro, mash tun & HLT & BK temps, etc), then pushing the data to Google Sheets. Other python3 programming work has been completed using the existing OS so I'd rather not take the preconfigured SD card option. Wish I had known before starting work on this project regarding the untested OS. Perhaps the install/configuration instructions on WeatherStation should explain what Pi OS is / isn't compatible or tested to be compatible. At least we both now know it is not compatible with this OS.
|
|
|
Post by doxidad on Feb 14, 2022 12:30:02 GMT -8
Install python3-mysqldb. See if that helps.
|
|
|
Post by SDL on Feb 16, 2022 13:10:00 GMT -8
What version of the Pi Operating system are you running? run
cat /etc/os-release
This way we know exactly what you have. We have not tested Bullseye or the 64 bit version, so we have no information. When will we test them? Probably in April or May when the piCamera version is completely solved and all the libraries are ported over to the new version. It is a complicated process.
BP
|
|
mlanser
New Member
Posts: 7
Raspberry Pi: Yes
|
Post by mlanser on Jun 2, 2022 11:25:20 GMT -8
Any updates on this?
TIA, -Martin.
|
|
|
Post by SDL on Jun 3, 2022 7:41:07 GMT -8
We just released a V21 of the SDCard, but it is still on Buster. We will start with a fresh image and try to build a bullseye version. 64 bit is sometime in the future.
BP
|
|
smurphy
Full Member
 
Posts: 169
Raspberry Pi: Yes
Other Device: many ...
|
Post by smurphy on Jun 4, 2022 11:24:38 GMT -8
Why not build a docker container. This way migrations are very easy. When the image is out, I may have a look at it (If course, if you guys have a short instructions on what you add, I may also add/create an alpine based docker image with all required dependencies) At least then we'll have "the" reproductible way in creating the content/image for weatherpi 
|
|