Code Monkey home page Code Monkey logo

Comments (6)

Arinze1020 avatar Arinze1020 commented on May 23, 2024 1

Haven the same issue on -version 0.9.3
saying 'whois' has no attribute 'query'

from python-whois.

DannyCork avatar DannyCork commented on May 23, 2024

thanks for raising the issue report.

I used the following code using python 3.6 :

import whois

target = ('google.com')
n = whois.query(target)
print(n.__dict__)

and got

$ p x.py 
{'name': 'google.com', 'registrar': 'MarkMonitor Inc.', 'creation_date': datetime.datetime(1997, 9, 15, 4, 0), 'expiration_date': datetime.datetime(2020, 9, 14, 4, 0), 'last_updated': None, 'name_servers': {'ns2.google.com', 'ns3.google.com', 'ns1.google.com', 'ns4.google.com'}}

What version of python are you using?

from python-whois.

DannyCork avatar DannyCork commented on May 23, 2024

fixed in https://pypi.org/project/whois/0.9.2/

Please do a $ pip install --upgrade whois
and report back.
Thanks.

from python-whois.

MariusMez avatar MariusMez commented on May 23, 2024

Maybe you have an other python package with same import name. It's the case with the module python-whois which use the package name 'whois' too.

Try pip uninstall python-whois to check that

Try also to delete cache files : find . -name "*.pyc" -delete

from python-whois.

nicksamuel avatar nicksamuel commented on May 23, 2024

Can confirm uninstalling python-whois did the trick for me, seems there was a conflict. Thanks!

from python-whois.

IgorSonehara avatar IgorSonehara commented on May 23, 2024

Had the same problem, for some reason the name of file can't be whois.py

from python-whois.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.