You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Joris Van den Bossche (Jira)" <ji...@apache.org> on 2022/03/08 13:15:00 UTC

[jira] [Commented] (ARROW-15867) [Python] Ignored exception printed when pandas is not installed

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

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

Ah, no, sorry, that's because of me having a "pandas" directory where I was running this terminal .. (I have the feeling I did in the past as well, thinking it was a bug, to then figure out it was my own fault .. :))

> [Python] Ignored exception printed when pandas is not installed
> ---------------------------------------------------------------
>
>                 Key: ARROW-15867
>                 URL: https://issues.apache.org/jira/browse/ARROW-15867
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Joris Van den Bossche
>            Assignee: Joris Van den Bossche
>            Priority: Major
>             Fix For: 8.0.0
>
>
> When you don't have pandas installed, you can get an "error" like
> {code}
> Exception ignored in: 'pyarrow.lib._PandasAPIShim._have_pandas_internal'
> Traceback (most recent call last):
>   File "pyarrow/pandas-shim.pxi", line 110, in pyarrow.lib._PandasAPIShim._check_import
>   File "pyarrow/pandas-shim.pxi", line 59, in pyarrow.lib._PandasAPIShim._import_pandas
> AttributeError: module 'pandas' has no attribute '__version__'
> {code}
> This is not an actual error that interrupts your Python session (it's an ignored exception), but we should of course still ensure to not print it.



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