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

LocalStatusSQLite.py: version aware threadsafety check (fixes #136) #139

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

theesm
Copy link
Contributor

@theesm theesm commented Nov 17, 2022

This PR

fixes #136 in a version-aware way. We specifically want to check wether sqlite.threadsafety returns the integer constant for SERIALIZED mode; so the value returned has to be 3 for Python >= 3.11 and 1 for Python <=3.10 to not break backwards compatibility.

  • I've read the DCO.
  • I've read the Coding Guidelines
  • The relevant informations about the changes stands in the commit message, not here in the message of the pull request.
  • Code changes follow the style of the files they change.
  • Code is tested (provide details).

References

Additional information

This is an slightly improved version of the local hotfix I have commented as a diff in #137.

@ag91
Copy link

ag91 commented Dec 5, 2022

any chance this could be merged? I needed to modify code manually to gather my emails :P

@noorul
Copy link

noorul commented Apr 23, 2023

When will be the next release with this fix? Every time I have to manually apply this patch on MacOS.

@thekix
Copy link
Member

thekix commented Nov 22, 2023

Hi @noorul ,

I think the problem was solved with the patch attached. Do you need a new release of OfflineIMAP to include these changes?

Best regards,
kix

@josefig
Copy link

josefig commented Nov 27, 2023

Hello, is this fixed? I currently have installed the offlineimap 8.0.0 using brew updated in Mac Sonoma 14.1.1, but i get the same error:

  assert sqlite.threadsafety == 1, 'Your sqlite is not multithreading safe.'
AssertionError: Your sqlite is not multithreading safe.

and the file is:
/usr/local/Cellar/offlineimap/8.0.0_1/libexec/lib/python3.12/site-packages/offlineimap/folder/LocalStatusSQLite.py

should I apply the patch manually?
Thanks in advance

@olopost
Copy link

olopost commented Mar 13, 2024

Hello, is this fixed? I currently have installed the offlineimap 8.0.0 using brew updated in Mac Sonoma 14.1.1, but i get the same error:

  assert sqlite.threadsafety == 1, 'Your sqlite is not multithreading safe.'
AssertionError: Your sqlite is not multithreading safe.

and the file is: /usr/local/Cellar/offlineimap/8.0.0_1/libexec/lib/python3.12/site-packages/offlineimap/folder/LocalStatusSQLite.py

should I apply the patch manually? Thanks in advance

Thanks for the post, same issue with brew on Mac Sonoma. I update manually and all works

@noorul
Copy link

noorul commented Mar 14, 2024

Not sure why are we not making a release

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

Successfully merging this pull request may close these issues.

Python 3.11 breaks sqlite multi-threading check
6 participants