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

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'聽#72

Description

@2600box

Having trouble to get this working on Windows. Any ideas?

Python 3.9.4

(venv) PS C:\Users\tiki\Documents\Transcription\frogbase> streamlit run ui/01_馃彔_Home.py

  You can now view your Streamlit app in your browser.

  Local URL: http://localhost:8501
  Network URL: http://10.0.0.156:8501

2023-09-19 10:45:53.943 Uncaught app exception
Traceback (most recent call last):
  File "c:\users\tiki\documents\transcription\frogbase\venv\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "C:\Users\tiki\Documents\Transcription\frogbase\ui\01_馃彔_Home.py", line 13, in <module>
    init_session(st.session_state)
  File "ui\config.py", line 60, in init_session
    from frogbase import FrogBase
  File "C:\Users\tiki\Documents\Transcription\frogbase\frogbase\__init__.py", line 1, in <module>
    from .core import FrogBase
  File "C:\Users\tiki\Documents\Transcription\frogbase\frogbase\core.py", line 13, in <module>
    from frogbase.captions import Captions
  File "C:\Users\tiki\Documents\Transcription\frogbase\frogbase\captions.py", line 17, in <module>
    class Captions(BaseModel):
  File "C:\Users\tiki\Documents\Transcription\frogbase\frogbase\captions.py", line 42, in Captions
    settings: dict | None = Field(default=None, description="The settings under which these captions were generated.")
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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