I'd strongly recommend that folks keep track of what they install during the transition so that the 'next' time they do a clean installation they have a paper trail of things they add to core weewx for their station. Most people are likely going to miss reinstalling additional modules like 'requests' and 'paho-mqtt' at least once or twice....
Just activate your venv and run a 'python3 -m pip list' and save the output. Super simple. On Monday, October 16, 2023 at 11:37:27 AM UTC-7 Tom Keffer wrote: > One of your extensions, purple, needs the Python package "requests > <https://pypi.org/project/requests/>" in order to operate. You can > install it like this: > > *source ~/weewx-venv/bin/activate* > *python3 -m pip install requests* > > This will install the missing "requests" package inside the virtual > environment. > > Incidentally, this is a good example of why it's a good thing to keep the > number of packages that an extension requires down to a minimum. > > > On Monday, October 16, 2023 at 8:34:32 AM UTC-7 [email protected] wrote: > >> Hello, >> As an "old" user of weewx (much appreciated for the software!), I'm >> having problems with migration. Not being much of a programmer, can someone >> point out my error below? Thanks in advance. Bob >> >> (weewx-venv) bg@n4mrv:~$ weewxd --config=/home/weewx/weewx.conf >> Traceback (most recent call last): >> File "/home/bg/weewx-venv/bin/weewxd", line 8, in <module> >> sys.exit(main()) >> File "/home/bg/weewx-venv/lib/python3.10/site-packages/weewxd.py", line >> 151, in main >> engine = weewx.engine.StdEngine(config_dict) >> File >> "/home/bg/weewx-venv/lib/python3.10/site-packages/weewx/engine.py", line >> 90, in __init__ >> self.loadServices(config_dict) >> File >> "/home/bg/weewx-venv/lib/python3.10/site-packages/weewx/engine.py", line >> 158, in loadServices >> obj = weeutil.weeutil.get_object(svc)(self, config_dict) >> File >> "/home/bg/weewx-venv/lib/python3.10/site-packages/weeutil/weeutil.py", line >> 1352, in get_object >> mod = __import__(module) >> File "/home/weewx/bin/user/purple.py", line 25, in <module> >> import requests >> ModuleNotFoundError: No module named 'requests' >> > -- 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/1106310d-9ad6-46c4-aab8-5c71efd5deb8n%40googlegroups.com.
