emmett-framework / emmett

The web framework for inventors
Other
1.04k stars 70 forks source link

Cant import weppy #300

Closed angus-galbraith closed 3 years ago

angus-galbraith commented 3 years ago

Have installed weppy in windows 10, when I go to import i get the following error. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\Angus Galbraith\AppData\Local\Programs\Python\Python39\lib\site-packages\weppy\__init__.py", line 3, in <module> from .app import App, AppModule File "C:\Users\Angus Galbraith\AppData\Local\Programs\Python\Python39\lib\site-packages\weppy\app.py", line 21, in <module> from .expose import Expose, url File "C:\Users\Angus Galbraith\AppData\Local\Programs\Python\Python39\lib\site-packages\weppy\expose.py", line 19, in <module> from .pipeline import Pipeline, Pipe File "C:\Users\Angus Galbraith\AppData\Local\Programs\Python\Python39\lib\site-packages\weppy\pipeline.py", line 14, in <module> from .http import HTTP, redirect File "C:\Users\Angus Galbraith\AppData\Local\Programs\Python\Python39\lib\site-packages\weppy\http.py", line 13, in <module> from .globals import current File "C:\Users\Angus Galbraith\AppData\Local\Programs\Python\Python39\lib\site-packages\weppy\globals.py", line 26, in <module> from .html import htmlescape File "C:\Users\Angus Galbraith\AppData\Local\Programs\Python\Python39\lib\site-packages\weppy\html.py", line 18, in <module> from .libs.sanitizer import sanitize File "C:\Users\Angus Galbraith\AppData\Local\Programs\Python\Python39\lib\site-packages\weppy\libs\sanitizer.py", line 22, in <module> from cgi import escape ImportError: cannot import name 'escape' from 'cgi' (C:\Users\Angus Galbraith\AppData\Local\Programs\Python\Python39\lib\cgi.py)

Any suugestions would be greatly appreciated.

gi0baro commented 3 years ago

@angus-galbraith I'm sorry but weppy is not compatible with Python 3.9. You should use Python 3.7 or switch to Emmett.

angus-galbraith commented 3 years ago

Hi Thanks for the quick reply, have installed Emmett. Working well

Thanks

Angus

From: Giovanni Barillari notifications@github.com Sent: 10 December 2020 16:21 To: emmett-framework/emmett emmett@noreply.github.com Cc: angus-galbraith angus.galbraith25@outlook.com; Mention mention@noreply.github.com Subject: Re: [emmett-framework/emmett] Cant import weppy (#300)

@angus-galbraithhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fangus-galbraith&data=04%7C01%7C%7Ca5a147c1ba4e4dc74e9608d89d27979b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637432140650230074%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=oaq9x2Er3ciXGFxIcYa0jEZ9tT8rz5RFo4mwouBb6FQ%3D&reserved=0 I'm sorry but weppy is not compatible with Python 3.9. You should use Python 3.7 or switch to Emmett.

- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Femmett-framework%2Femmett%2Fissues%2F300%23issuecomment-742625509&data=04%7C01%7C%7Ca5a147c1ba4e4dc74e9608d89d27979b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637432140650240028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=8I%2F19ikzl3puhomM1PXk4PtszVf9aFP0JZHDSKkw9Pk%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGIZT4JU5BC6HZGS446L7DLSUDYO7ANCNFSM4UVHU46Q&data=04%7C01%7C%7Ca5a147c1ba4e4dc74e9608d89d27979b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637432140650240028%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=yTMJynpGlqs6cJKTXoYhqFRklW7Vvn92UVOA0MCWVRg%3D&reserved=0.