Skip to content

get a ValueError when trying to start the project #2

@nnako

Description

@nnako

Hi,

I just wanted to try your project. This is what I did:

git clone https://github.com/cdelker/sqint.git APP__textual__sqint
cd APP__textual__sqint
python -m venv _venv
_venv\Scripts\activate
pip install --editable .

-> no errors. no warnings.

When starting as:

sqint

This is the result on the screen:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "...\APP__textual__sqint\_venv\Scripts\sqint.exe\__main__.py", line 4, in <module>
  File "...\APP__textual__sqint\sqint\sqint.py", line 345, in <module>
    class Sqint(App):
  File "...\APP__textual__sqint\_venv\Lib\site-packages\textual\message_pump.py", line 111, in __new__
    class_obj = super().__new__(cls, name, bases, class_dict, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "...\APP__textual__sqint\_venv\Lib\site-packages\textual\app.py", line 878, in __init_subclass__
    raise ValueError(
ValueError: SCREENS should contain a Screen type or callable, not an instance (got instance of OpenDb for 'opendb')

Same error when providing a db via CLI argument like:

sqint database.db

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions