M-o-a-T / moat-mqtt

An async MQTT broker and client, plus DistKV integration
MIT License
21 stars 9 forks source link

Not able to work with moat-mqtt #15

Closed didimelli closed 2 years ago

didimelli commented 2 years ago

Hello,

I have always worked with Distmqtt with no issue. Today I tried to install moat-mqtt for a new project and I am not able to work with it.

I have a new python 3.8 project, and i use poetry. I just installed moat-mqtt (3.6.1 is the only one available on PyPI)

poetry new asd
cd asd
poetry add moat-mqtt

image

and the installation is correct image

and I definitely see distmqtt in the venv directory image

However, there is no way for me to import or use moat-mqtt.

from moat.mqtt.mqtt.constants import QOS_1
from moat.mqtt.mqtt.constants import QOS_2

print(QOS_1, QOS_2)

Running this (poetry run python asd/__init__.py) gives me:

Traceback (most recent call last):
  File "asd/__init__.py", line 1, in <module>
    from moat.mqtt.mqtt.constants import QOS_1
ModuleNotFoundError: No module named 'moat'

Am I missing something obvious or is the new version with the new naming not supposed to be used yet?

Thank you!

smurfix commented 2 years ago

I have uploaded 0.38.2. My builder didn't auto-upload, oops …

I'm sorry that the transition isn't as seamless as we all would like; I'm building the tools to automate much of this as I go along. Please don't hesitate to complain if anything doesn't work yet.

didimelli commented 2 years ago

Awesome, with this new version everything is working properly, thanks!!