Re: can't import libsbml 3.0 under python 2.5 for windows
25 Sep '07 07:01
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.
Traceback (most recent call last):
File "C:\SBMLmerge\semanticsbml_gui.py", line 615, in <module>
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__
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
Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)