Skip to content
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

PyCall.symbols_present is false #128

Closed
abalkin opened this issue Oct 6, 2017 · 1 comment
Closed

PyCall.symbols_present is false #128

abalkin opened this issue Oct 6, 2017 · 1 comment

Comments

@abalkin
Copy link

abalkin commented Oct 6, 2017

When PyCall is imported from a Julia instance embedded in python, it should obtain python symbols directly from the executable and not reload libpython. However,

>>> import julia
>>> j = julia.Julia()
>>> j.eval("PyCall.symbols_present")
False

and

>>> j.eval("PyCall.@pysym :xyz")
('xyz', '/usr/local/opt/python36/Frameworks/Python.framework/Versions/3.6/lib/libpython3.6m')
@tkf
Copy link
Member

tkf commented Nov 17, 2018

I think we are doing it already when using fake-julia (for statically linked Python). If you are using dynamically linked Python, it deos make sense to load it from libpython (because Python does it as well).

Note that fake-julia does not work in Julia 0.7 or above. This issue is tracked by #173.

@tkf tkf closed this as completed Nov 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants