Search code examples
flaskpipyoctopypibitbake

Importing Python3 flask gives werkzeug.test not found in yocto distribution?


I have installed the flask using meta-python layer in my yocto OS. But when i try to import the flask it gives the error of werkzeug.test.

>>> import flask
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/site-packages/flask/__init__.py", line 19, in <module>
from . import json
File "/user/lib/python3.8/site-packages/flask/json/__init__.py", line 17, in <module>
from werkzeug.http import http_date
File "/usr/lib/python3.8/site-packages/werkzeug/__init__.py", line 16, in <module>
from . test import Client
ModuleNotFoundError: No module named 'werkzeug.test'

how can i fix it? is there something related to version issue?


Solution

  • With the help of @phd. I figured out that recipe of werkzeug version 1.0.1 was not included in the meta-python layer. Copying the recipe 1.0.1 from the repo and bitbake the recipe again solved the problem