JuliaPy / JuliaPy/PyCall.jl

Calling Julia function from Python Threads runs for forever

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

Description

I am importing a Python script into my Julia code. I am then trying to call a Julia function within a Multi-threading Python process, which leads to a Deadlock. How can I adapt the Julia Code to be able to call Python with Multi-threading?

My example code:
https://github.com/JulesBlubb/Julia-Multithreading-Problem

System Details:
- Ubuntu 19.10
- Julia 1.3.1 with Pycall v1.91.4
- Python: 3.6.5

Thank you.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the reproduction linked in JulesBlubb/Julia-Multithreading-Problem and run it with Julia 1.3.1, PyCall v1.91.4, and Python 3.6.5. Trace the Julia/Python threading interaction and verify that the example completes without deadlocking.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.