You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/dingraha/projects/pythoncall_import_error/venv/lib/python3.9/site-packages/juliacall/__init__.py", line 218, in <module>
25
+
init()
26
+
File "/home/dingraha/projects/pythoncall_import_error/venv/lib/python3.9/site-packages/juliacall/__init__.py", line 214, in init
27
+
raise Exception('PythonCall.jl did not start properly')
28
+
Exception: PythonCall.jl did not start properly
29
+
```
30
+
31
+
As described in [issue 255](https://github.com/cjdoris/PythonCall.jl/issues/255), the likely problem is that the "other" Python library (`matplotlib`, whatever) is loading the system `libstdc++.so`, which isn't compatible with the `libstdc++.so` that Julia ships with.
32
+
Linux distributions with older `libstdc++` versions seem more likely to suffer from this issue.
33
+
The solution is to either:
34
+
35
+
* use a Linux distribution with a more recent `libstdc++`
36
+
* import `juliacall` before the other Python library, so that Julia's `libstdc++` is loaded
37
+
* use a Python from a conda environment, which will have a newer `libstdc++` that is compatible with Julia's
0 commit comments