Thanks Mary for following up.

I am aware of the differences from 2.7 to 3.7. It's not that I migrated the 
application to 3.7. Previously the application (written in 3.7) didn't 
require explicit declaration of module "six" in requirements.txt and 
suddenly it is required. I have no explanation for such a change other than 
a modification under the hood by updating one of the used libraries, or 
dependency of libraries, without version modification.

The possibility that a library has been updated without version change is 
the issue which is worrying me. I had similar issues in the past while 
running python 2.7 applications but there we used the non-recommended 
statement to use the latest library. We changed and indicate now the 
version of a library we want to use and which has been tested.

Thanks
Karl-Heinz
 

On Tuesday, August 18, 2020 at 8:11:29 PM UTC-4 Mary (Google Cloud Support) 
wrote:

> Hello Karl,
>
> In the GAE Python 2.7 runtime, six was part of the 3rd party libraries 
> which was bundled as part of the runtime[1]. With Python 3.7, some of these 
> libraries were not included in the runtime in order to provide a more 
> idiomatic python environment and need to be migrated[2] by specifying these 
> previously bundled libraries into the requirements.txt
>
>
> [1] 
> https://cloud.google.com/appengine/docs/standard/python/tools/built-in-libraries-27
> [2] 
> https://cloud.google.com/appengine/docs/standard/python/migrate-to-python3/migrating-services#importing-the-client-library
>
> On Friday, August 14, 2020 at 12:29:48 PM UTC-4, Karl-Heinz Müller wrote:
>>
>> Adding six==1.9.0 resolves the issue.
>>
>> The content of the modified requirements.txt:
>> Flask==1.0.2
>> six==1.9.0 
>> flask-talisman==0.7.0
>>
>> Maybe my post will help someone else stumbling over the same issue. 
>> Curious, why this can happen while using the same versions of the different 
>> modules. Some modules have changed and which loaded which I don't 
>> explicitly mention in requirements.txt
>>
>> On Friday, August 14, 2020 at 12:16:18 PM UTC-4 Karl-Heinz Müller wrote:
>>
>>> Hi, while updating the application today, I noticed that flask-talisman 
>>> throws an error. 
>>>
>>>  File "/env/lib/python3.7/site-packages/flask_talisman/talisman.py", 
>>> line 17, in <module> from six import iteritems, string_types 
>>> ModuleNotFoundError: No module named 'six'
>>>
>>> I use the same versions for flask and flask_talisman version as before 
>>> and set in requirements.txt
>>>
>>> Flask==1.0.2
>>> flask-talisman==0.7.0
>>>
>>> I tried to fix the error by adding six to the requirements. This didn't 
>>> resolve the issue. Wondering why continue using the same modules, this 
>>> error suddenly appears and which combinations of modules allow me to 
>>> continue using flask-talisman.
>>>
>>> For now I temporarily commented out the talisman. 
>>>
>>> Is it a temporal glitch/bug? What can I do to run flask-talisman on 
>>> GAE/Python3.7?
>>> Please let me know what additional information you need to know.
>>>
>>> Thanks
>>>
>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/247e8b71-22cd-476c-b24f-7cafbca2d52an%40googlegroups.com.
  • [google-appeng... Karl-Heinz Müller
    • [google-a... Karl-Heinz Müller
      • [goog... 'Mary (Google Cloud Support)' via Google App Engine
        • [... Karl-Heinz Müller
          • ... 'Mohammad I (Cloud Platform Support)' via Google App Engine

Reply via email to