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

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

Can you show the error you get? (and with which code snippet you get it) 
I would assume that pytz is only an optional dependency (i.e. only used when 
installed), which doesn't require it being added to setup.py install_requires. 
And if we accidentally depend on it unconditionally, that sounds as a bug.

> 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