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

broker won't start with python 3.10 #129

Closed
hemna opened this issue Dec 24, 2022 · 5 comments
Closed

broker won't start with python 3.10 #129

hemna opened this issue Dec 24, 2022 · 5 comments
Labels
amqtt-broker bug Something isn't working

Comments

@hemna
Copy link

hemna commented Dec 24, 2022

└─> amqtt
zsh: correct 'amqtt' to 'amt' [nyae]? n
Traceback (most recent call last):
  File "/Users/i530566/devel/mine/hamradio/aprsd/.aprsd-venv/bin/amqtt", line 8, in <module>
    sys.exit(main())
  File "/Users/i530566/devel/mine/hamradio/aprsd/.aprsd-venv/lib/python3.10/site-packages/amqtt/scripts/broker_script.py", line 76, in main
    broker = Broker(config)
  File "/Users/i530566/devel/mine/hamradio/aprsd/.aprsd-venv/lib/python3.10/site-packages/amqtt/broker.py", line 183, in __init__
    self._broadcast_queue = asyncio.Queue(loop=self._loop)
  File "/Users/i530566/.pyenv/versions/3.10.9/lib/python3.10/asyncio/queues.py", line 34, in __init__
    super().__init__(loop=loop)
  File "/Users/i530566/.pyenv/versions/3.10.9/lib/python3.10/asyncio/mixins.py", line 17, in __init__
    raise TypeError(
TypeError: As of 3.10, the *loop* parameter was removed from Queue() since it is no longer necessary
@garykuipers
Copy link

Yup, same thing! I am always surprised when something like this works out of the box ... I was not surprised!

I am using Ben Timbys's "queues" package v 0.6.3

Solution for now:
Create a virtual environment with python 3.9 and run amqtt there

I used anaconda and created a python 3.9 venv because I trust the documentation at https://pypi.org/project/amqtt/ which says:

Programming Language

Python :: 3
Python :: 3.7
Python :: 3.8
Python :: 3.9

So this should work, right?
(mqtt_broker) gary@xyz:~/anaconda3/envs$ python3 --version
Python 3.9.0
So when I run amqtt I get ... EXACTLY the same error as is the topic of this discussion.

I tried with python 3.7 and pip install amqtt ... FAIL! Same error

I am new at anaconda so maybe three is a mistake on my part. I will file a bug report? Nope, issues #95 and #96 indicate this is known but nothing is being done about it!

IS AMQTT ABANDONWARE?

More time wasted, gotta look around for something that actually functions.

@FlyingDiver
Copy link
Contributor

Use the latest commit, not the really old release version.

@not-f-elsner
Copy link
Collaborator

If you need Python 3.10 support now, please try the master branch instead of the release package from Pypi.

@garykuipers
Copy link

garykuipers commented Feb 7, 2023 via email

@not-f-elsner
Copy link
Collaborator

not-f-elsner commented Feb 9, 2023

We just published the beta release for Python 3.10 support, please check it out and let me know if you encounter any errors: https://pypi.org/project/amqtt/0.11.0b1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amqtt-broker bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants