ihf last edited by
I don’t know why I wouldn’t have noticed this but when running the beta I am getting the following errors in the console. Note that this is immediately after opening Pythonista and typing 2+2 in the console:
Traceback (most recent call last):
File "/var/containers/Bundle/Application/A30CF941-D366-4CE5-BCAA-C22CBEC6C501/Pythonista3.app/Frameworks/Py3Kit.framework/pykit_startup.py", line 51, in <module>
File "/var/containers/Bundle/Application/A30CF941-D366-4CE5-BCAA-C22CBEC6C501/Pythonista3.app/Frameworks/Py3Kit.framework/pykit_startup.py", line 47, in main
File "/var/containers/Bundle/Application/A30CF941-D366-4CE5-BCAA-C22CBEC6C501/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/importcompletion.py", line 26, in <module>
File "/var/containers/Bundle/Application/A30CF941-D366-4CE5-BCAA-C22CBEC6C501/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/imp.py", line 28, in <module>
File "/var/containers/Bundle/Application/A30CF941-D366-4CE5-BCAA-C22CBEC6C501/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/tokenize.py", line 34, in <module>
File "/var/containers/Bundle/Application/A30CF941-D366-4CE5-BCAA-C22CBEC6C501/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/re.py", line 143, in <module>
AttributeError: module 'enum' has no attribute 'IntFlag'
technoway last edited by technoway
I expect that your "re" module is corrupted. I'm not sure of the best way to either verify that, or to fix it.
I am running the Python 3 beta, and I just opened it, and I typed 2+2 into the small text-area at the bottom of the console view, and hit the "Return" key, and just 4 was displayed.
>>> 2+2 4
I did this on my iPhone 6s, using the software keyboard.
On the Pythonista view that shows the folders, if I click on the small gear on the lower right of the screen to open the "Settings" view, and I scroll to the very bottom, the version that is displayed is:
v. 3.1.1. (311009)
JonB last edited by
We have seen this problem before... certain packages install an enum module in site packages, i think. check for an enum.py or enum folder in site-packages.
print (sys.modules['enum'].__file__)to see which file is the problem.
ihf last edited by
@jonb That was it. Thanks!