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 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.
What version of the Pi Operating system are you running? run
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.
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