pypi setuptools based recipe fails ModuleNotFoundError: No module named 'pkg_resources' #python

David Babich

I'm attempting to make a simple bitbake recipe for python3-astropy that inherits from pypi and setuptools3.  The very simple recipe is attached.
When I build I'm getting this error:

|     import pkg_resources

| ModuleNotFoundError: No module named 'pkg_resources'

| WARNING: exit code 1 from a shell command.

I don't understand this error because I'm using setuptools3 which I believe contains pkg_resources.  In desperation I added a "DEPENDS = "python3-setuptools" but that did not help either.  I'd appreciate any advice on this.

Join to automatically receive all group messages.