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

Python 3 bug in creating snapshot #105

@dr-rodriguez

Description

@dr-rodriguez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions