Páll Haraldsson wrote: > Since I'm more of a Julia user (or including calling Python) I'm not sure > I can help you too much. I would however find it interesting to know > if/when pyjulia works. If been following commits and see a big pull > request here: > > https://github.com/JuliaLang/pyjulia/pull/52 > > Maybe this is the one, that will help you when it is committed. I do not > know git[hub] enough to know if you can checkout [pyjulia] project with > these additions: > > EQt wants to merge 17 commits into JuliaLang:master from > EQt:clean-julia-0.4 > > [or others for that matter.. there are many other pull requests (and > issues) open.] > > At EQt's page I saw (but not his own repository with the code): > > Repositories contributed to > > https://github.com/benmoran/pyjulia > > I guess someone must review these changes (could be you?), or possibly > waiting for them to get committed (by those who have the privileges) is > the correct option. > > PyCall.jl as you may know allows for calling in the other direction. > pyjulia reuses it, but I saw something about it needing it's own PyCall.. > (so they can develop in independent directions(?), seems like a bad idea); > maybe I misunderstood.. > > > May I ask what you are doing with your own code? Or at least what Python > Libraries/frameworks you use? In particular, if you use Django or similar? > I would like to know if Django could be used with Julia, and then it seems > pyjulia would be needed (not just PyCall). > > I do not think you need to compile your own Julia. I could be wrong, just > do not see the reason. > > Maybe this, wasn't too helpful.. Is there another possibility, that you > could just use PyCall? > > On Tuesday, March 1, 2016 at 3:40:03 PM UTC, Neal Becker wrote: >> >> From time-to-time, I get interested in trying out moving some of my work >> from python to julia. Before I can even start, I need to be able to call >> from python to julia. But I've never gotten pyjulia to work on >> linux/fedora >> (currently 23). I've tried the fedora version of julia (0.4.3), and I've >> built my own julia today from master, and in both cases I get: >> >> j = julia.Julia (jl_init_path='/home/nbecker/julia') >> ERROR: UndefVarError: dlpath not defined >> in eval(::Module, ::Any) at ./boot.jl:267 >> [inlined code] from ./sysimg.jl:14 >> in process_options(::Base.JLOptions) at ./client.jl:239 >> in _start() at ./client.jl:318 >> Traceback (most recent call last): >> File "/home/nbecker/pyjulia/julia/core.py", line 238, in __init__ >> """]) >> File "/usr/lib64/python3.4/subprocess.py", line 620, in check_output >> raise CalledProcessError(retcode, process.args, output=output) >> subprocess.CalledProcessError: Command >> '['/home/nbecker/julia/usr/bin/julia', '-e', '\n >> println(JULIA_HOME)\n >> println(Sys.dlpath(dlopen("libjulia")))\n ']' >> returned non-zero exit status 1 >> >> During handling of the above exception, another exception occurred: >> >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File "/home/nbecker/pyjulia/julia/core.py", line 244, in __init__ >> raise JuliaError('error starting up the Julia process') >> julia.core.JuliaError: error starting up the Julia process >> >>
I'm not looking to call python libs from julia. I have a large investment in python code. The obvious (to me) path to try out some julia is to move a function or 2 into julia, and be able to call julia from my python main program. So I would need a working pyjulia to do this.
