JuliaPy / JuliaPy/PythonCall.jl

concurrency fails w/o warmup

Offen
#695 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Julia
Sterne
1.1k
Forks
86
Ø Merge
1 T. 22 Std.
Gemergte PRs (30 T.)
3

Beschreibung

trying to recapitulate the [multithreading example](https://juliapy.github.io/PythonCall.jl/stable/juliacall/#py-multi-threading) in the docs, and on ubuntu and macos i have to call `systemsleep` normally beforehand or submitting it to the pool will hang:

```
Python 3.14.0 | packaged by conda-forge | (main, Oct 12 2025, 19:48:32) [Clang 20.1.8 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from concurrent.futures import ThreadPoolExecutor, wait
>>> from juliacall import Main as jl
>>> pool = ThreadPoolExecutor(4)
>>> jl.Libc.systemsleep(1) # w/o this line the next line hangs
0
>>> f = pool.submit(jl.Libc.systemsleep, 5)
>>> f

>>> import juliacall
>>> juliacall.__version__
'0.9.28'
>>> jl.VERSION
Julia: v"1.12.0"
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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