-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create custom image in Julia 1.10: Method overwriting is not permitted during Module precompilation #555
Comments
Do you have |
I have no source files, just trying to create a plain sys.so that works with conda. |
I'm not sure I understand. If you have no new source code, there should not be a reason to create a new system image. What are your objectives? Do you encounter a problem otherwise? Also have you considered using juliacall? I just deployed a package to here: conda install julialang::pyjuliacall |
I may be misunderstanding, but the pyjulia documentation says it doesn’t
work by default with conda because the conda python binary is statically
linked (which I confirmed for my setup). Among the several workarounds
suggested is generating a new sys.so image:
https://pyjulia.readthedocs.io/en/latest/troubleshooting.html#your-python-interpreter-is-statically-linked-to-libpython
I will check out pyjuliacall.
…On Sun, Feb 4, 2024 at 9:08 PM Mark Kittisopikul ***@***.***> wrote:
I'm not sure I understand. If you have no new source code, there should
not be a reason to create a new system image. What are your objectives? Do
you encounter a problem otherwise?
Also have you considered using juliacall? I just deployed a package to
here:
https://anaconda.org/julialang/pyjuliacall
conda install julialang::pyjuliacall
—
Reply to this email directly, view it on GitHub
<#555 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN43JUEF4AXH27QNYYJ42LYR7FBXAVCNFSM6AAAAABCYU2IBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVHA3DQMZRGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I think most settle for the following when using pyjulia. from julia.api import Julia
jl = Julia(compiled_modules=False) However, I think pyjuliacall probably works better in this situation. Let me know if that's not the case. |
If |
Following the instructions at https://pyjulia.readthedocs.io/en/latest/sysimage.html with Julia 1.10.0 I get the error given in the subject. Here is the full output: https://gist.github.com/denizyuret/dcf47516b0379ce1f7fce8069610d039.
The instructions seem to work with Julia 1.9.4. However when trying to start julia with the new sys.so we get a different error: https://gist.github.com/denizyuret/62bac89ea0ac1f27e8bc0077d282c497.
The text was updated successfully, but these errors were encountered: