[
https://issues.apache.org/jira/browse/ARROW-17771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17607135#comment-17607135
]
Joris Van den Bossche commented on ARROW-17771:
-----------------------------------------------
Based on some of the other issues where I found some discussion about this
(https://github.com/ContinuumIO/anaconda-issues/issues/12475#issuecomment-913223071,
https://github.com/scipy/scipy/issues/11062#issuecomment-913007215,
https://github.com/conda/conda/issues/10897#issuecomment-917402957), it might
be that this is only an issue for _inplace_ development builds ({{pip install
--editable}} or {{python setup.py develop}}), which is also what we are doing
on Appveyor.
And for inplace builds, the libarrow_python.dll now no longer lives in the
conda env prefix (where Arrow C++ build artifacts end up), but inside the
arrow/python/pyarrow directory.
But what I don't understand is why this is a problem, since in either case
(having the env variable or not), the same directory as the other DLL (the
cython one that links to libarrow_python) should always be searched.
See
https://github.com/conda-forge/python-feedstock/pull/481/files#diff-f43d77242cb37d5edf48db1155b6a2ef37972c418918229ea1d00a56c2b961ee
for more details (the {{Add-CondaEcosystemModifyDllSearchPath.patch} file) and
the comment at
https://github.com/conda-forge/python-feedstock/pull/481#discussion_r716153174
for some additional context and discussion. Isuru indeed changed this for
Python 3.10 (as far as I understand, this env variable should no longer be set
by default starting with Python 3.10, but if it's the default for 3.8/3.9, I
don't really understand why we have to set it explicitly here ...).
> [Python] Python does not finds the DLLs correctly on Windows
> ------------------------------------------------------------
>
> Key: ARROW-17771
> URL: https://issues.apache.org/jira/browse/ARROW-17771
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Reporter: Alenka Frim
> Priority: Critical
> Fix For: 10.0.0
>
>
> It seems that after the Python refactoring PR
> [https://github.com/apache/arrow/pull/13311] (ARROW-16340) Python is unable
> to find {{arrow_python}} even though the library it is imported into the
> correct directory.
> Currently this issue is fixed with setting an additional environment variable:
> {code:}
> CONDA_DLL_SEARCH_MODIFICATION_ENABLE=1
> {code}
> We need to investigate further why this error is happening after the
> [refactoring|https://github.com/apache/arrow/pull/13311] and make sure Python
> is able to find the libraries on Windows without the additional env vars
> being specified.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)