Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- google-cloud-storage
- --find-links ..........
- import logging
- import sys,os
- #sys.path.append(r"C:UsersMahdieclipse-workspacegoogle-cloud-functions")
- #...
- sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(sys.path[0]))))))
- from com.mahdi.python.file_ingestion.file_ingestion_handler import FileIngestionHandler
- C:UsersMahdieclipse-workspacegoogle-cloud-functionscommahdipythonfunctionsgcs>gcloud functions deploy gcs_object_insert --
- runtime python37 --trigger-resource small-files --trigger-event google.storage.object.finalize
- Deploying function (may take a while - up to 2 minutes)...failed.
- 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 256, 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 166, in load_user_function
- spec.loader.exec_module(main)
- File "<frozen importlib._bootstrap_external>", line 728, in exec_module
- File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
- File "/user_code/main.py", line 7, in <module>
- from com.mahdi.python.file_ingestion.file_ingestion_handler import FileIngestionHandler
- ModuleNotFoundError: No module named 'com'
Add Comment
Please, Sign In to add comment