问题
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