DreamPie doesn't work with Python 3.2

谁说我不能喝 提交于 2019-12-05 17:54:57

A quick search of the DreamPie issues found Can't launch python 3.2 which contains the following workaround in the first comment:

To fix the issue edit \dreampie\subp_main.py, replace:

sys.setdefaultencoding('utf-8')

with:

import platform 
if not "3.2" in platform.python_version(): 
    sys.setdefaultencoding('utf-8')

Tested on WindowsXP SP3, both Python2.7 and Python3.2 can be used with this fix.

There are a number of other suggested workarounds in later comments.

Edit:

A fix for this issue has already been committed but is not in a stable release as far as I can tell.

This has now been fixed and works in the latest stable DreamPie release, 1.2.1. I'm using it and it works fine; I tested with both Python 3.2 and 3.4. On the DreamPie homepage it says:

Supports virtually all Python implementations: 2.5+, 3.1+, Jython, IronPython and PyPy.

Here's a screenshot I took:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!