-
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
MethodError when using (indirectly) StaticArrays #105
MethodError when using (indirectly) StaticArrays #105
Comments
This is a world age issue probably(I infer that from the MethodException type) but not sure. a minimal working example not including StaticArrays
since eval just calls jl_eval_str ,I guess this is probably a bug in other embeddings of Julia my personal workaround is to avoid using the jlwrap objects and to just eval everything |
Thank you for your comment. However in my case, I have to pass a lot of data. I don't think that I can use I did not know initially what you mean by |
I deduce this from this issue
Please follow up on this thread if you find a proper solution, this is very frustrating. |
Thanks for the minimal reproduction examples to make this easier to understand. I proposed a fix in PyCall: |
Since julia version 0.6 I get an error
Julia exception: MethodError
when I try to call a julia module (https://github.com/gher-ulg/divand.jl/) from python. I tried to track the origin of this error and it seems that it is related to the module StaticArrays (which is used indirectly in my module trough the model Roots, requiring ForewardDiff which requires StaticArrays).Here is the minimal code which reproduces this issue:
The file
TestModule.jl
:The file
test_simple_module.py
:I run this example as:
~/.julia/v0.6/Conda/deps/usr/bin/python2.7 test_simple_module.py
The produces the following error:
(The python interpreter that comes with my Ubuntu installation produces a Segmentation fault)
One can also reproduce this error by just copying 2 lines from
StaticArrays
:In particular it is the conversion operation
(::Type{SA})(x...)
which generates thisMethodError
error.I am using
pyjulia
current as of today (last update Fri Jun 16 22:59:09 2017, commit d01b42b).229 packages depend on
StaticArrays
. It is possible that this issue affect other packages as well.Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: