Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Python 3 bug in creating snapshot #105

Open
dr-rodriguez opened this issue Jul 27, 2018 · 0 comments
Open

Python 3 bug in creating snapshot #105

dr-rodriguez opened this issue Jul 27, 2018 · 0 comments
Labels

Comments

@dr-rodriguez
Copy link
Member

When creating a snapshot of the database under Python 3.6, I encounter the following bug:

db.snapshot('bdnyc_database_v2.db', version=2.0)

Traceback (most recent call last):
  File "/Users/drodriguez/anaconda3/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 2862, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-27-2658bf42af4e>", line 1, in <module>
    db.snapshot('bdnyc_database_v2.db', version=2.0)
  File "/Users/drodriguez/PycharmProjects/astrodbkit/astrodbkit/astrodb.py", line 1887, in snapshot
    t, = self.query("select sql from sqlite_master where type = 'table'", unpack=True)
TypeError: iteration over a 0-d array
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant