JuliaPy / JuliaPy/PythonCall.jl

Trouble with runing an app which uses PythonCall

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

Beschreibung

Hello!
I've an error when i'm trying to run an created app which uses PythonCall.

Code for MWE is published here: [https://github.com/YuliyaCl/PythonCall_tst.jl](https://github.com/YuliyaCl/PythonCall_tst.jl).

To create an app run file **deploy/compile_app.sh** .
Tests and building proccess run correctly but when I'm runing `PythonCall_tst.exe` in cmd, an error occurs:

```
fatal: error thrown and no exception handler available.
InitError(mod=:C, error=ErrorException("no environment in the LOAD_PATH depends on CondaPkg"))
error at .\error.jl:33
_resolve_top_env at C:\Users\yzh\.julia\packages\CondaPkg\Olo5Y\src\resolve.jl:16
#resolve#37 at C:\Users\yzh\.julia\packages\CondaPkg\Olo5Y\src\resolve.jl:307
resolve at C:\Users\yzh\.julia\packages\CondaPkg\Olo5Y\src\resolve.jl:288
envdir at C:\Users\yzh\.julia\packages\CondaPkg\Olo5Y\src\env.jl:70
init_context at C:\Users\yzh\.julia\packages\PythonCall\XgP8G\src\cpython\context.jl:56
__init__ at C:\Users\yzh\.julia\packages\PythonCall\XgP8G\src\cpython\CPython.jl:21
jfptr___init___36506.clone_1 at C:\Users\yzh\.julia\dev\PythonCall_tst\PythonCallCompiled\lib\julia\sys.dll (unknown line)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1788 [inlined]
jl_module_run_initializer at /cygdrive/c/buildbot/worker/package_win64/build/src\toplevel.c:73
_finish_julia_init at /cygdrive/c/buildbot/worker/package_win64/build/src\init.c:796
jl_init_with_image at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:74 [inlined]
jl_init_with_image at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:63 [inlined]
jl_init at /cygdrive/c/buildbot/worker/package_win64/build/src\jlapi.c:90
.text at C:\Users\yzh\.julia\dev\PythonCall_tst\PythonCallCompiled\bin\PythonCall_tst.exe (unknown line)
__tmainCRTStartup at C:\Users\yzh\.julia\dev\PythonCall_tst\PythonCallCompiled\bin\PythonCall_tst.exe (unknown line)
.l_start at C:\Users\yzh\.julia\dev\PythonCall_tst\PythonCallCompiled\bin\PythonCall_tst.exe (unknown line)
BaseThreadInitThunk at C:\windows\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\windows\SYSTEM32\ntdll.dll (unknown line)
```

OS: Windows 10
Do you have any ideas how to solve it? Thanks!

Yuliya

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start with the linked MWE repository and run deploy/compile_app.sh on Windows 10, then launch PythonCall_tst.exe to reproduce the failure. Read the reported PythonCall and CondaPkg initialization stack trace; done means the compiled application starts without the fatal no-environment-in-LOAD_PATH error.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

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

Neue Issues direkt in Ihr Postfach

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