You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "luifrancgom (via GitHub)" <gi...@apache.org> on 2024/03/02 16:36:30 UTC
[I] ImportError: DLL load failed while importing lib [arrow]
luifrancgom opened a new issue, #40320:
URL: https://github.com/apache/arrow/issues/40320
### Describe the bug, including details regarding any error messages, version, and platform.
# Describe the bug
I am using the package `sktime` that uses `pyarrow` and I am getting the following error:
```bash
ImportError: DLL load failed while importing lib: The specified procedure could not be found.
```
## Traceback
```python
import pyarrow
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Usuario\anaconda3\Lib\site-packages\pyarrow\__init__.py", line 65, in <module>
import pyarrow.lib as _lib
ImportError: DLL load failed while importing lib: The specified procedure could not be found.
```
</details>
# Version
`pyarrow 13.0.0` installed using `pypi` channel
# Platform
I am using the following OS:
```
Edition Windows 11 Pro
Version 22H2
Installed on 2023-06-26
OS build 22621.3155
Experience Windows Feature Experience Pack 1000.22684.1000.0
```
With `python 3.11.8` and `conda 24.1.2`
### 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: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Python] ImportError: DLL load failed while importing lib [arrow]
Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #40320:
URL: https://github.com/apache/arrow/issues/40320#issuecomment-1979616441
Hi @luifrancgom, I'm not very sure but my best guess at the moment is that your shell environment isn't set up correctly for your base environment and that creating a new conda environment and activating sets things up correctly. If that's true, updating your PATH environment variable may fix things. Can you try out what's described in https://superuser.com/questions/1406191/getting-the-error-dll-load-failed-the-specified-module-could-not-be-found-wh?
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Python] ImportError: DLL load failed while importing lib [arrow]
Posted by "luifrancgom (via GitHub)" <gi...@apache.org>.
luifrancgom commented on issue #40320:
URL: https://github.com/apache/arrow/issues/40320#issuecomment-1975566199
Hi @amoeba. I want to ask you something if you know something about it. The error I am having is happening in the `base` environment. I remove pyarrow and installed again using conda:
```bash
conda remove pyarrow
conda install pyarrow
```
But I still have the same errow in relation to `ImportError: DLL load failed while importing lib: The specified procedure could not be found.`
Do you know what file of files do I need to have in the DLLs folder in the case of anaconda so `pyarrow` can be imported?
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Python] ImportError: DLL load failed while importing lib [arrow]
Posted by "luifrancgom (via GitHub)" <gi...@apache.org>.
luifrancgom commented on issue #40320:
URL: https://github.com/apache/arrow/issues/40320#issuecomment-1975534195
You are right. I try the following configuration in yaml file called `environment.yml`:
```yml
# conda env create -f environment.yml
# conda env update --file environment.yml --prune
# conda env list
# conda activate test_pyarrow
# conda env remove --name test_pyarrow
name: test_pyarrow
channels:
- anaconda
- conda-forge
- defaults
dependencies:
- python=3.11.8
- pip
- pip:
- pyarrow==13.0.0
- sktime==0.27.0
```
And when running this script
```py
import sktime
import pyarrow
```
It works. I am going to close the issue and find the problem because it is not related to `pyarrow` or `sktime`
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Python] ImportError: DLL load failed while importing lib [arrow]
Posted by "luifrancgom (via GitHub)" <gi...@apache.org>.
luifrancgom closed issue #40320: [Python] ImportError: DLL load failed while importing lib
URL: https://github.com/apache/arrow/issues/40320
--
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: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Python] ImportError: DLL load failed while importing lib [arrow]
Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #40320:
URL: https://github.com/apache/arrow/issues/40320#issuecomment-1975459982
Hi @luifrancgom, thanks for the report. Can you provide a set of steps that reproduce the error, preferably using a fresh virtualenv or conda environment? I tried just now and am not having any trouble importing pyarrow 13.0.0.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Python] ImportError: DLL load failed while importing lib [arrow]
Posted by "luifrancgom (via GitHub)" <gi...@apache.org>.
luifrancgom commented on issue #40320:
URL: https://github.com/apache/arrow/issues/40320#issuecomment-1979952332
Thank you for your help @amoeba. I follow the solution described in the link and it works. I really appreciate your help. Again thank you!!!
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org