Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Debug-Mode of PyCharm #1

Open
elRicharde opened this issue Feb 8, 2022 · 0 comments
Open

Error in Debug-Mode of PyCharm #1

elRicharde opened this issue Feb 8, 2022 · 0 comments

Comments

@elRicharde
Copy link

While Debugging 04_orm_basic in PyCharm i run into the following Error:
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 21280 and this is thread id 32808.

The Error is raised when using lazy load pattern in line 163

While not in Debugging, or having the first Breakpoint after the lazy load it works. Also in Visual Studio everything is fine, even in debugging.

For Some Reason PyCharm is changing the Thread at this point.

I wonder now if this is only in PyCharm in Debugging or can happen in a real-world scenario as well.

Thx in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant