ssato / python-anyconfig

Python library provides common APIs to load and dump configuration files in various formats
MIT License
277 stars 31 forks source link

No module named pkg_resources #95

Closed shivanetha closed 5 years ago

shivanetha commented 5 years ago

i'm trying to use anyconfig library in AWS Lambda, i'm getting the following error

Unable to import module 'service': No module named pkg_resources

any idea how to fix this

ssato commented 5 years ago

How did you install anyconfig?

AFAIK, pkg_resources is in setuptools and it should be installed along with anyconfig if pip was used. If not, please try to install required modules listed in https://github.com/ssato/python-anyconfig/blob/master/pkg/requirements_full.txt.

ssato commented 5 years ago

Excuse me that I forgot to specify the dependency to setuptools in setup.cfg and that is resolved with the commit 740d90b.

Until the fixed version is released, please install setuptools explicitly also along with anyconfig. Sorry for the inconvenience.

ssato commented 5 years ago

I've just released the latest 0.9.8 version contains the fixes for this issue and let it closed. Please let me know if you have any further related issues on this.

Thanks again for your report!