Skip to contentSkip to conversation

Flask Dependency - "No module name pkg_resources"

meta-python Garren, Chris D. 1 participant 1 message Nov 2, 2018

lore
Share & tools
lore
#0 lore raw

I'm working on creating an example application using python flask. However, I'm running into an error when I actually try to run flask:

root@imx6ul-var-dart:~# flask
Traceback (most recent call last):
  File "/usr/bin/flask", line 6, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

I was able to fix it by adding ${PYTHON_PN}-distribute to the RDEPENDS_${PN} in python-flask.inc, but I'm wondering if I'm missing something that required me to do so.

Any help is appreciated.

Thanks,

Chris Garren