Oh, and I should mention, the instructions do say "If this does not install cleanly, then see https://pypi.org/project/mysqlclient/"
Did you try following the instructions there? -tk On Tue, Mar 17, 2020 at 3:56 PM Thomas Keffer <[email protected]> wrote: > Which version of Raspbian is your Pi running? > > -tk > > On Tue, Mar 17, 2020 at 8:33 AM Lucas Heijst <[email protected]> wrote: > >> Tom, >> >> I followed the install instructions of v4.0.0b16 for python3, see below. >> After startup I got a ModuleNotFoundError: No module named 'pymysql' >> So I added to the install: >> apt-get install python3-mysqldb >> >> Luc >> >> install instructions >> ===== >> apt-get install python3-pip -y >> >> # Required packages: >> sudo python3 -m pip install configobj >> sudo python3 -m pip install cheetah3 >> sudo python3 -m pip install pillow >> >> # Required if hardware is serial or USB, respectively: >> sudo python3 -m pip install pyserial >> sudo python3 -m pip install pyusb >> >> # Required if using MySQL. If this does not >> # install cleanly, then see https://pypi.org/project/mysqlclient/ >> sudo python3 -m pip install mysqlclient >> >> # Optional: for extended almanac information: >> sudo python3 -m pip install pyephem >> ==== >> >> startup >> ==== >> Mar 17 12:18:42 pi37 weewx[7000] INFO __main__: Initializing weewx >> version 4.0.0b16 >> ... >> Mar 17 12:18:42 pi37 weewx[7004] DEBUG weewx.engine: Loading service >> user.cmon.ComputerMonitor >> Mar 17 12:18:42 pi37 /weewxd: cmon: service version is 0.17 >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: Caught unrecoverable >> exception: >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** No module >> named 'pymysql' >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** Traceback >> (most recent call last): >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** File >> "/home/weewx/bin/weedb/mysql.py", line 12, in <module> >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** import >> MySQLdb >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** File >> "/usr/local/lib/python3.7/dist-packages/MySQLdb/__init__.py", line 18, in >> <module> >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** from . >> import _mysql >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** >> ImportError: libmariadb.so.3: cannot open shared object file: No such file >> or directory >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** During >> handling of the above exception, another exception occurred: >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** Traceback >> (most recent call last): >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** File >> "/home/weewx/bin/weewxd", line 148, in main >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** engine >> = weewx.engine.StdEngine(config_dict) >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** File >> "/home/weewx/bin/weewx/engine.py", line 75, in __init__ >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** >> self.loadServices(config_dict) >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** File >> "/home/weewx/bin/weewx/engine.py", line 136, in loadServices >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** obj = >> weeutil.weeutil.get_object(svc)(self,config_dict) >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** File >> "/home/weewx/bin/user/cmon.py", line 705, in __init__ >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** >> initialize=True) >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** File >> "/home/weewx/bin/weewx/manager.py", line 523, in get_manager >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** >> self.manager_cache[data_binding] = open_manager(manager_dict, initialize) >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** File >> "/home/weewx/bin/weewx/manager.py", line 673, in open_manager >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** >> manager_dict['schema']) >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** File >> "/home/weewx/bin/weewx/manager.py", line 150, in open_with_create >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** >> connection = weedb.connect(database_dict) >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** File >> "/home/weewx/bin/weedb/__init__.py", line 86, in connect >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** >> __import__(db_dict['driver']) >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** File >> "/home/weewx/bin/weedb/mysql.py", line 15, in <module> >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** import >> pymysql as MySQLdb >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** >> ModuleNotFoundError: No module named 'pymysql' >> Mar 17 12:18:42 pi37 weewx[7004] CRITICAL __main__: **** Exiting. >> ==== >> >> -- >> You received this message because you are subscribed to the Google Groups >> "weewx-development" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-development/3a5ea761-f277-4cf4-a042-85ea282ebb65%40googlegroups.com >> <https://groups.google.com/d/msgid/weewx-development/3a5ea761-f277-4cf4-a042-85ea282ebb65%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/CAPq0zEAVXFJEJjwEvrrresZYwNjatEyHrA0PT4tQh8PrfqVe8A%40mail.gmail.com.
