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 google-appengine+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/fc044030-6b5b-4a1b-8f93-6323551e474bo%40googlegroups.com.