Timeline for (Monterey) Could System Integrity Protection be keeping Python3's "MySQL" library from loading?
Current License: CC BY-SA 4.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 21, 2023 at 23:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Aug 23, 2023 at 22:05 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 25, 2023 at 22:02 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Dec 26, 2022 at 21:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Nov 26, 2022 at 20:32 | answer | added | Mike Robinson | timeline score: 1 | |
Nov 19, 2022 at 18:30 | comment | added | Mike Robinson | Two more which seem to clearly implicate SIP: stackoverflow.com/questions/38468764/… and one which has a lot of explanation stackoverflow.com/questions/35568122/… ... but if the library could be locally installed within the virtualenv, that would be nicer. | |
Nov 19, 2022 at 18:22 | comment | added | Mike Robinson |
This page 9to5answer.com/… refers to a --no-binary option of pip install ... But, I should not have to compile this stuff ... so I think it's another red herring.
|
|
Nov 19, 2022 at 18:15 | comment | added | Mike Robinson |
The "github" discovery does refer to site-packages and putting a symlink in there, in one comment by "genomics-geek."
|
|
Nov 19, 2022 at 18:09 | comment | added | Mike Robinson | Marc: Found this over on "stackoverflow" and am still reading it ... stackoverflow.com/questions/21999810/… ... I don't think it helped, but I'm still looking, using "dylib" as a search term. Found github.com/ibmdb/python-ibmdb/issues/187 but it's 2019 may be pre-Catalina (SIP). | |
Nov 19, 2022 at 18:03 | comment | added | Mike Robinson | I am grateful for these responses and looking for more, because "I am at my wit's end and up against a very looming deadline – while this issue has me at a dead-stop." Thanks folks. (To clarify, Marc: I see how to install a package, but how does one (separately) install a library? I don't have any idea (yet). Some tutorials seem to use the term "library" and "package" interchangeably, which for our purposes is misleading. | |
Nov 19, 2022 at 18:02 | comment | added | Mike Robinson | I will try that, mmmmmmm. But, can you please point me to any online resources which tell me more about "how and when" SIP does this? man dyld only says, cryptically: "If System Integrity Protection is enabled, these environment variables are ignored when executing binaries protected by System Integrity Protection." Without plainly saying exactly what those are – and it seems unlikely that the "python3" executable – which is coming from a subdirectory of my home – would qualify. | |
Nov 19, 2022 at 18:00 | comment | added | Mike Robinson | An interesting idea, Marc ... how does one do that, please? I did, of course, install the "mysqlclient" package, which is the correct one for Python3. But I do not know how one installs a particular library within a VEnv if the package installer does not do so already. Enlighten me, please. Reference to a proper web-page would be just fine. | |
Nov 19, 2022 at 14:43 | comment | added | Marc Wilson | Install the library inside the virtualenv. | |
Nov 19, 2022 at 9:42 | comment | added | mmmmmm | Yes SIP does stop DYLD_LIBRARY_PATH. If you unset it what is the error? | |
Nov 19, 2022 at 2:18 | history | edited | Mike Robinson | CC BY-SA 4.0 |
added 183 characters in body; added 93 characters in body
|
Nov 19, 2022 at 2:12 | history | asked | Mike Robinson | CC BY-SA 4.0 |