You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Julia Version 0.6.2 and Python 2.7.12 on linux.
In Julia, I can execute "using PyCall" without problems.
In Python, importing the julia module works fine, however, when creating the julia object, I get the following error: ArgumentError("Module PyCall not found in current path.\nRun Pkg.add("PyCall")to install the PyCall package.")Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/lukas/.local/lib/python2.7/site-packages/julia/core.py", line 370, in __init__ self._call(u"using PyCall") File "/home/lukas/.local/lib/python2.7/site-packages/julia/core.py", line 412, in _call self.check_exception(src) File "/home/lukas/.local/lib/python2.7/site-packages/julia/core.py", line 432, in check_exception .format(exception_type, src)) julia.core.JuliaError: Exception 'ArgumentError' occurred while calling julia code: using PyCall
I checked that both use the same Julia bin.
I will describe what I've done to set up pyjulia, please let me know if I have missed something. I know something similar works on Mac, so I don't know why it doesn't work on Ubuntu.
Installed Anaconda with python 3.6.5.
Installed JuliaPro 0.6.2.
Added JuliaPro installation folder to path in .bashrc. "julia" is callable from terminal.
Added $JUPITER and $PYTHON environment variables to path in in .bashrc.
Added PyCall package to julia installation. It seems it is using correct libraries.
Cloned pyjulia project. Installed with "pip3 install -e ." within project.
Start a python session, type "import julia", which looks OK. After that, "julia.Julia()" outputs "ArgumentError("Module PyCall not found in current path.\nRunPkg.add("PyCall") ..." error from first message.
If I write julia.Julia(debug=True), I get the following exception, indicating that Julia path is correctly found:
Activity
jzazo commentedon May 3, 2018
I have same problem on Ubuntu with Anaconda and Python 3.6. Can anyone help?
jzazo commentedon May 7, 2018
I will describe what I've done to set up pyjulia, please let me know if I have missed something. I know something similar works on Mac, so I don't know why it doesn't work on Ubuntu.
If I write julia.Julia(debug=True), I get the following exception, indicating that Julia path is correctly found:
rohanaras commentedon Jul 2, 2018
I'm having a similar issue as well when I try to
%load_ext julia.magicin a jupyter notebook.mprogram commentedon Aug 17, 2018
Adding my vote here too. Will the issue be fixed? I'm having it with Julia 0.7 and wookay/pull/1 adopted patch.
tkf commentedon Nov 8, 2018
It's probably not an issue in PyJulia 0.2. Please reopen if not.