-
Notifications
You must be signed in to change notification settings - Fork 124
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
deprecation warnings ? #203
Comments
The core library is still calling these. I'll get it fixed next version. Nothing to worry about as far as functionality. |
/sub |
Same issue here. Reading the code it appears that's the way the library is designed. When calling Is there an ETA for a fix release? Thanks :) |
Will work this one once the dedup branch is merged to dev (soon). I also just realized it is using UserWarning and not DeprecationWarning. You can suppress these in the meantime: import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=UserWarning)
# put your lookup call here |
I still get this issue - any updates/idea when it will be resolved? |
This is still not fixed. The temp solution works but it does introduce a little bloat to the code. |
Using temp solution is working, just posting to keep tabs on this issue. |
Sorry for the hiatus. I pushed some issues out of 1.1.0 to 1.2.0 to expedite this and a couple bug fixes. Pending some fixes and testing...I should have it pushed to PyPi this week. |
Fixed deprecation warnings in core code (#203 - cstranex)
Merged to dev in #224 |
I am using IPWhois on a raspberry pi under the Python 2.7.9 Shell and am getting deprecation warnings about allow_permutations and _parse_fields_dns() when running the lookup_rdap example from the examples page:
Warning (from warnings module):
File "/usr/local/lib/python2.7/dist-packages/ipwhois/net.py", line 138
warn('allow_permutations has been deprecated and will be removed. '
UserWarning: allow_permutations has been deprecated and will be removed. It is no longer needed, due to the deprecation of asn_alts, and the addition of the asn_methods argument.
Warning (from warnings module):
File "/usr/local/lib/python2.7/dist-packages/ipwhois/asn.py", line 178
warn('IPASN._parse_fields_dns() has been deprecated and will be '
UserWarning: IPASN._parse_fields_dns() has been deprecated and will be removed. You should now use IPASN.parse_fields_dns().
The warnings resulted from executing this code which pretty much comes straight from the RDAP basis usage example:
obj = IPWhois('74.125.225.229');
results = obj.lookup_rdap(depth=1);
print results['asn_cidr'];
The text was updated successfully, but these errors were encountered: