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

Embedding Julia error #11096

Closed
quinnj opened this issue May 2, 2015 · 1 comment
Closed

Embedding Julia error #11096

quinnj opened this issue May 2, 2015 · 1 comment
Labels
domain:docs This change adds or pertains to documentation

Comments

@quinnj
Copy link
Member

quinnj commented May 2, 2015

I'm trying to call Julia from python, but get the following error

[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> julia = cdll.LoadLibrary('/Users/jacobquinn/julia/usr/lib/libjulia.dylib')
>>> 
>>> julia.jl_init.argtypes = [c_char_p]
>>> julia.jl_init('/Users/jacobquinn/julia/usr/lib/')
LLVM ERROR: Could not resolve external global address: jl_pgcstack
jq-mbp:julia jacobquinn$ 

Am I missing something obvious?

@vtjnash
Copy link
Sponsor Member

vtjnash commented May 2, 2015

julia wants to be RTLD_GLOBAL:

>>> julia=CDLL('./libjulia.dylib',RTLD_GLOBAL)
>>> julia.jl_init.argtypes = [c_char_p]
>>> julia.jl_init('.')
250593296

edit: cross-link #6565 (comment)

@ihnorton ihnorton added the domain:docs This change adds or pertains to documentation label May 3, 2015
@quinnj quinnj closed this as completed in 475a276 May 5, 2015
jakebolewski added a commit that referenced this issue May 5, 2015
mbauman pushed a commit to mbauman/julia that referenced this issue Jun 6, 2015
tkelman pushed a commit to tkelman/julia that referenced this issue Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:docs This change adds or pertains to documentation
Projects
None yet
Development

No branches or pull requests

3 participants