https://pantsbuild.org/ logo
#development
Title
# development
w

wide-nightfall-76435

04/28/2022, 12:29 AM
Hey 👋 👋 (Sorry if this isn’t the best channel to put this, I didn’t knew where else) I’ve been struggling with an error that given my lack of python skills I’m not being able to solve. So I’m testing a module that dependes on
aws_secrets_manager_caching
I’m trying to mock this dependency in my tests, but the issue I’m having is that
aws_secrets_manager_caching
uses
pkg_resources
and when running
pants test my_test
it yields
E   ModuleNotFoundError: No module named 'pkg_resources'
. Running the test like
python -m pytest
doesn’t return this error. If someone has have a similar issue let me know! I will really appreciate it! Also maybe it doesn’t have anything to do but, working on an m1 macbook isn’t helping!
👋 2
h

hundreds-father-404

04/28/2022, 12:31 AM
(Sorry if this isn’t the best channel to put this, I didn’t knew where else)
This channel is OK! In the future, feel free to post in #general when you have questions on how to use pants (vs hacking on it directly). No big deal
w

wide-nightfall-76435

04/28/2022, 12:40 AM
Hi 🙂 thanks for pointing me to the right direction! That guide has several ideas I can explore! 🙌 thanks!!
❤️ 1
h

hundreds-father-404

04/28/2022, 12:44 AM
Awesome, we're happy to help if you are confused or those things don't work
🙌 1
w

wide-nightfall-76435

04/28/2022, 12:51 AM
h

hundreds-father-404

04/28/2022, 12:53 AM
Ah, that'll do it! Cool. Pants is a little more strict about things than some other workflows (which gives you benefits like fine-grained caching), so that is a common issue