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

Unpinned paho-mqtt dependency in the setup.py #29

Open
Lenormju opened this issue Sep 7, 2022 · 0 comments
Open

Unpinned paho-mqtt dependency in the setup.py #29

Lenormju opened this issue Sep 7, 2022 · 0 comments

Comments

@Lenormju
Copy link

Lenormju commented Sep 7, 2022

In the requirements.txt :

paho-mqtt~=1.1

which means roughly "any 1.1.x version".

While in the setup.py :

    install_requires  = ['robotframework', 'paho-mqtt'],

which means roughly "any version of paho-mqtt".

I am no expert at Python dependencies and packaging, but if my assumptions are correct, then it looks like an inconsistency.
Should paho-mqtt version be pinned to 1.1.x for robotframework-mqttlibrary to work ? Because that's what is implied by the requirements file.


I noticed this problem while investigating errors that started happening in my Robot tests after upgrading paho-mqtt from 1.5.1 to 1.6.1 :

  •   File "/usr/local/lib/python3.8/dist-packages/paho/mqtt/client.py", line 640, in _sock_recv
        return self._sock.recv(bufsize)
    AttributeError: 'NoneType' object has no attribute 'recv'
  • Error publishing: 4
  • and some expected messages that were not received

I don't know yet if these problem come from this library or from paho itself, I still haven't found out.

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

1 participant