You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am trying to create a micro-service (with Flask) that use the library for getting synsets of a given word. I've noticed some unexpected behaviour when creating quering for synsets and Flask. For the attached code below I am getting an error:
ProgrammingError('SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 139815518537536 and this is thread id 139811777947392.
@Vosloo thanks for the detailed report. SQLite doesn't allow multithreading by default. Have you tried using the wn.config.allow_multithreading option?
I'm going to close this, but feel free to reopen if my suggestion above doesn't work. I tried it using your code to reproduce the issue (which BTW wasn't usable without a few fixes) and I got around the ProgrammingError, so I'll assume that this fixes the problem.
Problem description
Hello, I am trying to create a micro-service (with Flask) that use the library for getting synsets of a given word. I've noticed some unexpected behaviour when creating quering for synsets and Flask. For the attached code below I am getting an error:
Code to reproduce
Expected behavior
We should get a list of synsets.
Environment
-- odenet 1.4 [de] Offenes Deutsches WordNet (only using this one)
-- oewn 2021 [en] Open English WordNet
The text was updated successfully, but these errors were encountered: