JuliaPy / JuliaPy/PythonCall.jl

[BUG] Hard crash due to Mac System Integrity Protection (SIP) Security Protocol Activation

Offen
#531 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Julia
Sterne
1.1k
Forks
86
Ø Merge
1 T. 22 Std.
Gemergte PRs (30 T.)
3

Beschreibung

**Affects:** PythonCall

**Describe the bug**
Setting the `PYTHON_JULIACALL_HANDLE_SIGNALS` environment variable manually and then importing `juliacall` triggers the disk security protocol on MacOS

Meanwhile just importing `juliacall` works fine

ANY VERSIONS

Reproduce script:
```py
import os

os.environ["PYTHON_JULIACALL_HANDLE_SIGNALS"] = os.environ.get("PYTHON_JULIACALL_HANDLE_SIGNALS", "yes")

import juliacall
```

For clarity: importing `juliacall` works fine, but if you set environment variable first, it triggers SIP

**Your system**
Please provide detailed information about your system:
- MacOS
- Any versions

**Additional context**
First seen at https://github.com/MilesCranmer/PySR/issues/682

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.