jorisvandenbossche commented on issue #38338:
URL: https://github.com/apache/arrow/issues/38338#issuecomment-1770178018

   Also, the fact that the import initially doesn't work from the downloads 
folder after building the tar.gz:
   
   
   
   > At this point, it doesn't work:
   > 
   > ```shell
   > ~/Downloads/pyarrow-13.0.0 ❯ python -c "import pyarrow"                    
                                              
   > Traceback (most recent call last):
   >   File "<string>", line 1, in <module>
   >   File "/Users/dylan/Downloads/pyarrow-13.0.0/pyarrow/__init__.py", line 
65, in <module>
   >     import pyarrow.lib as _lib
   > ModuleNotFoundError: No module named 'pyarrow.lib'
   > ```
   
   That is because it is trying to import the local directory with the name 
pyarrow,  and not the one installed in site-packages. You can see that the path 
in the error message 
("/Users/dylan/Downloads/pyarrow-13.0.0/pyarrow/__init__.py"). That's an 
expected (but for sure confusing if not thinking about it) error when having a 
local file or directory with a clashing name. 
   
   But so it seems that at least your local build and install is working.


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