The dependencies WeeWX needs to run under Python 3 are missing. See http://www.weewx.com/docs/setup.htm
On Sat, May 27, 2023 at 9:38 AM [email protected] <[email protected]> wrote: > weewx starts but failing as shown any ideas? > > thanks for any help > > > May 27 17:35:12 raspberrypiwx CRON[4221]: (CRON) info (No MTA installed, > discarding output) > May 27 17:35:12 raspberrypiwx CRON[4216]: (CRON) info (No MTA installed, > discarding output) > May 27 17:35:12 raspberrypiwx CRON[4222]: (CRON) info (No MTA installed, > discarding output) > May 27 17:35:25 raspberrypiwx weewx[4200] DEBUG user.gw1000: Next update > in 20 seconds > May 27 17:35:25 raspberrypiwx weewx[4200] INFO weewx.manager: Added record > 2023-05-27 17:35:00 BST (1685205300) to database 'weewx.sdb' > May 27 17:35:25 raspberrypiwx weewx[4200] INFO weewx.manager: Added record > 2023-05-27 17:35:00 BST (1685205300) to daily summary in 'weewx.sdb' > May 27 17:35:27 raspberrypiwx CRON[4215]: (CRON) info (No MTA installed, > discarding output) > May 27 17:35:36 raspberrypiwx CRON[4209]: (CRON) info (No MTA installed, > discarding output) > May 27 17:35:36 raspberrypiwx CRON[4210]: (CRON) info (No MTA installed, > discarding output) > May 27 17:35:36 raspberrypiwx CRON[4211]: (CRON) info (No MTA installed, > discarding output) > May 27 17:35:36 raspberrypiwx CRON[4212]: (CRON) info (No MTA installed, > discarding output) > May 27 17:35:43 raspberrypiwx influxd[475]: ts=2023-05-27T16:35:43.461797Z > lvl=info msg="failed to store statistics" log_id=0i3UyD5l000 > service=monitor error=timeout > May 27 17:35:45 raspberrypiwx weewx[4200] DEBUG user.gw1000: Next update > in 20 seconds > May 27 17:35:48 raspberrypiwx CRON[4214]: (CRON) info (No MTA installed, > discarding output) > May 27 17:35:51 raspberrypiwx weewx[4200] DEBUG weewx.reportengine: > Running reports for latest time in the database. > May 27 17:35:51 raspberrypiwx weewx[4200] DEBUG weewx.reportengine: Report > 'SeasonsReport' not enabled. Skipping. > May 27 17:35:51 raspberrypiwx weewx[4200] DEBUG weewx.reportengine: Report > 'SmartphoneReport' not enabled. Skipping. > May 27 17:35:51 raspberrypiwx weewx[4200] DEBUG weewx.reportengine: Report > 'MobileReport' not enabled. Skipping. > May 27 17:35:51 raspberrypiwx weewx[4200] DEBUG weewx.reportengine: > Running report 'StandardReport' > May 27 17:35:51 raspberrypiwx weewx[4200] DEBUG weewx.reportengine: Found > configuration file /home/weewx/skins/Standard/skin.conf for report > 'StandardReport' > May 27 17:35:51 raspberrypiwx weewx[4200] ERROR weewx.reportengine: Unable > to instantiate generator 'weewx.cheetahgenerator.CheetahGenerator' > May 27 17:35:51 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** No module named 'Cheetah' > May 27 17:35:51 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** Traceback (most recent call last): > May 27 17:35:51 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** File "/home/weewx/bin/weewx/reportengine.py", line 180, in run > May 27 17:35:51 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** obj = weeutil.weeutil.get_object(generator)( > May 27 17:35:51 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** File "/home/weewx/bin/weeutil/weeutil.py", line 1335, in > get_object > May 27 17:35:51 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** mod = __import__(module) > May 27 17:35:51 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 69, in > <module> > May 27 17:35:51 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** import Cheetah.Filters > May 27 17:35:51 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** ModuleNotFoundError: No module named 'Cheetah' > May 27 17:35:51 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** Generator ignored > May 27 17:35:51 raspberrypiwx weewx[4200] DEBUG weewx.manager: Daily > summary version is 4.0 > May 27 17:35:52 raspberrypiwx weewx[4200] INFO weewx.imagegenerator: > Generated 16 images for report StandardReport in 0.78 seconds > May 27 17:35:52 raspberrypiwx weewx[4200] INFO weewx.reportengine: Copied > 15 files to /home/weewx/public_html > May 27 17:35:52 raspberrypiwx weewx[4200] DEBUG weewx.reportengine: > Running report 'forecast' > May 27 17:35:52 raspberrypiwx weewx[4200] DEBUG weewx.reportengine: Found > configuration file /home/weewx/skins/forecast/skin.conf for report > 'forecast' > May 27 17:35:52 raspberrypiwx weewx[4200] ERROR weewx.reportengine: Unable > to instantiate generator 'weewx.cheetahgenerator.CheetahGenerator' > May 27 17:35:52 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** No module named 'Cheetah' > May 27 17:35:52 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** Traceback (most recent call last): > May 27 17:35:52 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** File "/home/weewx/bin/weewx/reportengine.py", line 180, in run > May 27 17:35:52 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** obj = weeutil.weeutil.get_object(generator)( > May 27 17:35:52 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** File "/home/weewx/bin/weeutil/weeutil.py", line 1335, in > get_object > May 27 17:35:52 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** mod = __import__(module) > May 27 17:35:52 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 69, in > <module> > May 27 17:35:52 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** import Cheetah.Filters > May 27 17:35:52 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** ModuleNotFoundError: No module named 'Cheetah' > May 27 17:35:52 raspberrypiwx weewx[4200] ERROR weewx.reportengine: > **** Generator ignored > May 27 17:35:52 raspberrypiwx weewx[4200] INFO weewx.reportengine: Copied > 87 files to /home/weewx/public_html/forecast > May 27 17:35:52 raspberrypiwx weewx[4200] DEBUG weewx.reportengine: Report > 'FTP' not enabled. Skipping. > May 27 17:35:52 raspberrypiwx weewx[4200] DEBUG weewx.reportengine: Report > 'RSYNC' not enabled. Skipping. > May 27 17:36:02 raspberrypiwx CRON[4208]: (CRON) info (No MTA installed, > discarding output) > On Saturday, 27 May 2023 at 16:48:31 UTC+1 [email protected] wrote: > >> >> sudo apt install python3-configobj >> >> fixed it thanks >> >> On Saturday, 27 May 2023 at 14:35:10 UTC+1 Tom Keffer wrote: >> >>> Hard to say without seeing the exact sequence you used, but it's highly >>> likely that you tried to install configobj from the /home/weewx directory. >>> Pip will see the "setup.cfg" file in there, and attempt to install >>> configobj in among the weewx code. Check /home/weewx/bin and see if there >>> are any configobj related files in there. >>> >>> Either >>> >>> 1. Install using pip from a directory other than /home/weewx; or >>> 2. Install using apt: >>> sudo apt install python3-configobj >>> >>> -tk >>> >>> On Sat, May 27, 2023 at 5:12 AM vigilance wx <[email protected]> wrote: >>> >>>> Cant upgrade from weewx 3,9,2 to weewx 4.10.2 >>>> >>>> >>>> >>>> Get to run sudo python3 ./setup.py install >>>> >>>> >>>> >>>> I get this error >>>> >>>> >>>> >>>> copying util/udev/rules.d/vantage.rules -> /home/weewx/util/udev/rules.d >>>> >>>> copying util/udev/rules.d/wmr300.rules -> /home/weewx/util/udev/rules.d >>>> >>>> copying util/udev/rules.d/cc3000.rules -> /home/weewx/util/udev/rules.d >>>> >>>> copying util/udev/rules.d/te923.rules -> /home/weewx/util/udev/rules.d >>>> >>>> running install_egg_info >>>> >>>> Removing /home/weewx/bin/weewx-4.10.2.egg-info >>>> >>>> Writing /home/weewx/bin/weewx-4.10.2.egg-info >>>> >>>> Traceback (most recent call last): >>>> >>>> File "/home/weewx/bin/wee_config", line 12, in <module> >>>> >>>> from weecfg.config import ConfigEngine, Logger >>>> >>>> File "/home/weewx/bin/weecfg/__init__.py", line 23, in <module> >>>> >>>> import configobj >>>> >>>> ModuleNotFoundError: No module named 'configobj' >>>> >>>> >>>> >>>> So i Try to install pip3 install configobj >>>> >>>> >>>> >>>> Looking in indexes: https://pypi.org/simple, >>>> https://www.piwheels.org/simple >>>> >>>> Collecting configobj >>>> >>>> Using cached >>>> https://files.pythonhosted.org/packages/d3/bb/d10e531b297dd1d46f6b1fd11d018247af9f2d460037554bb7bb9011c6ac/configobj-5.0.8-py2.py3-none-any.whl >>>> >>>> Requirement already satisfied: six in /usr/lib/python3/dist-packages >>>> (from configobj) (1.12.0) >>>> >>>> Installing collected packages: configobj >>>> >>>> Exception: >>>> >>>> Traceback (most recent call last): >>>> >>>> File >>>> "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line >>>> 143, in main >>>> >>>> status = self.run(options, args) >>>> >>>> File >>>> "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line >>>> 386, in run >>>> >>>> use_user_site=options.use_user_site, >>>> >>>> File "/usr/lib/python3/dist-packages/pip/_internal/req/__init__.py", >>>> line 49, in install_given_reqs >>>> >>>> **kwargs >>>> >>>> File >>>> "/usr/lib/python3/dist-packages/pip/_internal/req/req_install.py", line >>>> 760, in install >>>> >>>> use_user_site=use_user_site, pycompile=pycompile, >>>> >>>> File >>>> "/usr/lib/python3/dist-packages/pip/_internal/req/req_install.py", line >>>> 382, in move_wheel_files >>>> >>>> warn_script_location=warn_script_location, >>>> >>>> File "/usr/lib/python3/dist-packages/pip/_internal/wheel.py", line >>>> 215, in move_wheel_files >>>> >>>> prefix=prefix, >>>> >>>> File "/usr/lib/python3/dist-packages/pip/_internal/locations.py", >>>> line 165, in distutils_scheme >>>> >>>> i.finalize_options() >>>> >>>> File "/usr/lib/python3.7/distutils/command/install.py", line 274, in >>>> finalize_options >>>> >>>> raise DistutilsOptionError("can't combine user with prefix, " >>>> >>>> distutils.errors.DistutilsOptionError: can't combine user with prefix, >>>> exec_prefix/home, or install_(plat)base >>>> >>>> >>>> >>>> So its not a weewx error it’s a “my installation error” >>>> >>>> Other than a fresh install on my raspberry pi any ideas? >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "weewx-user" 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-user/c134bab6-2fd2-468f-b1a3-3e2caf7bc41dn%40googlegroups.com >>>> <https://groups.google.com/d/msgid/weewx-user/c134bab6-2fd2-468f-b1a3-3e2caf7bc41dn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- > You received this message because you are subscribed to the Google Groups > "weewx-user" 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-user/cbc7068e-ea99-4adb-b2ee-a7d49ae09dccn%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/cbc7068e-ea99-4adb-b2ee-a7d49ae09dccn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "weewx-user" 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-user/CAPq0zEDpEPvoNd-LC%2BQQ4JvAPTn1UE6oQtSg1d%3D-2hcXff9rJg%40mail.gmail.com.
