snowflake-connector-python: SNOW-750040: Failed to import ArrowResult. No Apache Arrow result set format can be used.
Please answer these questions before submitting your issue. Thanks!
- What version of Python are you using?
Python 3.11.2 (v3.11.2:878ead1ac1, Feb 7 2023, 10:02:41) [Clang 13.0.0 (clang-1300.0.29.30)]
- What operating system and processor architecture are you using?
macOS-13.2.1-arm64-arm-64bit
- What are the component versions in the environment (
pip freeze)?
aiohttp==3.8.4
aiosignal==1.3.1
alembic==1.9.4
anyio==3.6.2
asn1crypto==1.5.1
asttokens==2.2.1
async-timeout==4.0.2
attrs==22.2.0
bcrypt==4.0.1
black==22.12.0
bugsnag==4.4.0
cachetools==5.3.0
certifi==2022.12.7
cffi==1.15.1
cfgv==3.3.1
charset-normalizer==2.1.1
click==8.1.3
commonmark==0.9.1
cryptography==39.0.1
devtools==0.9.0
distlib==0.3.6
ecdsa==0.18.0
executing==0.10.0
fastapi==0.89.1
filelock==3.9.0
frozenlist==1.3.3
google-api-core==2.11.0
google-auth==2.16.1
google-cloud-core==2.3.2
google-cloud-secret-manager==2.15.1
google-cloud-storage==2.7.0
google-crc32c==1.5.0
google-resumable-media==2.4.1
googleapis-common-protos==1.58.0
grpc-google-iam-v1==0.12.6
grpcio==1.51.3
grpcio-status==1.51.3
h11==0.14.0
identify==2.5.18
idna==3.4
Mako==1.2.4
MarkupSafe==2.1.2
more-itertools==9.0.0
multidict==6.0.4
mypy-extensions==1.0.0
nodeenv==1.7.0
oscrypto==1.3.0
packaging==23.0
passlib==1.7.4
pathspec==0.11.0
platformdirs==3.0.0
pluggy==0.13.1
pre-commit==2.21.0
proto-plus==1.22.2
protobuf==4.22.0
psycopg2==2.9.5
py==1.11.0
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.21
pycryptodomex==3.17
pydantic==1.10.5
Pygments==2.14.0
PyJWT==2.6.0
pyOpenSSL==23.0.0
pytest==5.4.3
python-dotenv==0.20.0
python-jose==3.3.0
python-multipart==0.0.5
pytz==2022.7.1
PyYAML==6.0
requests==2.28.2
rich==12.6.0
rsa==4.9
six==1.16.0
slack-sdk==3.20.0
sniffio==1.3.0
snowflake-connector-python==3.0.0
SQLAlchemy==1.4.46
starlette==0.22.0
typing_extensions==4.5.0
urllib3==1.26.14
uvicorn==0.20.0
virtualenv==20.19.0
wcwidth==0.2.6
WebOb==1.8.7
yarl==1.8.2
- What did you do?
Python 3.11.2 (v3.11.2:878ead1ac1, Feb 7 2023, 10:02:41) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import snowflake.connector
Failed to import ArrowResult. No Apache Arrow result set format can be used. ImportError: dlopen(/Users/niallwoodward/Library/Caches/pypoetry/virtualenvs/backend-Sy87x2_N-py3.11/lib/python3.11/site-packages/snowflake/connector/arrow_iterator.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace '__ZN5arrow12ArrayBuilder12AppendScalarERKNS_6ScalarEx'
- What did you expect to see?
No error
- Can you set logging to DEBUG and collect the logs?
>>> import snowflake.connector
2023-02-26 09:53:22,157 - MainThread ssl_wrap_socket.py:43 - inject_into_urllib3() - DEBUG - Injecting ssl_wrap_socket_with_ocsp
2023-02-26 09:53:22,157 - MainThread _auth.py:91 - <module>() - DEBUG - cache directory: /Users/niallwoodward/Library/Caches/Snowflake
2023-02-26 09:53:22,209 - MainThread cursor.py:81 - <module>() - DEBUG - Failed to import pyarrow. Cannot use pandas fetch API
2023-02-26 09:53:22,210 - MainThread cursor.py:89 - <module>() - WARNING - Failed to import ArrowResult. No Apache Arrow result set format can be used. ImportError: dlopen(/Users/niallwoodward/Library/Caches/pypoetry/virtualenvs/backend-Sy87x2_N-py3.11/lib/python3.11/site-packages/snowflake/connector/arrow_iterator.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace '__ZN5arrow12ArrayBuilder12AppendScalarERKNS_6ScalarEx'
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18
@NiallRees @mmaaartin @dmuraco we have updated
.whlfiles on pypi. Can you check if things are working again for youlooks like a similar issue was hit on x86 arch when packages are installed via conda and pypi. Although this is not our case, I think ABI flags is a lead.
https://github.com/snowflakedb/snowflake-connector-python/issues/1426#issuecomment-1421051347
Installing from GitHub and therefore not using the snowflake-connector-python wheel removes this message for me too, but obviously not a solution: