JuliaPy / JuliaPy/PythonCall.jl

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

Open
#531 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Julia
Stars
1.1k
Forks
86
Avg merge
1d 22h
Merged PRs (30d)
3

Description

**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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.