3

I am following the quickstart tutorial for datalab here, within the GCP console. When I try to run

datalab beta create-gpu datalab-instance-name

In step 3 I receive the following error

write() argument must be str, not bytes 

Can anyone help explain why this is the case and how to fix it?

Thanks

greenPlant
  • 482
  • 4
  • 16

1 Answers1

4

Referring to the official documentation, before running Datalab instance, the corresponding APIs should be enabled: Google Compute Engine and Cloud Source Repositories APIs. To do so, visit Products -> APIs and Services -> Library and search for the APIs. Additionally, make sure that billing is enabled for your Google Cloud project.

You can also enabling the APIs by typing the following command, which will give you a prompt to enable the API:

datalab list

I made some research and found that the same issue has been reported on the Github page. If enabling API's wouldn't work, the best option would be to contribute (add a comment) in the mentioned Github topic to make it more visible to the Datalab Engineering team.

aga
  • 3,790
  • 3
  • 11
  • 18
  • 1
    thanks, I had enabled the compute engine API but on the wrong project! – greenPlant Aug 24 '20 at 13:03
  • Update - same error just further down the pipeline after I have selected the region - will take this over to GitHub and chase up there – greenPlant Aug 24 '20 at 13:06
  • Please, restart the shell after enabling the APIs. Otherwise, contribute to the Github issue page. – aga Aug 24 '20 at 13:08