Open sairus7 opened 2 years ago
Additional thoughts about the issue The error occurred during running the compiled app on the another machine and links to the line :
libpy_handle = libpython === nothing ? C_NULL :
Libdl.dlopen(libpython, Libdl.RTLD_LAZY|Libdl.RTLD_DEEPBIND|Libdl.RTLD_GLOBAL)
Also it seems that PyCall.libpython
value defines here:
append_truthy(lib_dirs, sysconfig.get_config_var('LIBPL'))
append_truthy(lib_dirs, sysconfig.get_config_var('srcdir'))
append_truthy(lib_dirs, sysconfig.get_config_var("LIBDIR"))
But I have no idea how to change it to the correct path.
PS. On Windows OS everything works correctly using the same approach.
I want to make a portable app with PyCall included, so I move conda into a common folder (this folder I would later copy to another machine when deploying compiled app binaries):
Then I rebuild PyCall and make sure all conda and python-related paths (there are much of them!) point to the right place:
Which gives me all paths set right but
PyCall.libpython
, which prevents me from running my compiled app on another machine: (also, I'm not sure about colons inPyCall.PYTHONHOME
)Contents of deps.jl: