Facing some issues with 3rd party dependency infer...
# general
f
Facing some issues with 3rd party dependency inference: I have some code importing `cachetools`:
from cachetools import TTLCache
And have also declared the dependency in my
requirements.txt
and linked it in the root BUILD file using
python_requirements
function. But, I am still getting:
ModuleNotFoundError: No module named 'cachetools'
Facing the same issue in my tests with
requests_mock
e
What requirement do you have listed in
requirements.txt
that you expect to provide the
cachetools
module?
And, generally, more details are always better for async help.
f
Copy code
cachetools~=4.2.4
request_mock
mongomock
...
requests~=2.25.0
These are the requirements I see the same issue with mongomock, cachetools and requests_mock
e
I could find no such issues: https://github.com/jsirois/IshanJoshi-example Note I needed to
s/request_mock/requests_mock/
. @fresh-dentist-96982 if you need more help you'll probably need to supply a similar example repository that can be used to reproduce the issue you encounter.