falcosecurity-retire / kubernetes-response-engine

37 stars 15 forks source link

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

Open shubham061292 opened 4 years ago

shubham061292 commented 4 years ago

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'

eihwaz-kob commented 4 years ago

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

poiana commented 3 years ago

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 commented 3 years ago

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