quinnj / Sublime-IJulia

An IJulia Frontend for Sublime Text 3
90 stars 16 forks source link

Sublime-IJulia doesn't work on Arch Linux #8

Closed papamarkou closed 10 years ago

papamarkou commented 10 years ago

Hi Jacob, after pressing Ctrl+shift+p and typing-selecting "Open IJulia", I do not see the repl popping up. This is what I see in the text console:

starting kernel...
cmd: julia /home/theodore/.julia/IJulia/src/kernel.jl "/home/theodore/.config/sublime-text-3/Packages/User/profile-0.json" 
quinnj commented 10 years ago

Hey @scidom, I've pushed a bunch of updates in the last few days and just updated the documentation as well. Check out the homepage to make sure you're getting everything installed correctly and let me know if you're still having any problems.

papamarkou commented 10 years ago

Hi Jacob, the instructions on the README file are really good. Nevertheless, it didn't work on my Arch Linux laptop. I was getting an error related to not finding ZMQ, I then gave it the full path to /usr/lib/libzmq.so which prevented the error, but the Julia banner never shows up. Instead, this is what I see in the console view:

Starting IJulia backend...
Command Executed: julia /home/theodore/.julia/IJulia/src/kernel.jl "/home/theodore/.config/sublime-text-3/Packages/User/profile-0.json"

I will try it on kubuntu tonight on another laptop and will let you know how it goes.

quinnj commented 10 years ago

What would also be helpful is to try running

julia /home/theodore/.julia/IJulia/src/kernel.jl "/home/theodore/.config/sublime-text-3/Packages/User/profile-0.json"

from the command line. If that doesn't work, hopefully that will give a good error message? I'm also seeming to remember there being some kind of issue with the sublime packages path on linux; does your "/home/theodore/.config/sublime-text-3/Packages/User/profile-0.json" file actually exist? If not, can you find where profile-0.json exists in the /home/theodore/.config/sublime-text-3 directory?

papamarkou commented 10 years ago

My Arch laptop is now at work, but I just tried from my kubuntu laptop. I had again to change the zmq_shared_library to avoid the zmq related error. In particular, I first ran sudo apt-get install libzmq-dev and then set zmq_shared_library to /usr/lib/x86_64-linux-gnu/libzmq.so.3. I got the same error as in Arch. I then ran the command you suggested from the command line, where I got the output Starting kernel event loops and all of a sudden the banner appeared on Sublime! I tried to run 2+3 from Sublime's console and I got 5. Then I tried again from Sublime's console using Distributions and I got the error

>>> using Distributions
  File "<string>", line 1
    using Distributions
                      ^
SyntaxError: unexpected EOF while parsing

By the way, I can only see the banner in the IJulia 0 tab, the result 5 and the error related to Distributions appeared in Sublime's console, is this normal? It feels that the package is not so usable really on Linux (at least not yet :))

quinnj commented 10 years ago

Drat. That sounds like mess. Hmmm.....I have an old linux box I'll dust off tonight and see if I can get it up and running and see what the problem is.

papamarkou commented 10 years ago

Cheers Jacob, let me know if you manage to fix it as the Sublime IJulia combination seems very tempting.

quinnj commented 10 years ago

Hey @scidom, can you run

import sublime
sublime.version()

from the console in sublime and let me know what it returns? I think your version may be too out of date.

papamarkou commented 10 years ago

Hi @karbarcca, this is what I got:

>>> sublime.version()
'3059'
quinnj commented 10 years ago

Hmmm....interesting. Maybe we need to start fresh then. Can you remove the Sublime-IJulia package (ctrl+shift+p, type "remove package", then select IJulia) and then reinstall, following the instructions on the homepage README? I've been adding additional tweaks all day as I've helped various linux/osx users get it installed. Once we know it's a fresh install, I can help debug if it's still not working right.

papamarkou commented 10 years ago

I can confirm that it now works @karbacca!! I tried it on kubuntu, will try Arch tomorrow.

papamarkou commented 10 years ago

Hm, odd, it didn't work on Arch. But then again i) this is an old 32 bit machine, ii) I will change its OS to kubuntu probably today, I am leaving Arch for now. I will close this issue, since we got it up and running on kubuntu!

papamarkou commented 10 years ago

By the way @karbarcca, I can now confirm that it works on Arch too!! That's awesome! Thanks for the amazing package! The issue is that although I had added julia to my PATH in ~/.bashrc, for some reason it was not detectable by my Sublime-IJulia user setting file. So I simply changed there the value of unix to be the full path to my julia binary, and it now works!

quinnj commented 10 years ago

Great to hear! Thanks for your patience. I think we're slowly working out all the platform issues. I think I'll add a note to the instructions about the path issue. Thanks!