jorisvandenbossche commented on PR #49912:
URL: https://github.com/apache/arrow/pull/49912#issuecomment-4387539464

   @raulcd it does not yet happen on import, but on first usage that checks 
input for being a pyarrow array, such as `pd.DataFrame({"col": [1, 2, 3]})`
   
   Essentially, I think this boils down to python imports in cython working a 
bit differently. In pure python, `import pyarrow` raises a ModuleNotFoundError 
if you set the module to None in `sys.modules`. But in cython, it actually 
"finds" the module (it doesn't raise an error) but sets variable for the 
imported module to None (i.e. the value that is set in `sys.modules`).
   
   We could specifically check for that case on the pandas side, although that 
feels a bit of a hack. We could also move that try/except to python code, so it 
works more as expected.


-- 
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]

Reply via email to