Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-interoperability » can't import libsbml 3.0 under python 2.5 for windows
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Brett Olivier


Posts: 8
Location:
Stellenbosch, South Afric...
Registered:
February 2005
Re: can't import libsbml 3.0 under python 2.5 for windows 13 Sep '07 00:49 Go to previous messageGo to previous message

On Tuesday 11 September 2007 20:07, Sarah Keating wrote:
> I'll look into this but any input from anyone with more python
> experience (Brett ?) would be appreciated.
Hi Sarah, many thanks for the 2.5 bindings.

The following seems to work with both Python2.5 expat/xerces versions
of libsbml-3.0. In both cases I install the library and manually copy
libsbml.py and _libsbml.dll to site-packages.

> > python 2.5 works fine but trying to import libsmbl after
> > installing libsbml 3.0 I get the error: ImportError: No module
> > named _libsbml
Ok I get this as well but ...

While I'm not sure why, it seems as if Python2.5 doesn't like the .dll
extension, renaming _libsbml.dll to _libsbml.pyd fixes the problem.
I'd be interested to see if this works with your configuration?

> > I set the PYTHONPATH to the respective bindings directory in the
> > expat version of libsbml. The python files are all acessible for
> > all users. I even set the LD_LIBRARY_PATH even though for PYTHON
> > 2.4 it was not nessesary.
> >
> > best,
> >
> > joerg
> > ____________________________________________________________
> > To manage your libsbml-discuss list subscription, visit
> > https://utils.its.caltech.edu/mailman/listinfo/libsbml-discuss
> >
> > For a web interface to the libsbml-discuss mailing list, visit
> > http://sbml.org/forums/
> >
> > For questions or feedback about the libsbml-discuss list,
> > contact sbml-team@caltech.edu.
>
> ____________________________________________________________
> To manage your libsbml-discuss list subscription, visit
> https://utils.its.caltech.edu/mailman/listinfo/libsbml-discuss
>
> For a web interface to the libsbml-discuss mailing list, visit
> http://sbml.org/forums/
>
> For questions or feedback about the libsbml-discuss list,
> contact sbml-team@caltech.edu.

--
Brett G. Olivier PhD
Stellenbosch University, SA National Bioinformatics Network
____________________________________________________________
To manage your libsbml-discuss list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/libsbml-discuss

For a web interface to the libsbml-discuss mailing list, visit
http://sbml.org/forums/

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

      

SubjectPosterDate
Read Message   can't import libsbml 3.0 under python 2.5 for wind... Joerg Schaber10 Sep '07 09:02
Read Message   Re: can't import libsbml 3.0 under python 2.5 for ... Sarah Keating11 Sep '07 11:07
Read Message   Re: can't import libsbml 3.0 under python 2.5 for ...  Brett Olivier13 Sep '07 00:49
Read Message   Re: can't import libsbml 3.0 under python 2.5 for ... Padma.P25 Sep '07 07:01
Read Message   Re: can't import libsbml 3.0 under python 2.5 for ... Falko Krause26 Sep '07 03:37
Read Message   Re: can't import libsbml 3.0 under python 2.5 for ... Sarah Keating12 Sep '07 14:23
Previous Topic:libSBML-3.0.0-win-xerces annotation issues.
Next Topic:backwards compatibility of libsml 3
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.