From 3e82eb620fc6bcc4bab7666613ac8f97ba4c3cca Mon Sep 17 00:00:00 2001 From: Peter O'Connor Date: Wed, 16 Mar 2016 17:14:44 +0100 Subject: [PATCH] added hint to compile java --- .gitignore | 3 +++ requirements.txt | 2 +- spiking_mlp/jpype_connect.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9f36059..5cc358d 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,6 @@ target/ #virtualenv venv/ +Data + +.idea diff --git a/requirements.txt b/requirements.txt index 0c6e6dc..6a380e9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,5 +5,5 @@ scikit-learn pytest IPython -e git+http://github.com/petered/plato@0.0.3#egg=plato --e git+http://github.com/petered/deepspike@rename#egg=deepspike +-e git+http://github.com/petered/deepspike@v0.0.1#egg=deepspike git+http://github.com/originell/jpype@v0.6.1#egg=jpype diff --git a/spiking_mlp/jpype_connect.py b/spiking_mlp/jpype_connect.py index 9724822..4f98ab8 100644 --- a/spiking_mlp/jpype_connect.py +++ b/spiking_mlp/jpype_connect.py @@ -111,7 +111,7 @@ def register_java_class_path(class_path): assert isinstance(class_path, (list, tuple)), "class_path should either be a string or a list/tuple" for cp in class_path: - assert os.path.exists(cp), "Java Class path: %s does not exist" % (cp, ) + assert os.path.exists(cp), "Java Class path: %s does not exist. Did you forget to compile the Java code?" % (cp, ) global _JAVA_CLASS_PATH _JAVA_CLASS_PATH += class_path