You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "leonidmakarovsky (via GitHub)" <gi...@apache.org> on 2024/03/06 18:29:16 UTC
[I] Can't import pyiceberg.catalog [iceberg-python]
leonidmakarovsky opened a new issue, #500:
URL: https://github.com/apache/iceberg-python/issues/500
### Apache Iceberg version
0.6.0 (latest release)
### Please describe the bug 🐞
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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Can't import pyiceberg.catalog [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on issue #500:
URL: https://github.com/apache/iceberg-python/issues/500#issuecomment-1981880634
seems like an issue related to `pydantic` library. What version of it do you have installed?
Here's my env setup using `make install`:
```
(venv) ➜ iceberg-python git:(main) pip list | grep pydantic
pydantic 2.6.1
pydantic_core 2.16.2
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Can't import pyiceberg.catalog [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on issue #500:
URL: https://github.com/apache/iceberg-python/issues/500#issuecomment-2274801220
Addressed in #526
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Can't import pyiceberg.catalog [iceberg-python]
Posted by "leonidmakarovsky (via GitHub)" <gi...@apache.org>.
leonidmakarovsky commented on issue #500:
URL: https://github.com/apache/iceberg-python/issues/500#issuecomment-1981884781
My python version is 3.9.7. My colleague told me that pyiceberg works with 3.9.11 and later. It didn't work with 3.9.7 in his env as well. I'm trying to upgrade Python and will update the ticket.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [I] Can't import pyiceberg.catalog [iceberg-python]
Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu closed issue #500: Can't import pyiceberg.catalog
URL: https://github.com/apache/iceberg-python/issues/500
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org