Problem installing/building on linux 64 bit, Java 8 & Python 2.7.0

538 views
Skip to first unread message

aya

unread,
Jul 25, 2016, 11:32:47 AM7/25/16
to Jep Project
Hi,

I'm a Java developer and new to Python.
Wanted to test embedding Python within Java.

I keep getting the same error message when trying to install/build Jep on my Linux 64 bit machine.

Running pip install jep resulted with the following error:

  Downloading jep-3.5.3.tar.gz (252kB): 252kB downloaded
  Running setup.py (path:/tmp/pip_build_root/jep/setup.py) egg_info for package jep
    Error:
    Please set the environment variable JAVA_HOME to a path containing the JDK.
    Complete output from command python setup.py egg_info:
    Error:

Please set the environment variable JAVA_HOME to a path containing the JDK.

Running python setup.py build Resulted with a simillar error:

Error:
Please set JAVA_HOME to a path containing the JDK.

I've verified that my JAVA_HOME is set to the appropriate jdk folder

java -version

yealds the following output:
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

What am I doing wrong?

Also, suppose I'd like to try another Jep version, where can I download it from?

Ben Steffensmeier

unread,
Jul 25, 2016, 1:05:01 PM7/25/16
to aya, Jep Project
setup.py just does os.environ.get('JAVA_HOME') and will only give the output you see if that is not set. I just double checked the documentation for os.environ and that should be a direct mapping of your environmental variable so your JAVA_HOME must not be set in the shell you are using to run setup.py. Is it possible you inadvertently used su or sudo or something and reset the environment?

The best source of other jep versions is to just check out the source on github and checkout the tag for the version you are interested in.

Ben

--
You received this message because you are subscribed to the Google Groups "Jep Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jep-project...@googlegroups.com.
To post to this group, send email to jep-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jep-project/74967aaf-82ad-4ef7-9508-7b38537370aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

aya

unread,
Jul 26, 2016, 12:48:11 PM7/26/16
to Jep Project, alona....@gmail.com
Hi Ben,

Thank you very much for your reply.

You were right.
I was using sudo..

Managed to install Jeo using pip on my home Linux machine without any problem (Debian 64bit).
Managed to build Jep 3.5.3 using setup.py on my work machine.
Managed to run Jep from my project which is what I actually needed.
I have some other questions that I'll ask in a new thread..

P.s.
I must say that due to permission restrictions on my work machine (I am a sudoer, but not root and there are some restrictions)
I got several errors b/c setup tried to write files to several restricted areas (like '/usr/local/lib/python2.7/dist-packages/ etc..)

Thanks again
Aya
Reply all
Reply to author
Forward
0 new messages