Hopefully easy one: I have `import requests` in my...
# general
h
Hopefully easy one: I have
import requests
in my module and the
dependencies
goal is not showing in the output. I know it's in my
requirements.txt
and shows up in my
constraints.txt
as expected (specifically
requests==2.27.1
). I didn't see anything obvious in troubleshooting that was applicable. Any thoughts?
e
As a sanity check, does
./pants filedeps <path of module>
show files or error?
h
No errors. I get my module and the corresponding BUILD file.
Updating my
module_mapping
to have
"requests": ["requests"],
in it makes it show up.
Seems like that's definitely not the intent of it, though.
My other entries make sense:
"pyserial": ["serial"],
for example
e
Updating my 
module_mapping
 to have 
"requests": ["requests"],
 in it makes it show up.
Nifty. Yeah, you shouldn't have to do that,
h
that is weird!
b
(Doesn't solve your issue, but I bet Pants would be happy to take a PR to merge your local
module_mapping
into https://github.com/pantsbuild/pants/blob/0eda46f20e69980ba2baf74d841d298d3374064e/[…]s/backend/python/dependency_inference/default_module_mapping.py)