-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
ccall fails to import some Python modules #13140
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Can you dlopen the library directly?
|
Seems so:
|
Sorry, bot-mode response... I would first check for a Python error after import, see http://stackoverflow.com/questions/6291545/how-do-i-find-out-why-importing-failed-with-pyimportmodule ... You could also try to print out |
@jmxpearson, thanks for digging into this. However, I really doubt that it is a |
Right, Python reports that it can't import scimath, which is an internal import in numpy. As I think I posted in the other issue, the error seems to happen every time Python uses some relative import syntax. Julia: C: IPython: Update: actually, just noticed the differences here. Will look into that. |
I agree. I was/am just confused by the fact that the C calls to the library work just fine. Shouldn't libpython fail for the same reason there? |
Could it be https://bugzilla.redhat.com/show_bug.cgi?id=874874 ? |
@jmxpearson, if you add |
@stevengj Unfortunately, no, but see the other thread. I think we can safely close this. |
I am referencing JuliaPy/PyCall.jl#65 here because I think I have eliminated almost anything in PyCall itself that could be causing the problem. I'm not sure what else could be left except an error in
ccall
. I'm running 0.4-rc1.In short, the following c code compiles and runs successfully on both my OSX and Ubuntu (14.10) machines (both systems running the Anaconda Python distribution):
while the following test code, called
pyimport_test.jl
, succeeds with the following on both systemsbut fails on Ubuntu with
The text was updated successfully, but these errors were encountered: