Skip to content

Error when importing de #135

Closed
Closed
@natasa-pavlov

Description

@natasa-pavlov

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:

>>> from diffeqpy import de
  Activating project at `~/.julia/environments/diffeqpy`
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/natasa/Library/Python/3.9/lib/python/site-packages/diffeqpy/de.py", line 5, in <module>
    de.jit = Main.seval("jit(x) = typeof(x).name.wrapper(ModelingToolkit.modelingtoolkitize(x), x.u0, x.tspan, x.p)") # kinda hackey
  File "/Users/natasa/.julia/packages/PythonCall/wXfah/src/jlwrap/any.jl", line 204, in __setattr__
    self._jl_callmethod($(pyjl_methodnum(pyjlany_setattr)), k, v)
AttributeError: Julia: cannot assign variables in other modules

Any feedback will be much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions