Python Attribute Error: 'module' object has no attribute 'connect'
See original GitHub issueConfigured the .ini file and attempted to run the python script in the installation guide. When entering code in line by line instead of executing the script I can get through the nfldb.connect() line with no error but nothing is printed.
Traceback (most recent call last):
File "nfldb.py", line 2, in <module>
import nfldb
File "C:\Users\xx\nfldb.py", line 4, in <module>
db = nfldb.connect()
AttributeError: 'module' object has no attribute 'connect'
Issue Analytics
- State:
- Created 9 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Python AttributeError: 'module' object has no attribute 'connect'
The error message shows you've named a file sqlite3.py : /home/michael/ownCloud/sqlite3.py". which masks the standard module of the same ...
Read more >AttributeError: 'module' object has no attribute 'Connection' #13
I have run python setup.py install without errors, and then python server.py got me this: $ python server.py Traceback (most recent call last):...
Read more >AttributeError: 'module' object has no attribute 'main'
Module object has no attribute error : Python. An attribute in Python means some property that is associated with a particular type of...
Read more >AttributeError: 'module' object has no attribute 'Connection'
I'm starting a new project with pyramid and mongodb. When I run the command: development.ini pserve shows the following error:.
Read more >AttributeError: module 'X' has no attribute 'Y' in Python
To solve the Python "AttributeError: module has no attribute", make sure you haven't named your local modules with names of remote modules, ...
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
Could you please include the full code that you’re using?
Judging by the error message, it looks like you’ve named your script
nfldb.py
and then tried to run that script. Theimport nfldb
line will then import your script instead of the actualnfldb
library. Try changing the file name of your program.such “basic” error that is actually really hard to comprehend where its comming from… until u do. the amout of time i went on circles to fix this - Andrew Gallant BurntSushi@ your wisdom will last for centuries! thanks