-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Error when importing de #135
Comments
Are you sure you're on the latest versions of the packages? |
I have the same problem. I use Python 3.9.13, but I have several versions of Julia, ranging from 1.8.x to 1.10.x. I have installed the latest version of diffeqpy. When I implemented the ode it did not have the issue. How could I fix it? |
@LilithHafner can you look into this? |
I'm having trouble reproducing this issue. I've tried on MacOS 13.6.3 on apple silicon with Julia 1.10.3 and python 3.9.13, using diffeqpy version 2.4.1 and juliacall version 0.9.20. (I've also tried on Asahi linux with a variety over versions). Would either of you be willing to report more detailed reproduction instructions? Some useful things to know would be
(@v1.10) pkg> activate @diffeqpy
Activating project at `~/.julia/environments/diffeqpy`
(@diffeqpy) pkg> st
Status `~/.julia/environments/diffeqpy/Project.toml`
[0c46a032] DifferentialEquations v7.13.0
[961ee093] ModelingToolkit v9.15.0
[6099a3de] PythonCall v0.9.20 I'll try to debug and fix this without reproducing it, but it would be much more effective if I can get the error to appear locally. Thanks! |
I'm guessing that updating to Julia 1.9 or higher will fix this (see: JuliaLang/julia#54607) I can also prepare a PR to this package that works around this behavior if @ChrisRackauckas would like us to continue supporting versions of Julia prior to 1.9. I mistakenly assumed that @HuynhTran0301 reproduced this error using Julia 1.10; I will try to convince diffeqpy to use Julia 1.8 instead and see if I can reproduce the issue then. |
I mistakingly believed this was reproduced with Julia v1.10, but since it was demonstrated to actually only be v1.8 and below, I'm willing to say that doesn't need to be solved. The new v1.10 LTS will be coming out rather soon, so it won't even be easy for most people to find pre v1.10 versions. We're fine just supporting LTS and above. |
Thank you for the reply from @LilithHafner I have checked the package version as you suggested.
How could I set up the specified version using Julia through PythonCall? As you mentioned the error may be happened for version 1.10 or 1.8. |
@HuynhTran0301, you can run this to determine which version of Julia is running:
I don't know yet but see JuliaPy/PythonCall.jl#506 |
@LilithHafner Thank you for your reply. Now I understand why I got the issue, the Julia API is run with Julia version 1.8.5. I am trying to change it to 1.9.x. I will update the information. |
Question❓
I'm having issues when I run the line
from diffeqpy import de
in Python 3.9.6 and with Julia 1.8.3. installed.I get the following error:
Any feedback will be much appreciated!
The text was updated successfully, but these errors were encountered: