On Friday, December 22, 2023 at 5:09:15 AM UTC-8 Tom Keffer wrote:

3. Greg, I would guess that your problems are due to using a very old 
version of pip. You're at 3.11, but the current version is 23.3. See the 
wiki article *Troubleshooting pip installs 
<https://github.com/weewx/weewx/wiki/pip-troubleshooting>* and see if that 
helps.

On Fri, Dec 22, 2023 at 12:45 AM Greg <[email protected]> wrote:

I installed weewx using the pip method and followed the instructions.
I did a pip list before installing to get the list of what other 
dependencies I am using.
 When I installed paho-mqtt and pyephem I got these errors:

Installing collected packages: paho-mqtt
  DEPRECATION: paho-mqtt is being installed using the legacy 'setup.py 
install' method, because it does not have a 'pyproject.toml' and the 
'wheel' package is not installed. pip 23.1 will enforce this behaviour 
change. A possible replacement is to enable the '--use-pep517' option. 
Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for paho-mqtt ... done
Successfully installed paho-mqtt-1.6.1 

 

My question is should I run the install of those packages above that had 
the error with the --use-pep517 option? I read the github information that 
was on the link contained in the error message but it made no sense to me.


I see these too on debian12 with pip 23.0.1 for those two packages...

   - paho-mqtt has an open issue on this but they seem to be thrashing 
   among the devs a bit working it 
   - https://github.com/eclipse/paho.mqtt.python/issues/706
   - I couldn't find an issue on pyephem's github so I opened one there 
   - https://github.com/brandon-rhodes/pyephem/issues/268

The warnings do go away if you add the switch ala:

(weewx-venv) vagrant@deb12:~$ pip install --use-pep517 paho-mqtt
Collecting paho-mqtt
  Using cached paho-mqtt-1.6.1.tar.gz (99 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: paho-mqtt
  Building wheel for paho-mqtt (pyproject.toml) ... done
  Created wheel for paho-mqtt: filename=paho_mqtt-1.6.1-py3-none-any.whl 
size=62120 
sha256=f329e400c6f3932151a07b46b5f098cd025392b454e94d874d48d7cc6f2c2d91
  Stored in directory: 
/home/vagrant/.cache/pip/wheels/29/ea/a5/ba9a63aaf4cd4e16e8a87ee31fb4d11b04ff5e1735d312619a
Successfully built paho-mqtt
Installing collected packages: paho-mqtt
Successfully installed paho-mqtt-1.6.1

 

-- 
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/806b699b-fc48-43eb-8df1-3e7aacc7b52fn%40googlegroups.com.

Reply via email to