Category : google-cloud-sdk

enter image description here Screenshot of the py27_urlquote error which occurs when executed I tried with an answer which ask to install pyurlquote. But I am getting some error like this : Collecting urlquote Using cached urlquote-1.1.4.tar.gz (23 kB) Requirement already satisfied: milksnake in c:usersselvaappdatalocalprogramspythonpython38-32libsite-packages (from urlquote) (0.1.5) Requirement already satisfied: cffi>=1.6.0 in c:usersselvaappdatalocalprogramspythonpython38-32libsite-packages (from ..

Read more

When I run dev_appserver.py on google-cloud-sdk, I get ImportError: No module named py27_urlquote. Traceback (most recent call last): File "/Users/user/Downloads/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 109, in <module> _run_file(__file__, globals()) File "/Users/user/Downloads/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 103, in _run_file _execfile(_PATHS.script_file(script_name), globals_) File "/Users/user/Downloads/google-cloud-sdk/platform/google_appengine/dev_appserver.py", line 83, in _execfile execfile(fn, scope) File "/Users/user/Downloads/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/devappserver2.py", line 44, in <module> from google.appengine.tools.devappserver2 import dispatcher File "/Users/user/Downloads/google-cloud-sdk/platform/google_appengine/google/appengine/tools/devappserver2/dispatcher.py", line ..

Read more

I am using two GCP accounts, I setup a google cloud sdk and accessed GS bucket from account 1. Now I would like to access another GS bucket which is mapped to another account and when I run the command client.get_bucket(bucket) It says 403 GET https://storage.googleapis.com/storage/v1/b/agencyq-bucket?projection=noAcl&prettyPrint=false: does not have storage.buckets.get access to the Google Cloud ..

Read more

While transferring file(s) from a Linux system to Google Cloud Platform using the gsutil cp command, it fails at some old ".eml" files when trying to process its content (not just file name!) which contains non-English characters not encoded in Unicode. The command attempted was: gsutil cp "/home/darsenlu/Home/mail/Pan/Fw_ japanese_lyrics.eml" gs://darsen_backup_monthly/ The error message was: UnicodeEncodeError: ..

Read more

I am recently working on a project that uses Google App Engine running on python2.7 on Ubuntu18.04. Files need to be uploaded to AWS S3, so we are using boto for this. However running the code outside the app works but when running it inside GAE it gives me the following error: ERROR 2021-05-12 03:54:54,582 ..

Read more

I am looking for help to troubleshoot my application written in Python3/Flask to be hosted on Google App Engine. The deployment succeeds, but there are issues with App Engine not able to access GCS. The code is as below: gs_util_command = "gsutil " gs_util_command = gs_util_command + " cp gs://"+ re.match(r"https.//storage.googleapis.com/(.*)",url1).group(1) gs_util_command = gs_util_command + ..

Read more

I’ve submitted a training job to GCP’s Cloud AI platform. I’m using setup.py to create a sdist tar.gz file as per GCP’s documentation. I’ve also included a MANIFEST.in file alongside that setup.py to include a .yaml file that’s needed for default model configuration. The line in my manifest.in is recursive-include PipeLiner *.yaml I created the ..

Read more

I want to: Access all GCP projects linked to my google account. Get all buckets that contain the word foobar in their name. Retrieve some of the metadata from the ones provided by Google (Creation time, Update time, Storage class, Content-Length, Content-Type, Hash (crc32c), Hash, ETag, Generation, Metageneration, ACL, TOTAL) for example Creation time and ..

Read more

In my Case, I want to upload all of pdf file to google cloud storage. So I use google-sdk with pytho subprocess for practice instead of "google.cloud.storage API". But there is an error below: Code: from subprocess import Popen def subprocess_cmd(command): print(f’$>: {command}’) process = Popen(command, stdout=subprocess.PIPE, executable=’/bin/bash’, shell=True) proc_stdout = process.communicate()[0].strip() print(proc_stdout.decode("utf-8")) Exec Function: ..

Read more