-
Notifications
You must be signed in to change notification settings - Fork 54
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
Use_2to3 has been removed from setuptools. No longer builds. #42
Comments
Workaround: Install setuptools 57.x.x For example:
|
Yes, thanks. On my own system I used 2to3 to convert the 3 code file permanently and then removed it as a requirement, however there are third-party docker containers that pull this API in and do pip installs on startup each time. My request was a fix at the source and in the pip repo so that the workarounds weren’t needed downstream. |
Understood and agreed... given the last release on this repo was in 2018, I figured others might land here and find the workaround helpful. |
I encounter the same issue for one of my projects which makes it impossible to run tests via tox. Does anyone know what I could do? |
I had to do a few things. Run all the .py files through 2_to_3, and also modify one of the the iteration methods to use the python 3 method of iteration. I could submit a PR, but I see an unapproved PR from last year, so I don’t want to put in that time to figure out how to submit it, if it won’t get merged. |
Ok, thanks for the info. Does that mean I should fork this repo, update it according to your instructions and reference the fork as a requirement for the projet that depends on this package? |
If you don't need exactly this package, a suggestion to people who come here is to use https://github.com/Wyattjoh/pushover
|
Another solution is to switch to this fork which solves the issue: https://github.com/almir1904/python-pushover I think it is good idea to star it, so it will at some point become default (when number of stars will be greater than stars here). You can add in
|
I ended up dumping pushover in HA and using the node-red pushover node for alerting in my automation flows. That gets around these issues as it’s kept updated. |
I am not seeing a "Client" in the api, is this not a full fork? |
@mcelhennyi you'll notice that this repo has also dropped the (Caught me by surprise too, especially since docs were never updated) |
https://setuptools.pypa.io/en/latest/history.html#v58-0-0
No longer installs it throws a
bash-5.1# pip3 install python-pushover Collecting python-pushover Using cached python-pushover-0.4.tar.gz (19 kB) ERROR: Command errored out with exit status 1: command: /usr/local/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rdilmzkd/python-pushover/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rdilmzkd/python-pushover/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-d0zpskx4 cwd: /tmp/pip-install-rdilmzkd/python-pushover/ Complete output (1 lines): error in python-pushover setup command: use_2to3 is invalid. ----------------------------------------
due to a call to use_2to3 in setup.py.
The text was updated successfully, but these errors were encountered: