object has no attribute 'query'
See original GitHub issueI already know that this problem has already been solved, but the solution for me was not that.
-my .py file name isn’t whois.py
-whois version 0.8
-installed with pip3 install whois
Code:
target = ('google.com')
n = whois.query(target)
print(n)
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
flask-sqlalchemy: AttributeError: type object has no attribute ...
You have two classes named User , one extending BaseModel and one extending Resource . The latter is shadowing the former.
Read more >object 'myTable' has no attribute 'query' · Issue #154 - GitHub
An sqlalchemy model does not have a query object. The way to do it is: db.session.query(YourModelName).query ...
Read more >attributeerror: 'generator' object has no attribute 'query'
When you get the error AttributeError: 'generator' object has no attribute 'query' python is telling you that the result of get_db() is not...
Read more >SQL Expressions as Mapped Attributes
Only by running a new Query that touches the object which includes a new with_expression() directive will the attribute be set to a...
Read more >AttributeError: 'SQLAlchemy' object has no attribute 'models'
I am new to Flask SQLAlchemy and in my models.py I have an error with this AttributeError: 'SQLAlchemy' object has no attribute 'models'....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Haven the same issue on -version 0.9.3 saying ‘whois’ has no attribute ‘query’
Had the same problem, for some reason the name of file can’t be whois.py