-
Notifications
You must be signed in to change notification settings - Fork 188
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
Fix 0.4-dev dlopen breakage #144
Conversation
OK, the failing test seems to be there for python 3 before this PR so I guess it is unrelated. Is this a known issue? The problem seems to be that the return value is an array of |
|
Yes, the python 3 round-trip issue is known, and is unrelated. It should hopefully be fixed by the upcoming array overhaul using the buffer protocol. |
Also note that since the nightly build seems to be on a earlier version, the CI is actually not testing the change made by this PR... The version test I've added is just the version I was using and is not really the version this change is introduced. It should be closed enough to the actually commit for practical purpose though... (And IMHO, it is not necessary to make a package works on every commit of julia....) |
The main reason that pyinitialize takes a pointer argument is in order to support the pyjulia package: when Julia is being called from Python, and PyCall is initialized, we pass in So, I'd like to continue to support Maybe there can be a method |
OK, I'll try that. I think it is still necessary to keep the handle around in order to not let the finalizer run. Also, could you have a look at the change in the |
The finalize change looks okay. The |
Done. Not exactly in the way you suggested but I think it will work. P.S. This is when I love |
Hmmm. I got a SegFault when running |
Only happens in REPL and here the backtrace. |
Smaller repro
|
Reproduce without REPL using PyCall
const pltm = pyimport("numpy")
print(pltm)
const plt = pywrap(pltm)
print(plt) |
I guess I'll report to julia since it is unlikely that |
@stevengj |
Thanks! |
I've also just managed to strip |
…ing python gui (may be relevant to JuliaPy#144)
The first commit is some white space fixes.
The roundtrip test is failing for unknown reason. Haven't looked further yet.
Fix #143.