Category : google-compute-engine

I worked on a large number of images, where I extracted the image’s features using deep learning model then stored them in the array. Because the process takes a long time, I saved this array in the Pickle file to use it again using the following code: pickle.dump(array, open(‘Name-of-File.pickle’, ‘wb’)) When I want to load ..

Read more

Building an Web Application in the Google Compute Engine. Added the .json files in the /home/project directory and have python scripts in the /home/project/gsuite/pscript.py How can i access the .json file that is present in the /home/project folder. I tried using os.getcmd() inside /home/project/gsuite/pscript.py file, but its returning as ‘/workspace’ Any help is appreciated!. Thanks ..

Read more

I am trying to configure the great_expectations tool https://greatexpectations.io/ and here is the documentation i followed https://docs.greatexpectations.io/docs/guides/connecting_to_your_data/database/bigquery and i was able to create import os from ruamel import yaml import great_expectations as ge from great_expectations.core.batch import BatchRequest, RuntimeBatchRequest gcp_project = ‘my-gcp-project’ bigquery_dataset = ‘my-dataset’ CONNECTION_STRING = f"bigquery://{gcp_project}/{bigquery_dataset}" context = ge.get_context() datasource_config = { "name": "my_bigquery_datasource", ..

Read more

I’m running into this error when trying to run training on my StableBaselines Gym Environment from a virtual machine on Google Compute Engine. I can’t seem to find the issue, I’ve tried upgrading to the most recent versions for all of my libraries but it didn’t seem to fix the issue. Does anyone have any ..

Read more

I have following A repository which contains a code(python) to be executed A VM at Google Cloud (debian/ubuntu) A scheduler + cloud function to start VM every hour What I require I want to run the code in repository every hour and after its execution the machine shuts down. My code runs 15-25 mins in ..

Read more

I am using Package Version ———————— ——— google-api-core 2.0.1 google-auth 2.0.2 google-cloud-compute 0.5.0 google-compute-engine 2.8.13 to retrieve google cloud instances data. I was referring to the docs to get aggregated list of instances. I wasnt able to filter instances based on tags of the compute VM instances. Is there a particular way to do it ..

Read more

Now I am running my flask app on google compute engine, and I declare my global variables like below. @app.before_first_request def setup(): global myVar try: myVar except NameError: myVar = {‘default’:’default value’} and I set up value through a route @app.route(‘/setValue’) def setValue(): global myVar myVar[‘new’] = ‘new value’ return ‘success’ and show the global ..

Read more