Skip to content

Not importable with Python 3.9 #247

@berquist

Description

@berquist

Using the latest release,

$ uvx --with pylode --python 3.9 python -c 'import pylode'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/eric/.cache/uv/archive-v0/DZGmJNLEMwErf_BnDW0zL/lib/python3.9/site-packages/pylode/__init__.py", line 4, in <module>
    from .profiles import OntPub, VocPub, Supermodel
  File "/home/eric/.cache/uv/archive-v0/DZGmJNLEMwErf_BnDW0zL/lib/python3.9/site-packages/pylode/profiles/__init__.py", line 3, in <module>
    from .supermodel import Supermodel
  File "/home/eric/.cache/uv/archive-v0/DZGmJNLEMwErf_BnDW0zL/lib/python3.9/site-packages/pylode/profiles/supermodel/__init__.py", line 1, in <module>
    from .html import Supermodel
  File "/home/eric/.cache/uv/archive-v0/DZGmJNLEMwErf_BnDW0zL/lib/python3.9/site-packages/pylode/profiles/supermodel/html.py", line 34, in <module>
    from pylode.profiles.supermodel.component.properties_table import (
  File "/home/eric/.cache/uv/archive-v0/DZGmJNLEMwErf_BnDW0zL/lib/python3.9/site-packages/pylode/profiles/supermodel/component/__init__.py", line 1, in <module>
    from .preamble import metadata_row
  File "/home/eric/.cache/uv/archive-v0/DZGmJNLEMwErf_BnDW0zL/lib/python3.9/site-packages/pylode/profiles/supermodel/component/preamble.py", line 5, in <module>
    def metadata_row(key: str, value: str | list[str], value_is_link: bool = False) -> td:
TypeError: unsupported operand type(s) for |: 'type' and 'types.GenericAlias'

Replacing Python 3.9 with 3.10 works.

Metadata

Metadata

Assignees

No one assigned

    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