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

Connection initialization is broken on Mac OS #6

Closed
codeforkjeff opened this issue Dec 9, 2020 · 0 comments
Closed

Connection initialization is broken on Mac OS #6

codeforkjeff opened this issue Dec 9, 2020 · 0 comments

Comments

@codeforkjeff
Copy link
Owner

codeforkjeff commented Dec 9, 2020

SQLite on Mac OS doesn't have support for loadable extensions compiled in, so enable_load_extension() fails. This is true for Big Sur's python 2.7.16 and 3.8.2. The python docs also mention this issue.

The fix is to not call enable_load_extension() unless there are extensions to load, so that the adapter can at least work on Mac OS with the pythons that ship with it, w/o extensions. Snapshots will not work due to missing the md5() function. To get those working, people running Mac OS will need to compile sqlite/python or get some other python distribution (maybe Anaconda or Intel's python dist?).

codeforkjeff added a commit that referenced this issue Dec 9, 2020
…s to load. this makes the adapter work on Mac OS.
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