domoritz opened a new issue, #33823:
URL: https://github.com/apache/arrow/issues/33823

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   I am trying to loan an arrow file
   
   ```python
   with pa.memory_map('flights-200k.arrow', 'r') as source:
       my_arrow = pa.ipc.open_file(source).read_all()
   ```
   
   but get this error 
   
   ```
     File 
"/opt/homebrew/Caskroom/miniforge/base/envs/ramsch/lib/python3.10/site-packages/pyarrow/ipc.py",
 line 228, in open_file
       return RecordBatchFileReader(
     File 
"/opt/homebrew/Caskroom/miniforge/base/envs/ramsch/lib/python3.10/site-packages/pyarrow/ipc.py",
 line 110, in __init__
       self._open(source, footer_offset=footer_offset,
     File "pyarrow/ipc.pxi", line 862, in 
pyarrow.lib._RecordBatchFileReader._open
     File "pyarrow/error.pxi", line 144, in 
pyarrow.lib.pyarrow_internal_check_status
     File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
   pyarrow.lib.ArrowInvalid: Not an Arrow file
   ```
   
   The arrow file is 
https://github.com/uwdata/flights-arrow/blob/master/flights-200k.arrow and 
loads fine in the arrow js library.
   
   ### Component(s)
   
   Python


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