I’m unable to import the “diffeqpy” which is the python base pack for the DifferentialEquation.jl on Google Colab. can anyone help?
this is the error I receive trying to " from diffeqpy import de" :
---------------------------------------------------------------------------
UnsupportedPythonError Traceback (most recent call last)
<ipython-input-17-f29d4c8cdeef> in <module>()
----> 1 from diffeqpy import de
8 frames
/usr/local/lib/python3.6/dist-packages/julia/core.py in __init__(self, init_julia, jl_init_path, runtime, jl_runtime_path, debug, **julia_options)
481 logger.debug("compiled_modules = %r", options.compiled_modules)
482 if not (options.compiled_modules == "no" or is_compatible_python):
--> 483 raise UnsupportedPythonError(jlinfo)
484
485 self.api.init_julia(options)
UnsupportedPythonError: It seems your Julia and PyJulia setup are not supported.
Julia executable:
julia
Python interpreter and libpython used by PyCall.jl:
/usr/bin/python3
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0
Python interpreter used to import PyJulia and its libpython.
/usr/bin/python3
/usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0
Your Python interpreter "/usr/bin/python3"
is statically linked to libpython. Currently, PyJulia does not fully
support such Python interpreter.
The easiest workaround is to pass `compiled_modules=False` to `Julia`
constructor. To do so, first *reboot* your Python REPL (if this happened
inside an interactive session) and then evaluate:
>>> from julia.api import Julia
>>> jl = Julia(compiled_modules=False)
Another workaround is to run your Python script with `python-jl`
command bundled in PyJulia. You can simply do:
$ python-jl PATH/TO/YOUR/SCRIPT.py
See `python-jl --help` for more information.
For more information, see:
https://pyjulia.readthedocs.io/en/latest/troubleshooting.html