Bachmann1234 / java9_kernel

An ipython kernel for java 9
Apache License 2.0
72 stars 17 forks source link

Problem INstalling #13

Closed gzero20 closed 8 years ago

gzero20 commented 8 years ago

Hi I can't succeed. please see screenshot below

image

dsblank commented 8 years ago

How did you install ipython? This is one good way: pip install ipython[notebook]

If you want magics, you can also: pip install metakernel

gzero20 commented 8 years ago

Using Anaconda

gzero20 commented 8 years ago

My problem is I followed your tutorial but not sure on the environment part. Can you check? Do you have Skype? I badly need your help/

dsblank commented 8 years ago

You can use pip with anaconda.

You can also try to install pexpect directly.

gzero20 commented 8 years ago

yes i know but that's not where I stuck. Ive been using python for quite some time so the pip and all are okay but i don't know which part I;m missing here

Bachmann1234 commented 8 years ago

Hmm, ill see if I can get this to work on anaconda. Ill see if I get some time tomorrow.

I dont know why it would be a problem, but if it works I can put some steps in here

dsblank commented 8 years ago

It could be that the python2 in your path is not the same as your Anaconda environment python2. If so, you should change the argv python2 to point to the real one. You can find it by running your Anaconda python2, and then:

import sys
print sys.executable

In fact, if we build a real installer, it would generate the kernel.json on the fly, and put that in argv.

Bachmann1234 commented 8 years ago

Howdy!

So, I created a fresh user on my mac and installed anaconda to test this.

It was the 64-bit graphical installer, python 2, installed for the user only.

It worked for me. My best guess for your issue is that @dsblank is right and that the kernel.son is pointing to the wrong python environment.

Here is the kernel.json I used

{
 "argv": ["/Users/tempbach/anaconda/bin/python", "/Users/tempbach/java9_kernel/javakernel",
          "-f", "{connection_file}"],
 "display_name": "Java 9",
 "language": "java",
 "env" : {
     "JAVA_9_HOME": "/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home",
     "KULLA_HOME": "/Users/tempbach/Downloads/kulla.jar"
     }
 } 

The biggest difference would be the path for the python script.

I hope this helps.

gzero20 commented 8 years ago

For the kulla.jar, no need to do anything right? I still can't have it work. :(

On Mon, Nov 30, 2015 at 9:36 AM, Matt Bachmann notifications@github.com wrote:

Howdy!

So, I created a fresh user on my mac and installed anaconda to test this.

It was the 64-bit graphical installer, python 2, installed for the user only.

It worked for me an my best guess is that @dsblank https://github.com/dsblank is right and that the kernel.son is pointing to the wrong python environment.

Here is the kernel.json I used

{ "argv": ["/Users/tempbach/anaconda/bin/python", "/Users/tempbach/java9_kernel/javakernel", "-f", "{connection_file}"], "display_name": "Java 9", "language": "java", "env" : { "JAVA_9_HOME": "/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home", "KULLA_HOME": "/Users/tempbach/Downloads/kulla.jar" } }

The biggest difference would be the path for the python script.

I hope this helps.

— Reply to this email directly or view it on GitHub https://github.com/Bachmann1234/java9_kernel/issues/13#issuecomment-160494437 .

gzero20 commented 8 years ago

BTW, i'm already using Jupyter

On Tue, Dec 1, 2015 at 4:14 AM, Geoffrey J. Murillo < geoffrey.murillo24@gmail.com> wrote:

For the kulla.jar, no need to do anything right? I still can't have it work. :(

On Mon, Nov 30, 2015 at 9:36 AM, Matt Bachmann notifications@github.com wrote:

Howdy!

So, I created a fresh user on my mac and installed anaconda to test this.

It was the 64-bit graphical installer, python 2, installed for the user only.

It worked for me an my best guess is that @dsblank https://github.com/dsblank is right and that the kernel.son is pointing to the wrong python environment.

Here is the kernel.json I used

{ "argv": ["/Users/tempbach/anaconda/bin/python", "/Users/tempbach/java9_kernel/javakernel", "-f", "{connection_file}"], "display_name": "Java 9", "language": "java", "env" : { "JAVA_9_HOME": "/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home", "KULLA_HOME": "/Users/tempbach/Downloads/kulla.jar" } }

The biggest difference would be the path for the python script.

I hope this helps.

— Reply to this email directly or view it on GitHub https://github.com/Bachmann1234/java9_kernel/issues/13#issuecomment-160494437 .

gzero20 commented 8 years ago

My OS is 10.11.1

On Tue, Dec 1, 2015 at 4:23 AM, Geoffrey J. Murillo < geoffrey.murillo24@gmail.com> wrote:

BTW, i'm already using Jupyter

On Tue, Dec 1, 2015 at 4:14 AM, Geoffrey J. Murillo < geoffrey.murillo24@gmail.com> wrote:

For the kulla.jar, no need to do anything right? I still can't have it work. :(

On Mon, Nov 30, 2015 at 9:36 AM, Matt Bachmann notifications@github.com wrote:

Howdy!

So, I created a fresh user on my mac and installed anaconda to test this.

It was the 64-bit graphical installer, python 2, installed for the user only.

It worked for me an my best guess is that @dsblank https://github.com/dsblank is right and that the kernel.son is pointing to the wrong python environment.

Here is the kernel.json I used

{ "argv": ["/Users/tempbach/anaconda/bin/python", "/Users/tempbach/java9_kernel/javakernel", "-f", "{connection_file}"], "display_name": "Java 9", "language": "java", "env" : { "JAVA_9_HOME": "/Library/Java/JavaVirtualMachines/jdk1.9.0.jdk/Contents/Home", "KULLA_HOME": "/Users/tempbach/Downloads/kulla.jar" } }

The biggest difference would be the path for the python script.

I hope this helps.

— Reply to this email directly or view it on GitHub https://github.com/Bachmann1234/java9_kernel/issues/13#issuecomment-160494437 .

Bachmann1234 commented 8 years ago

@gmur24 I don't think so. As long as the jar is there you should be fine.

Its hard for me to say much further without sitting with you.

Ultimately what the error is telling you is that the modules you expect to be installed are not installed. Anaconda includes all these. So all I got to advise is to look really closely at that python command you have in your kernel.

What is the output of which python2 ?

Bachmann1234 commented 8 years ago

Anything else to do here? If I dont hear back ill go ahead and close this