-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support Python 3.10, Revise the scenario on event loop #89
Comments
For those new to python like me, you can follow this stack question to install an older version of python. Just don't symlink your version or uninstall python3. I tried. |
pip install git+https://github.com/bluet/proxybroker2 Just make sure you have git installed. |
Hi @airone01 As @ziloka said, we are not on the public PyPI server since this is a fork project. So it might not be related to the Python version only. Besides that, as a Python developer, I will recommend you to use some virtual environment tools (e.g. |
Yeah just realised pyenv is a thing. I've been trying to install python 3.9.13 since a while now without success. |
Give some information about your python installation along with some screenshots for more information and maybe I can reproduce and find a solution |
I'm getting these when using the docker image, not when compiling |
I'm confused I'm new to python and I'm making chatgpt write all the code Do I have to use proxybroker2 in the code instead of proxybroker import asyncio async def show(proxies): proxies = asyncio.Queue() loop = asyncio.get_event_loop() TypeError Traceback (most recent call last) File c:\Users\Nesto\AppData\Local\Programs\Python\Python311\Lib\site-packages\proxybroker\api.py:97, in Broker.init(self, queue, timeout, max_conn, max_tries, judges, providers, verify_ssl, loop, **kwargs) TypeError: Queue.init() got an unexpected keyword argument 'loop' |
Please look at the examples folder for examples
Please ensure that you have properly installed this project.
|
Summary
Due to another Python 3.10 deprecated warning, this will happen in the near future.
https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop
get_event_loop
checked the event loop and set a new one if not exist, but this will be an alias ofget_running_loop
. We need the error handling on this.The text was updated successfully, but these errors were encountered: