Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

while build i get No module named 'lib.cw_metrics_util' #243

Closed
jegjeyam opened this issue May 18, 2023 · 4 comments
Closed

while build i get No module named 'lib.cw_metrics_util' #243

jegjeyam opened this issue May 18, 2023 · 4 comments
Labels

Comments

@jegjeyam
Copy link

____________________________________________________________________________________________________________________ ERROR collecting test/test_access_handler.py ___________________________________________________________________________________________________________________________
ImportError while importing test module '/private/tmp/aws-waf-security-automations/source/access_handler/test/test_access_handler.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/init.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/test_access_handler.py:16: in
from access_handler.access_handler import *
access_handler.py:21: in
from lib.cw_metrics_util import WAFCloudWatchMetrics
E ModuleNotFoundError: No module named 'lib.cw_metrics_util'

@jegjeyam jegjeyam added the bug label May 18, 2023
@naruhide
Copy link

Version: v4.0.0

As far as the code of deployment/build-s3-dist.sh is concerned, the following modules are not found either.

source/lib/cw_metrics_util.py
source/lib/logging_util.py
source/lib/s3_util.py
source/lib/cfn_response.py

@jegjeyam
Copy link
Author

where can i find those modules? or how to build it properly?

source/lib/cw_metrics_util.py
source/lib/logging_util.py
source/lib/s3_util.py
source/lib/cfn_response.py

@naruhide
Copy link

naruhide commented May 19, 2023

Those modules don't seem to exist in v4.0.0.
So it won't work properly.
Is v4.0.0 under development?.....

@knihit
Copy link
Member

knihit commented May 19, 2023

Release v4.0.1 fixes the issue.

@knihit knihit closed this as completed May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants