[
https://issues.apache.org/jira/browse/ARROW-17098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17567672#comment-17567672
]
Antoine Pitrou commented on ARROW-17098:
----------------------------------------
I can't reproduce on a Windows 11 VM (see below).
Can you try creating a new environment from scratch and install PyArrow there?
{code}
(venv-3.10) (py310) C:\Users\Antoine>pip install pyarrow
Collecting pyarrow
Downloading pyarrow-8.0.0-cp310-cp310-win_amd64.whl (17.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.9/17.9 MB 26.2 MB/s eta 0:00:00
Collecting numpy>=1.16.6
Downloading numpy-1.23.1-cp310-cp310-win_amd64.whl (14.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.6/14.6 MB 28.5 MB/s eta 0:00:00
Installing collected packages: numpy, pyarrow
Successfully installed numpy-1.23.1 pyarrow-8.0.0
(venv-3.10) (py310) C:\Users\Antoine>python
Python 3.10.5 | packaged by conda-forge | (main, Jun 14 2022, 06:57:50) [MSC
v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyarrow as pa
>>> pa.show_versions()
pyarrow version info
--------------------
Package kind : python-wheel-windows
Arrow C++ library version : 8.0.0
Arrow C++ compiler : MSVC 19.16.27045.0
Arrow C++ compiler flags : /DWIN32 /D_WINDOWS /GR /EHsc
/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING
Arrow C++ git revision : c3d031250a7fdcfee5e576833bf6f39097602c30
Arrow C++ git description :
Arrow C++ build type : release
{code}
> TypeError: __init__() got an unexpected keyword argument 'invalid_row_handler'
> ------------------------------------------------------------------------------
>
> Key: ARROW-17098
> URL: https://issues.apache.org/jira/browse/ARROW-17098
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 8.0.0
> Environment: Edition Windows 10 Pro
> Version 21H1
> Installed on 2/22/2021
> OS build 19043.1826
> Experience Windows Feature Experience Pack 120.2212.4180.0
> Pip Freeze:
> (.venv) C:\dev\UST>pip freeze
> numpy==1.23.1
> pyarrow==8.0.0
> Visual Studio Code:
> Version: 1.69.1 (user setup)
> Commit: b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a
> Date: 2022-07-12T08:21:24.514Z
> Electron: 18.3.5
> Chromium: 100.0.4896.160
> Node.js: 16.13.2
> V8: 10.0.139.17-electron.0
> OS: Windows_NT x64 10.0.19043
> Reporter: Jack Howard
> Priority: Major
> Attachments: invalid_row_handler.py
>
>
> Attempting to use csv.ParseOptions invalid_row_handler fails on Python 3.10.1
> and Python 3.10.5. In trouble shooting my code, I find the documentation
> code fails with the same message my code is experiencing.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)