Issue #62 resolved

Missing biolite module when installing agalma

Dave Carlson
created an issue

Hi All,

I am attempting to install agalma, but I keep running into a problem that I don't know how to fix. I have installed biolite to usr/local seemingly without any issues, and I have run the brew install procedure for agalma, however when I run "algama test" I receive the following error message

 File "/usr/local/bin/catalog", line 30, in <module> from biolite import catalog
 ImportError: No module named biolite

Searching manually, I was unable to find the biolite module in any Python directory, so I am not sure where (if anywhere) it was put.
Also, I am running Mac OS 10.7.5. Any suggestions on where I can find the biolite module or fix this problem?

Comments (3)

  1. Mark Howison

    Hi Dave, the python package directory that Homebrew installs to (for all python modules, not just biolite) is not included by default in the system-wide search path. So you have to manually add it. There is a warning message that Homebrew prints when you install biolite, but admittedly it is easy to overlook:

      For non-homebrew Python, you need to amend your PYTHONPATH like so:
      export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/#{which_python}/site-packages:$PYTHONPATH
    

    On your system, this will probably be

      export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
    

    You can add this command to your ~/.profile so that it is set every time you create a terminal window.

    Best, Mark

  2. Log in to comment