You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Table taxa does not exist
An exception has occurred, use %tb to see the full traceback.
SystemExit: 1
D:\Anaconda\lib\site-packages\IPython\core\interactiveshell.py:2971: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)
calling %tb gives the error:
SystemExit Traceback (most recent call last)
in ()
----> 1 taxid = TaxID(dbtype='sqlite', dbname='mydb.sqlite')
2 name = taxid.sci_name(33208)
3 print(name)
Do you have the file mydb.sqlite on your system, and did it build successfully? I noticed that you were having some problems building the database at #4
When following the instructions under: https://pypi.org/project/taxadb/, following installation:
taxid = TaxID(dbtype = 'sqlite', dbname = 'mydb.sqlite')
name = taxid.sci_name(33208)
print(name)
I get the error message:
Table taxa does not exist
An exception has occurred, use %tb to see the full traceback.
SystemExit: 1
D:\Anaconda\lib\site-packages\IPython\core\interactiveshell.py:2971: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.
warn("To exit: use 'exit', 'quit', or Ctrl-D.", stacklevel=1)
calling %tb gives the error:
SystemExit Traceback (most recent call last)
in ()
----> 1 taxid = TaxID(dbtype='sqlite', dbname='mydb.sqlite')
2 name = taxid.sci_name(33208)
3 print(name)
D:\Anaconda\lib\site-packages\taxadb\taxid.py in init(self, **kwargs)
20 def init(self, **kwargs):
21 super().init(**kwargs)
---> 22 self.check_table_exists(Taxa)
23
24 def sci_name(self, taxid):
D:\Anaconda\lib\site-packages\taxadb\taxadb.py in check_table_exists(cls, table)
67 logger.error(
68 "Table %s does not exist" % (str(table.get_table_name())))
---> 69 sys.exit(1)
70 return True
71
SystemExit: 1
Any ideas as to what this might be?
The text was updated successfully, but these errors were encountered: