Open dorn-gerhard opened 8 months ago
I am perplexed by this as well. Where did you obtain Julia and Python from?
I use juliaup and pip
my workaround so far was^^
for k in range(3):
try:
jl.include("file_with_using_packages.jl")
print("import succeded - just wait ;)")
break
except:
time.sleep(0.5)
print("import failed - everything is okay 💖💗💓💖")
print("next line")
I also tested the newer juliacall
and pythoncall
packages - they work will just need a bit more work for setting paths and environments up and for working on the gpu you have to switch on signal handling if you want to be safe with garbage collection while multithreading:
a solution to this:
os.environ["PYTHON_JULIACALL_HANDLE_SIGNALS"]="yes"
I am using Julia 1.10, python 3.8 and the newest Pyjulia version on Windows.
when trying to import some Julia packages (e.g. Images.jl) an error occurs, trying to import again throws another error. Third import try solves the issue (see code below) (running python-jl.exe solves the issue but would be nice, to get it running using pyhton.exe)
Maybe there is an issue in the order of loading subpackages?
any ideas how to circumvent the first two errors?