I am running a simple server that connects to a https webpage through websockets.
To keep the server running, I was going to use asyncio. To validate the SSL, I was going to use Twisted's rather simple functions.
My problem is I am having the worst time getting Twisted to run on Python 3.4. Its static.py file keeps
from twisted.web.static import File
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/twisted/web/static.py", line 440
def _doSingleRangeRequest(self, request, (start, end)):
which tells me that it must be using Twisteds 2.7 code.
How do I go about repairing this or is this a lost cause?
twisted.web.static
hasn't been ported to Python 3 yet, according to this open bug . You can see which modules are compatible here . Unless you're feeling really ambitious and want to try porting it yourself, you're probably out of luck.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.