Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot install version 2.0.0 with paho-mqtt 2.0.0 #293

Closed
dreamwhite opened this issue Apr 22, 2024 · 2 comments
Closed

[BUG] Cannot install version 2.0.0 with paho-mqtt 2.0.0 #293

dreamwhite opened this issue Apr 22, 2024 · 2 comments

Comments

@dreamwhite
Copy link

dreamwhite commented Apr 22, 2024

Good afternoon and thank you so much for maintaining this project.
I'm actually working on a personal project which requires paho-mqtt 2.0.0 and wanted to integrate aiomqtt for async stuff.

I'm using poetry as my dependency and venv manager and in pyproject.toml I referenced the libraries like it follows:

[tool.poetry.dependencies]
python = "^3.11"
paho-mqtt = "2.0.0"
websockets = "^12.0"
aiomqtt = "2.0.0"

As far as I run poetry install I get this error:

Updating dependencies
Resolving dependencies... (0.1s)

Because aiomqtt (2.0.0) depends on paho-mqtt (>=1.6.0,<2.0.0)
 and MYPROJECT depends on paho-mqtt (2.0.0), aiomqtt is forbidden.
So, because MYPROJECT depends on aiomqtt (2.0.0), version solving failed.

Seems like aiomqtt isn't supporting paho-mqtt 2.0.0 as the error says?

I also tried ditching poetry and using virtualenv but seems like it uses paho-mqtt 1.6.1 rather than paho-mqtt 2.0.0:

Collecting aiomqtt
  Downloading aiomqtt-2.0.1-py3-none-any.whl (16 kB)
Collecting paho-mqtt
  Downloading paho_mqtt-2.0.0-py3-none-any.whl (66 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.9/66.9 kB 2.0 MB/s eta 0:00:00
  Downloading paho-mqtt-1.6.1.tar.gz (99 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.4/99.4 kB 6.6 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Installing collected packages: paho-mqtt, aiomqtt
  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 aiomqtt-2.0.1 paho-mqtt-1.6.1

[notice] A new release of pip available: 22.3.1 -> 24.0
[notice] To update, run: pip install --upgrade pip

Sorry if opening a duplicate issue but couldn't find anything so far.
Best regards

dreamwhite

@skewty
Copy link
Contributor

skewty commented Apr 22, 2024

Duplicate. See #279 (comment)

@empicano
Copy link
Owner

Hi there, I just made the release with the switch to paho-mqtt 2.0 😋

aiomqtt versions <2.1.0 only support paho-mqtt <2.0.0, aiomqtt versions >=2.1.0 only support paho-mqtt >=2.0.0. Let me know if there's anything left unclear or unsolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants