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
Falko Krause


Posts: 30
Registered:
April 2007
Re: can't import libsbml 3.0 under python 2.5 for windows 26 Sep '07 03:37 Go to previous messageGo to previous message

Hi Patma,
the problem is that semanticSBML currently works only with libsbml2.x.x
libsbml3.x is not backwards compatible, and this is why you experience
this error.
I am currently working on a new version that works with libsbml3 however
it is not ready yet.
Depending on which functions you want to use I could give you a working
copy of the current development version.
Please contact me directly if you want to use the development version so
we can discuss if it could work for you.

Falko

On Tue, 25 Sep 2007 18:27:58 +0200, Padma.P <pammy_choudary@yahoo.co.in>
wrote:

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

      

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.