Comments (4)
sorry I would like to keep python2 - some people aren't able to upgrade
from whois.
Python 3.12 is coming. It will drop all support for imp
, thus I must suggest a compromise.
Many packages maintain support for the long-deprecated Python2 without the use of imp
. While I myself do not, there are alternative means to maintaining support for both sides, otherwise python-whois
will end with the release of Python 3.12. As I and many others would not like to see that, I'd like to correct this issue somewhere in the pipeline.
Packages like six
might offer some amount of support, though I have not checked. I'll look into correcting the issue in python-future
directly, though testing the patch would be fairly impossible as I do not use it myself.
from whois.
I reached out to the python-future
team when I originally replied to this issue. Years later, they still haven't updated their project, which projects like this one depend upon. Python 3.12 is approaching very soon. There's been an open PR in python-future
to fix the issue since 2019.
We have two options, it would appear. Either python-whois
migrates to a fork of python-future
, or python-whois
ends with Python 3.12, in favor of supporting the long deprecated and unsupported Python 2.
There's nothing stopping development here. We can gracefully break step from Python 2 with a version number increase. Releases for Python 2 can remain on an older version number (mostly for security patching), while development for Python 3 can continue.
If it were me, and dropping Python 2 years after its retirement wasn't an option, I'd do as I've done before. Grab a fork of python-future
that's not dead, or fork python-future
yourself and merge that PR, no additional work needed. It will keep python-whois
alive exponentially longer, and maintain unbreaking support for both Python 2 and Python 3.
I do not want to see this project die, as I do still depend on it. I hope that I can still depend upon it when Python 3.12 is released. @richardpenman perhaps one of the few options I've noted here would work for you, particularly my final note about forking.
Thanks.
EDIT: so I looked into python-future
. It looks like a patch might have been pushed in version 0.18.3
, but the PR left open. Perhaps my Python virtual-env is outdated. Will report back if it's patched. Surprised that didn't occur to me sooner. Thing is, I install package updates frequently, so I'm not certain why future would still be an old version.
EDIT 2: So I rebuilt my venv with the latest of everything. The imp deprecation is still present. It would seem this issue still goes unfixed.
from whois.
Just another bump on this. Python 3.12 comes out in less then 3 months. This package and everything that uses it will stop working unless this deprecation is fixed.
from whois.
Related Issues (20)
- Unhandled time format HOT 2
- No module named imp HOT 3
- It's time to release a new version in pypi! HOT 3
- .pro domain lookups don't work HOT 6
- proposal name swap HOT 5
- add domain status HOT 4
- No module named imp HOT 4
- Missing python-dateutil dependency in package installs HOT 2
- Problem with .ru zone HOT 4
- Problem with .ai domain HOT 2
- New release on Pypi HOT 2
- Default parser does not have Registrar URL HOT 1
- An error occurred: 'module' object is not callable
- Expiration date for .com.ua zone is a string instead of datetime HOT 1
- the sg domain not Expiry Date HOT 1
- Issue with .ai HOT 2
- Handling invalid creation_date format for some domains HOT 1
- .live domain is not resolving
- Library returns multiple timestamps per field, have no idea what it means HOT 1
- Rate limit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whois.