JuliaPy / JuliaPy/PythonCall.jl

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

未关闭
#531 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Julia
星标
1.1k
派生
86
平均合并
1 天 22 小时
30 天内合并 PR
3

描述

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

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。