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
Padma.P


Posts: 3
Location:
India
Registered:
September 2007
Re: can't import libsbml 3.0 under python 2.5 for windows 25 Sep '07 07:01 Go to previous messageGo to previous message

Hi

I got problems in installing libsbml 3.0.0 (for semanticSBML)in windows using python 2.5

I have followed the suggestions in these posts...given by Brett Olivier ...

"""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.

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? """""

previously i used to get """error: no module named libsbml"""

I have copied the libsbml.py and _libsbml.dll to python\Lib and tried to run semanticSBML but still i am getting errors like this.
////////////
C:\SBMLmerge>semanticsbml_gui.py
Traceback (most recent call last):
File "C:\SBMLmerge\semanticsbml_gui.py", line 615, in <module>
main(sys.argv)
File "C:\SBMLmerge\semanticsbml_gui.py", line 585, in main
gui = SemanticSbmlGui_app(options,args)
File "C:\SBMLmerge\semanticsbml_gui.py", line 49, in __init__
self.i2sview = Id2Sbml_view(self.ui.mainTabWidget,self)
File "C:\SBMLmerge\semanticSBML\gui_views.py", line 346, in __init__
self._document=SemanticSbmlGui_doc()
File "C:\SBMLmerge\semanticSBML\docmanager.py", line 232, in __init__
self.model = Model(model)
File "C:\SBMLmerge\semanticSBML\Model.py", line 55, in __new__
if not isinstance(model.document, libsbml.SBMLDocumentPtr) and not isinstance(model.document, libsbml.SBMLDocument):#marvin we hacked again, let's better check if this is really correct
AttributeError: 'module' object has no attribute SBMLDocumentPtr'
/////////////

any idea !!

thanks in advance

      

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.