Skip to content

Can't import pyiceberg.catalog #500

@leonidmakarovsky

Description

@leonidmakarovsky

Apache Iceberg version

0.6.0 (latest release)

Please describe the bug 🐞

Note that the previous version 0.5.1 does NOT have this issue.

Running on Mac OS Monterey 12.6.7, Spyder IDE (Python 3.9.7 64-bit | Qt 5.9.7 | PyQt5 5.9.2 | Darwin 21.6.0 )

When importing:
import pyiceberg.catalog
the following exception occurs:

Traceback (most recent call last):

File ~/Python/data-calc-service/untitled0.py:9
import pyiceberg.catalog

File ~/opt/anaconda3/lib/python3.9/site-packages/pyiceberg/catalog/init.py:45
from pyiceberg.table import (

File ~/opt/anaconda3/lib/python3.9/site-packages/pyiceberg/table/init.py:87
from pyiceberg.table.name_mapping import (

File ~/opt/anaconda3/lib/python3.9/site-packages/pyiceberg/table/name_mapping.py:38
class MappedField(IcebergBaseModel):

File ~/opt/anaconda3/lib/python3.9/site-packages/pyiceberg/table/name_mapping.py:40 in MappedField
names: List[str] = conlist(str, min_length=1)

File ~/opt/anaconda3/lib/python3.9/site-packages/pydantic/types.py:869 in conlist
return Annotated[List[item_type], annotated_types.Len(min_length or 0, max_length)]

TypeError: Len() takes no arguments

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