nickjoanis commented on issue #2590:
URL: 
https://github.com/apache/iceberg-python/issues/2590#issuecomment-3381875204

   > Is there any workaround to make pyiceberg work? I tried reinstalling 
pydantic to 2.11.0 and pyiceberg to 0.9.1 and still got the same error
   > 
   > pydantic_core._pydantic_core.ValidationInfo' object has no attribute 
'current_schema_id
   
   Hi @FranMorilloAWS,
   
   After some investigation, it looks like both pyiceberg 0.9.x and pyiceberg 
0.10.x don’t currently exclude pydantic 2.12.0 in their pyproject.toml file:
   [Reference line in 
pyproject.toml](https://github.com/apache/iceberg-python/blob/7e1cfd18e3f8089eeae165a4092bf94305a812dc/pyproject.toml#L58)
   
   However, the main branch already includes an explicit exclusion for this 
version, which seems to address the problem.
   
   For now, the only stable workaround I’ve found is to:
   - Downgrade pyiceberg to 0.9.1
   - Pin pydantic to <2.10.0
   
   I haven’t yet had the chance to test with pydantic 2.10.0 or 2.11.0, so they 
might still work — but I can only confirm that <2.10.0 has fixed the issue on 
my end.
   
   This combination allows my data connectors to run without triggering the 
validation error.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to