Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table taxa does not exist #30

Open
treitpeter opened this issue Jan 23, 2019 · 2 comments
Open

Table taxa does not exist #30

treitpeter opened this issue Jan 23, 2019 · 2 comments
Assignees
Labels
bug on hold waiting for user input

Comments

@treitpeter
Copy link

treitpeter commented Jan 23, 2019

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?

@HadrienG
Copy link
Owner

Hi!

Thank you for the bug report. I'll investigate and come back to you.

@HadrienG HadrienG added the bug label Jan 24, 2019
@HadrienG HadrienG self-assigned this Jan 24, 2019
@HadrienG HadrienG mentioned this issue Jan 25, 2019
3 tasks
@HadrienG
Copy link
Owner

HadrienG commented Feb 3, 2019

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

/Hadrien

@HadrienG HadrienG added the on hold waiting for user input label Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug on hold waiting for user input
Projects
None yet
Development

No branches or pull requests

2 participants