Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'pkg_resources' #545

Closed
LucaMaurelliC opened this issue May 8, 2023 · 2 comments
Closed

No module named 'pkg_resources' #545

LucaMaurelliC opened this issue May 8, 2023 · 2 comments

Comments

@LucaMaurelliC
Copy link

LucaMaurelliC commented May 8, 2023

Describe the bug

No module named 'pkg_resources' when importing prmarima, e.g.
from pmdarima import arima, auto_arima or import pmdarima

image

To Reproduce

import pmdarima

Versions

python 3.9.16
pip 22.0.4
setuptools 67.7.2
pmdarima 2.0.3

Expected Behavior

Import should work

Actual Behavior

Import does not work

Additional Context

Running inside a python virtual enviroment in a docker container

@aaronreidsmith
Copy link
Member

This generally points to a broken setuptools installation. Could you try the things noted here to try fix it and try again? With that being said pkg_resources appears to be deprecated as of March 2023, so I have #546 open to remove our dependency on it

@LucaMaurelliC
Copy link
Author

I fixed the issue, it was a problem by my side. Somehow the setuptools installation was broken due to a misconfiguration of pip install: I was using the pip install --prefix ... instead of pip --python path/to/my/venv/python/interpreter/python install ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants