cx_freeze sre_constants.error nothing to repeat

ぃ、小莉子 提交于 2019-12-11 11:51:45

问题


I updated Python from 3.3.2 to 3.3.3, but that might not be the problem. If I start my python application directly it is OK.

But when I freeze it to exe with cx_freeze the sqlalchemy connection in C:\Python33\lib\site-packages\sqlalchemy\engine\url.py line 184 uses re.compile and throws

C:\Python\32-bit\3.3\lib\sre_compile.py line 362 in _simple

sre_constraints.error: nothing to repeat

but in my sre_compile.py file on line 362 is no raise error nothing to repeat. cx_freeze must use an old version of the file.

When I write this code:

import sre_compile
print(sre_compile)

and create an exe it prints out: <module 'sre_compile' (frozen)> and also it has no attribute __file__ I tried to remove all __pycache__ dirs from my system and nothing happend.

How to tell cx_freeze to take the new version of the sre_compile module?

来源:https://stackoverflow.com/questions/20515742/cx-freeze-sre-constants-error-nothing-to-repeat

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