JuliaPy / JuliaPy/PyCall.jl

pyimport got stuck with deadlock

Open
#801 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

Hello,

I'm using PyCall v1.91.4 to import `rdkit.Chem` package from Python. It was working well until this Monday. The only change I made over the last weekend was to upgrade my scikit-learn package to 0.23.1 in Python. At first when I tried using `pyimport("rdkit.Chem")` in Julia on Monday, I got an error saying that `libmkl_intel_thread.dylib` was not loaded. After I did `conda install -c intel mkl`, even more strange issues occurred.
If I directly import Chem subpackage from rdkit, Julia will just get stuck with a deadlock
```
julia> Chem = pyimport("rdkit.Chem")
```
However, importing rdkit will not cause this issue.
```
julia> rdkit = pyimport("rdkit")
PyObject
```

The package itself doesn't seem to be problematic. When I imported it in Python, it was all good.
```
>>> import rdkit.Chem as Chem
>>> Chem.MolFromSmiles("C")

```

I've tried reconfiguring `ENV["PYTHON"] = my/path/to/correct/python` and then rebuild PyCall. But This didn't help. The `my/path/to/correct/python` was retrieved from using `which python`, so I think this is the correct path.
I even have tried completely reinstalling Julia v1.4.0 as well as wiping `~/.julia` folder but it didn't help either.

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.