is already installed
Il giorno mercoledì 17 gennaio 2024 alle 13:09:25 UTC+1 Francesco Fasano ha scritto: > sudo pip3 install paho-mqtt > Looking in indexes: https://pypi.org/simple, > https://www.piwheels.org/simple > Requirement already satisfied: paho-mqtt in /usr/lib/python3/dist-packages > (1.5.1) > > Il giorno mercoledì 17 gennaio 2024 alle 13:03:05 UTC+1 > michael.k...@gmx.at ha scritto: > >> This is not a weewx issue, it is related to the extension, but a user >> error: read the friendly manual for the extension: >> https://github.com/matthewwall/weewx-mqtt >> >> Use pip to install paho-mqtt, as this is a prerequisite. >> >> Francesco Fasano schrieb am Mittwoch, 17. Januar 2024 um 10:32:04 UTC+1: >> >>> also on this command >>> >>> weewxd --config=/home/weewx/weewx.conf >>> Traceback (most recent call last): >>> File "/home/pi/weewx-venv/bin/weewxd", line 8, in <module> >>> sys.exit(main()) >>> File "/home/pi/weewx-venv/lib/python3.9/site-packages/weewxd.py", line >>> 160, in main >>> engine = weewx.engine.StdEngine(config_dict) >>> File >>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weewx/engine.py", line 89, >>> in __init__ >>> self.loadServices(config_dict) >>> File >>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weewx/engine.py", line >>> 157, in loadServices >>> obj = weeutil.weeutil.get_object(svc)(self, config_dict) >>> File >>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weeutil/weeutil.py", line >>> 1404, in get_object >>> module = importlib.import_module(module_name) >>> File "/usr/lib/python3.9/importlib/__init__.py", line 127, in >>> import_module >>> return _bootstrap._gcd_import(name[level:], package, level) >>> File "<frozen importlib._bootstrap>", line 1030, in _gcd_import >>> File "<frozen importlib._bootstrap>", line 1007, in _find_and_load >>> File "<frozen importlib._bootstrap>", line 986, in >>> _find_and_load_unlocked >>> File "<frozen importlib._bootstrap>", line 680, in _load_unlocked >>> File "<frozen importlib._bootstrap_external>", line 790, in exec_module >>> File "<frozen importlib._bootstrap>", line 228, in >>> _call_with_frames_removed >>> File "/home/weewx/bin/user/mqtt.py", line 100, in <module> >>> import paho.mqtt.client as mqtt >>> ModuleNotFoundError: No module named 'paho' >>> >>> Il giorno mercoledì 17 gennaio 2024 alle 09:54:46 UTC+1 Francesco Fasano >>> ha scritto: >>> >>>> Good morning, >>>> I followed the steps in the guide and I get this error >>>> >>>> python3 -m pip install weewx >>>> Looking in indexes: https://pypi.org/simple, >>>> https://www.piwheels.org/simple >>>> Collecting weewx >>>> Downloading >>>> https://www.piwheels.org/simple/weewx/weewx-5.0.0-py3-none-any.whl >>>> (1.4 MB) >>>> |████████████████████████████████| 1.4 MB 531 kB/s >>>> Collecting pyserial<4.0,>=3.4 >>>> Downloading >>>> https://www.piwheels.org/simple/pyserial/pyserial-3.5-py2.py3-none-any.whl >>>> (90 kB) >>>> |████████████████████████████████| 90 kB 450 kB/s >>>> Collecting ephem<5.0,>=4.1 >>>> Downloading >>>> https://www.piwheels.org/simple/ephem/ephem-4.1.5-cp39-cp39-linux_armv7l.whl >>>> >>>> (1.7 MB) >>>> |████████████████████████████████| 1.7 MB 851 kB/s >>>> Collecting pyusb<2.0.0,>=1.0.2 >>>> Downloading >>>> https://www.piwheels.org/simple/pyusb/pyusb-1.2.1-py3-none-any.whl (58 >>>> kB) >>>> |████████████████████████████████| 58 kB 602 kB/s >>>> Collecting configobj<6.0,>=5.0 >>>> Downloading >>>> https://www.piwheels.org/simple/configobj/configobj-5.0.8-py2.py3-none-any.whl >>>> >>>> (35 kB) >>>> Collecting Pillow>=5.2 >>>> Downloading >>>> https://www.piwheels.org/simple/pillow/pillow-10.2.0-cp39-cp39-linux_armv7l.whl >>>> >>>> (1.2 MB) >>>> |████████████████████████████████| 1.2 MB 988 kB/s >>>> Collecting CT3<4.0,>=3.1 >>>> Downloading >>>> https://www.piwheels.org/simple/ct3/CT3-3.3.3-cp39-cp39-linux_armv7l.whl >>>> (196 kB) >>>> |████████████████████████████████| 196 kB 569 kB/s >>>> Collecting PyMySQL<2.0,>=1.0 >>>> Downloading >>>> https://www.piwheels.org/simple/pymysql/PyMySQL-1.1.0-py3-none-any.whl >>>> (44 kB) >>>> |████████████████████████████████| 44 kB 271 kB/s >>>> Collecting six >>>> Downloading >>>> https://www.piwheels.org/simple/six/six-1.16.0-py2.py3-none-any.whl >>>> (11 kB) >>>> Installing collected packages: six, pyusb, pyserial, PyMySQL, Pillow, >>>> ephem, CT3, configobj, weewx >>>> Successfully installed CT3-3.3.3 Pillow-10.2.0 PyMySQL-1.1.0 >>>> configobj-5.0.8 ephem-4.1.5 pyserial-3.5 pyusb-1.2.1 six-1.16.0 weewx-5.0.0 >>>> (weewx-venv) pi@raspberrypi:/home $ weectl station upgrade >>>> --config=/home/weewx/weewx.conf >>>> Using configuration file /home/weewx/weewx.conf >>>> >>>> Upgrade examples, utility files in /home/weewx (Y/n)? Y >>>> Removing example directory /home/weewx/examples >>>> Copying examples into /home/weewx/examples >>>> >>>> Traceback (most recent call last): >>>> File "/home/pi/weewx-venv/bin/weectl", line 8, in <module> >>>> sys.exit(main()) >>>> File "/home/pi/weewx-venv/lib/python3.9/site-packages/weectl.py", >>>> line 66, in main >>>> namespace.func(namespace) >>>> File >>>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/__init__.py", >>>> line 121, in dispatch >>>> namespace.action_func(config_dict, namespace) >>>> File >>>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/station_cmd.py", >>>> >>>> line 339, in upgrade_station >>>> weectllib.station_actions.station_upgrade(config_dict=config_dict, >>>> File >>>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/station_actions.py", >>>> >>>> line 800, in station_upgrade >>>> examples_dir = copy_examples(config_dict, >>>> examples_root=examples_root, >>>> File >>>> "/home/pi/weewx-venv/lib/python3.9/site-packages/weectllib/station_actions.py", >>>> >>>> line 616, in copy_examples >>>> shutil.copytree(examples_resources, examples_dir) >>>> File "/usr/lib/python3.9/shutil.py", line 557, in copytree >>>> return _copytree(entries=entries, src=src, dst=dst, >>>> symlinks=symlinks, >>>> File "/usr/lib/python3.9/shutil.py", line 458, in _copytree >>>> os.makedirs(dst, exist_ok=dirs_exist_ok) >>>> File "/usr/lib/python3.9/os.py", line 225, in makedirs >>>> mkdir(name, mode) >>>> FileExistsError: [Errno 17] File exists: '/home/weewx/examples' >>>> >>>> >>>> >>>> >>>> >>>> Il giorno martedì 16 gennaio 2024 alle 18:49:59 UTC+1 vince ha scritto: >>>> >>>>> Francesco this error came up during beta testing if you search the >>>>> group archives. My recollection is you might need to install the pip >>>>> module >>>>> ‘wheel’ in your step 2 after activating the virtual environment. >>>> >>>> -- 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/a5de3a57-36c1-48fa-b0d9-35cd72e33d7en%40googlegroups.com.