Hi George, thanks for answering. dev_appserver.py is for the standard 
environment Python 2.7, I'm trying to run a Python 3.7 web app.

El viernes, 28 de septiembre de 2018, 1:28:34 (UTC+1), vvv vvv escribió:
>
>
> Hello, after installing everything, I am trying to run
> * 
> ~/python-docs-samples/appengine/standard_python37/building-an-app/building-an-app-2*
> *building-an-app/building-an-app-1* built and run successfully, my 
> problem is with the rest in the series which use the cloud datastore.
> When i start my virtual environment and run
> pip3 install -r requirements.txt
>
> python3 main.py
>
>
> I get Traceback (most recent call last):
>   File "main.py", line 20, in <module>
>     from google.cloud import datastore
>   File 
> "/home/neptune/env/local/lib/python3.6/site-packages/google/cloud/datastore/__init__.py"
> , line 61, in <module>
>     from google.cloud.datastore.batch import Batch
>   File 
> "/home/neptune/env/local/lib/python3.6/site-packages/google/cloud/datastore/batch.py"
> , line 24, in <module>
>     from google.cloud.datastore import helpers
>   File 
> "/home/neptune/env/local/lib/python3.6/site-packages/google/cloud/datastore/helpers.py"
> , line 24, in <module>
>     from google.type import latlng_pb2
> ModuleNotFoundError: No module named 'google.type'
>
>
> If on the other hand I run:
>
> pip install -r requirements.txt
>
> python main.py
>
>
> The output is:
>   File "main.py", line 22, in <module>
>     datastore_client = datastore.Client()
> ...
>     psep = app_id.find(_PARTITION_SEPARATOR)
> AttributeError: 'NoneType' object has no attribute 'find'
>
>
> I found here (
> https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/168) 
> in the end that I have to set APPLICATION_ID. How do I do this, and is this 
> documented somewhere?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5d3c5a27-d2d1-4619-9b47-4df1378828a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to