| Author | Topic |
Posts: 42
Registered: February 2008
|
|
python binding
|
23 Dec '11 17:13
|
 |
|
Hello all,
I've decided to give python a go, but have been having real problems
getting it to speak to libSBML. All problems below may just be my being
a python newb, but thought I should ask.
I installed enthought (on my Mac OSX lion), a 64 bit python package
located by default at
/Library/Frameworks/EPD64.framework/Versions/Current/bin/python
After installing the stable 5.3.0 binary, I followed the instructions,
changing ~/.bashprofile to include the line
export PYTHONPATH=/usr/local/lib/python2.7/site-packages
and the permissions of all files located there. However, typing
> from libsbml import *
produced
> Fatal Python error: Interpreter not initialized (version mismatch?)
Further investigation revealed that the .py and .pyc files were missing,
with __init__.py/c in their place.
So I decided to try the experimental binary instead. This time the error was
> ImportError: No module named libsbml
and I saw that the file libsbml.pyc was missing.
Finally, I decided to try compiling the (stable) source with
./configure
--with-python=/Library/Frameworks/EPD64.framework/Versions/Current
but I ran into the same problems (error and wrongly named files) as when
using the stable binary.
Any ideas what I'm doing wrong?
Cheers,
k
--
kieran smallbone
kieran.smallbone@manchester.ac.uk
http://u003f.com/
manchester centre for integrative systems biology
manchester interdisciplinary biocentre
131 princess street
manchester m1 7dn. uk
____________________________________________________________
To manage your libsbml-development list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/libsbml-development
For a web interface to the libsbml-development mailing list, visit
http://sbml.org/Forums/
For questions or feedback about the libsbml-development list,
contact sbml-team@caltech.edu
|
|
|