JuliaPy / JuliaPy/PyCall.jl

Calling Julia function from Python Threads runs for forever

Offen
#765 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Julia
Sterne
1.5k
Forks
186
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
julia, python
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.