[ 
https://issues.apache.org/jira/browse/ARROW-15580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17488102#comment-17488102
 ] 

Joris Van den Bossche commented on ARROW-15580:
-----------------------------------------------

Actually, looking at the code, we indeed seem to import pytz unconditionally 
and assume it to be present, if you have timestamp data with a timezone, see eg 
https://github.com/apache/arrow/blob/4144c1739ec2e58d5f076fa63a0b61653324dc02/cpp/src/arrow/python/datetime.cc#L394

> package does not include pytz dependency
> ----------------------------------------
>
>                 Key: ARROW-15580
>                 URL: https://issues.apache.org/jira/browse/ARROW-15580
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Packaging, Python
>    Affects Versions: 7.0.0
>            Reporter: Mark Wood
>            Priority: Minor
>
> When install pyarrow via poetry and executing same, a ModuleNotFoundError 
> error can result.
> Pyarrow has a dependency on pytz, but this dependency is not declared (the 
> only dependency I see declared is numpy, see 
> [https://github.com/apache/arrow/blob/47d55752172af99fce629f8fe6177df6b41af1d3/python/setup.py#L576)]
> It would be helpful if pyarrow could declare its dependencies in such a way 
> that tools such as poetry could automatically ensure they were present.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to