kubernetes-response-engine icon indicating copy to clipboard operation
kubernetes-response-engine copied to clipboard

main.py is missing in GKE palybook and requirement.txt is empty

Open shubham061292 opened this issue 4 years ago • 3 comments

ERROR: (gcloud.functions.deploy) OperationError: code=3, message=Function failed on loading user code. Error message: Code in file main.py can't be loaded. Did you list all required modules in requirements.txt? Detailed stack trace: Traceback (most recent call last): File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 305, in check_or_load_user_function _function_handler.load_user_function() File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 184, in load_user_function spec.loader.exec_module(main) File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/user_code/main.py", line 1, in import playbooks File "/user_code/playbooks/init.py", line 3, in import pendulum ModuleNotFoundError: No module named 'pendulum'

shubham061292 avatar Apr 03 '20 14:04 shubham061292

hi, what command did you use exactly? have you pipenv installed?

eihwaz-kob avatar Apr 14 '20 20:04 eihwaz-kob

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Nov 20 '20 19:11 poiana

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

poiana avatar Feb 18 '21 21:02 poiana