Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Beta bug?
-
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:
2+2
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>
main()
File "/var/containers/Bundle/Application/A30CF941-D366-4CE5-BCAA-C22CBEC6C501/Pythonista3.app/Frameworks/Py3Kit.framework/pykit_startup.py", line 47, in main
import importcompletion
File "/var/containers/Bundle/Application/A30CF941-D366-4CE5-BCAA-C22CBEC6C501/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/importcompletion.py", line 26, in <module>
import imp
File "/var/containers/Bundle/Application/A30CF941-D366-4CE5-BCAA-C22CBEC6C501/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/imp.py", line 28, in <module>
import tokenize
File "/var/containers/Bundle/Application/A30CF941-D366-4CE5-BCAA-C22CBEC6C501/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/tokenize.py", line 34, in <module>
import re
File "/var/containers/Bundle/Application/A30CF941-D366-4CE5-BCAA-C22CBEC6C501/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/re.py", line 143, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
4 -
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)
-
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.
Try
print (sys.modules['enum'].__file__)
to see which file is the problem. -
@jonb That was it. Thanks!