JuliaPy / JuliaPy/PyCall.jl

Question: Creating custom image

Open
#1,044 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

I tried to create a custom image, but I got this error:

```
ERROR: The following 5 direct dependencies failed to precompile:

JuMP [4076af6c-e467-56ae-b986-b466b2749572]

Error: Missing source file for JuMP [4076af6c-e467-56ae-b986-b466b2749572]
PackageCompiler [9b87118b-4619-50d2-8e1e-99f35a4d4d9d]

Error: Missing source file for PackageCompiler [9b87118b-4619-50d2-8e1e-99f35a4d4d9d]
```

I used `--compiler-env` to use my current environment where all those packages are added. but that didn't help either.

I even tried

```
PackageCompiler.create_sysimage(
["JuMP"],
sysimage_path = "customimage." * Libdl.dlext,
precompile_execution_file = "my_test.jl",
)

PackageCompiler.create_sysimage(
[:PyCall];
sysimage_path = "sys.so",
base_sysimage="customimage.so",
)

```
which created `sys.so` but I got core-dump when I used `jl = Julia(sysimage="sys.so")`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.