Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

[ERROR] TypeError: 'module' object is not callable #41

Open
yucomds opened this issue May 10, 2021 · 0 comments
Open

[ERROR] TypeError: 'module' object is not callable #41

yucomds opened this issue May 10, 2021 · 0 comments

Comments

@yucomds
Copy link

yucomds commented May 10, 2021

Hi, we have this error after deploying a new version of lambdaedge. The only differences with original version are the following:

...
line 30 DEBUG = True 
...
line 213 return "!!! "+caption_string
...

In CloudWatch events log we have this issue:

[ERROR] TypeError: 'module' object is not callable
Traceback (most recent call last):
  File "/var/lang/lib/python3.7/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/var/lang/lib/python3.7/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/var/task/lambda_function.py", line 130, in <module>
    def put_count_metrics(metric_name, metric_value, pipe_id, lang_id, metrics={}):

Any suggestion?

Thanks in advance,
Yuri

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant