Skip to content

Type Error when trying to recreate the database #576

@SherelynA

Description

@SherelynA

I am trying to do the second step of the simple setup however when I run from simple.schema import *, I get the following error message:

from simple.schema import * Traceback (most recent call last): File "/Users/sherelynalejandro/opt/anaconda3/envs/simple-db/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 3579, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-4-4330bbdb30e3>", line 1, in <module> from simple.schema import * File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/sherelynalejandro/PycharmProjects/SIMPLE-db/simple/schema.py", line 468, in <module> ParallaxView = view( ^^^^^ File "/Users/sherelynalejandro/opt/anaconda3/envs/simple-db/lib/python3.11/site-packages/astrodbkit/views.py", line 50, in view t._columns._populate_separate_keys(col._make_proxy(t) for col in selectable.selected_columns) File "/Users/sherelynalejandro/opt/anaconda3/envs/simple-db/lib/python3.11/site-packages/sqlalchemy/sql/base.py", line 1973, in _populate_separate_keys cols = list(iter_) ^^^^^^^^^^^ File "/Users/sherelynalejandro/opt/anaconda3/envs/simple-db/lib/python3.11/site-packages/astrodbkit/views.py", line 50, in <genexpr> t._columns._populate_separate_keys(col._make_proxy(t) for col in selectable.selected_columns) ^^^^^^^^^^^^^^^^^^ TypeError: Label._make_proxy() missing 2 required keyword-only arguments: 'primary_key' and 'foreign_keys'

Any thoughts on what could be causing this?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions