question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

object has no attribute 'query'

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Arinze1020commented, Oct 13, 2019

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

0reactions
IgorSoneharacommented, Oct 27, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found