Python Forum
Having trouble with a circula import
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having trouble with a circula import
#1
When I try to run the sqlite3 module. It is saying it has a circula import. Here is the error:

line 2, in <module>
    import sqlite3
  File "C:\Users\Chris\Python\Lib\sqlite3\__init__.py", line 37, in <module>
    conn = sqlite3.connect('c:/Users/Chris/Python/Python Projects/mock_database/algo_database.db')
           ^^^^^^^^^^^^^^^
AttributeError: partially initialized module 'sqlite3' has no attribute 'connect' (most likely due to a circular import)
What is going on here?
Reply


Messages In This Thread
Having trouble with a circula import - by SuchUmami - Jul-04-2023, 10:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trouble with "from…import…as" arbiel 2 2,828 Apr-14-2020, 03:38 PM
Last Post: arbiel
  Import from .py trouble michael1789 4 2,431 Nov-27-2019, 11:23 PM
Last Post: michael1789

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020