最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

loading a xml file using libSBML on Spyder - tuple index out of range problem - Stack Overflow

programmeradmin2浏览0评论

I am trying to use the python version of libSBMLon Spyder.I previously used Cobra to do so and it works. Now, I use the command "model = ls.SBMLReader.readSBML('model.xml')" and I get the error message :

File ~\AppData\Local\anaconda3\Lib\site-packages\libsbml_init_.py:1702 in readSBML args_copy[1] = conditional_abspath(args[1])

IndexError: tuple index out of range

and I do not understand why the args_copy variable, which is equal to :

args_copy = list(args)

where args is the readSBML subroutine input :

def readSBML(*args):

should have 2 arguments (0 and 1)...

Could someone explain to me what is the problem?

Thanks

I try to change the argument in:

args_copy[1] = conditional_abspath(args[1])

0 rather than 1, and it doesn't work...

发布评论

评论列表(0)

  1. 暂无评论