Package: python-jpype Version: 0.5.4.2-2 Severity: important Tags: upstream
I'm on a freshly-installed wheezy release and jpype can't find the path to java. The error originates from jpype/_linux.py. Here's a reproducible traceback: >>> import jpype >>> jpype.getDefaultJVMPath() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/jpype/_core.py", line 96, in getDefaultJVMPath return _linux.getDefaultJVMPath() File "/usr/lib/python2.7/dist-packages/jpype/_linux.py", line 36, in getDefaultJVMPath jvm = _getJVMFromJavaHome() File "/usr/lib/python2.7/dist-packages/jpype/_linux.py", line 55, in _getJVMFromJavaHome if os.path.exists(java_home+"/bin/javac") : TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' Java (both Oracle and OpenJVM) is installed in /usr/lib/jvm/foobarbaz and the code appears to be checking in /usr/lib/jvm. As a temporary workaround setting the JAVA_HOME enviroment variable explicitly will help jpype find Java and everything works fine. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-jpype depends on: ii default-jre 1:1.6-47 ii default-jre-headless [java6-runtime-headless] 1:1.6-47 ii libc6 2.13-33 ii libgcc1 1:4.7.1-2 ii libstdc++6 4.7.1-2 ii openjdk-6-jre-headless [java6-runtime-headless] 6b24-1.11.3-2 ii python 2.7.3~rc2-1 ii python2.6 2.6.8-0.2 ii python2.7 2.7.3~rc2-2.1 python-jpype recommends no packages. python-jpype suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org