Skip to content

Unable to load jar in Python virtualenv #26

Description

@GoogleCodeExporter
It's best practice to install Python projects into virtual environments. So, 
adapting your installation instructions, I did:

    sudo apt-get install -y python2.7 python-wxgtk2.8 openjdk-7-jdk gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer-tools sox mplayer python-setuptools
    virtualenv --system-site-packages .env
    . .env/bin/activate
    pip install MplayerCtrl
    svn checkout http://voiceid.googlecode.com/svn/trunk voiceid
    cd voiceid
    python setup.py install

This installs fine, but when I attempt to run the `vid` command, I received the 
error:

    IOError: File /usr/local/myproject/.env/local/share/voiceid/LIUM_SpkDiarization-4.7.jar doesn't exist or not correctly created

This is because CONFIGURATION.LIUM_JAR is hardcoded to look in /local/share, 
but virtualenv creates a `local/` and a `share/`, but no `local/share`. I fixed 
this by symlinking `share/` into `local/`, but it might be easier to modify 
your code to check both locations.

Original issue reported on code.google.com by chrisspen@gmail.com on 13 Feb 2014 at 7:43

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions