Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

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

Open
shubham061292 opened this issue Apr 3, 2020 · 3 comments
Open

Comments

@shubham061292
Copy link

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
Copy link

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

@poiana
Copy link

poiana commented Nov 20, 2020

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

1 similar comment
@poiana
Copy link

poiana commented Feb 18, 2021

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

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

3 participants