Opened 4 years ago

Last modified 4 years ago

#31882 closed Uncategorized

JSONField for SQLite on macos - cannot set DYLD_LIBRARY_PATH — at Initial Version

Reported by: zach valenta Owned by: nobody
Component: Uncategorized Version: 3.1
Severity: Normal Keywords:
Cc: Sage Abdullah Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Trying to use JSONField with SQLite on macOS [Mojave 10.14].

I followed the instructions for how to enable SQLite's JSON1 extension but was unable to set DYLD_LIBRARY_PATH as an environmental variable.

`sh
# attempt to export
$ export DYLD_FALLBACK_LIBRARY_PATH=path/to/dir
# no stdout
$ env | rg DYLD
`

Based on Stack Overflow, inability to set this env var is the result of a [macOS security policy](https://stackoverflow.com/search?q=DYLD_LIBRARY_PATH+macos).

Should the [docs for JSONField using SQLite](https://code.djangoproject.com/wiki/JSON1Extension) be updated? Is there a commonly used workaround to this problem in the Django community?

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top