Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-interoperability » Mac python bindings
Show: Today's Posts  :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
AuthorTopic
kieransmallbone


Posts: 42
Registered:
February 2008
Mac python bindings 19 Jun '12 10:45 Go to next message

Hello folks,

I'm having issues linking libSBML to python on my mac. I installed the
latest python.org 2 binary (2.7.3). Any subsequent binaries I installed
were automatically placed in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
but libSBML went elsewhere and couldn't be seen by python. Is there a
painless way of installing libSBML there, or telling python where to
find it?

Cheers for the help,
Kieran

--
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 sbml-interoperability list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/sbml-interoperability

For a web interface to the sbml-interoperability mailing list, visit
http://sbml.org/Forums/

For questions or feedback about the sbml-interoperability list,
contact sbml-team@caltech.edu

      
Mike Hucka


Posts: 967
Registered:
October 2003
Re: Mac python bindings 26 Jun '12 10:31 Go to previous message

On Tue, 19 Jun 2012 18:45:13 +0100, kieran wrote:
> I'm having issues linking libSBML to python on my mac. I installed the
> latest python.org 2 binary (2.7.3). Any subsequent binaries I installed
> were automatically placed in
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
> but libSBML went elsewhere and couldn't be seen by python. Is there a
> painless way of installing libSBML there, or telling python where to
> find it?

Hi Kieran,

Wow, this sat unanswered a really long time; very sorry. This answer is probably too late, but just in case:

In principle, setting the shell environment variable 'PYTHONPATH' should work. The syntax depends on the shell you're using. For sh-based shells,

export PYTHONPATH=/path/to/site-packages

For csh-based shells,

setenv PYTHONPATH /path/to/site-packages

where "/path/to" is the alternate path to the site-packages directory where libSBML was installed on your system. After setting the variable, start python in that same shell and it should hopefully be able to find libSBML.

Multiple paths can be provided by separating them with the ":" character.

There are also python commands that will set the search path, but I don't know the syntax off-hand.

Hope this helps,
MH
--
Mike Hucka, Ph.D. -- mhucka@caltech.edu -- http://www.cds.caltech.edu/~mhucka
Computing and Mathematical Sciences, California Institute of Technology,
Pasadena, California, USA -- Twitter: @mhucka -- Skype: michaelhucka
--
You can give me anonymous feedback via http://tinyurl.com/mhuckafeedback
____________________________________________________________
To manage your sbml-interoperability list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/sbml-interoperability

For a web interface to the sbml-interoperability mailing list, visit
http://sbml.org/Forums/

For questions or feedback about the sbml-interoperability list,
contact sbml-team@caltech.edu

      
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic:why deletion of the outside attribute of compartment in SBML L3
Next Topic:question about reading berkeley madonna
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.