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.
Removing an unwanted module.
-
Not sure how I could have caused this but I now get the following when executing python scripts that were working fine before. Can anyone suggest what I can do to fix this?
Traceback (most recent call last):
File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pykit_startup.py", line 51, in <module>
main()
File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pykit_startup.py", line 47, in main
import importcompletion
File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/importcompletion.py", line 26, in <module>
import imp
File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/imp.py", line 20, in <module>
from importlib._bootstrap import _ERR_MSG, _exec, _load, _builtin_from_name
File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/importlib/init.py", line 58, in <module>
import types
File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/types.py", line 172, in <module>
import functools as _functools
File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/functools.py", line 22, in <module>
from collections import namedtuple
File "/var/containers/Bundle/Application/E774F1A9-8F98-4AC0-B1E0-D8F029D80C77/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/collections/init.py", line 33, in <module>
from reprlib import recursive_repr as _recursive_repr
File "/private/var/mobile/Containers/Shared/AppGroup/B86CEE4E-E4A9-4BB4-9CA7-6E13BDA2C2A4/Pythonista3/Documents/site-packages/reprlib/init.py", line 7, in <module>
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted. -
you have a reprlib in site-packages. Delete it, and restart pythonista.
-
Thank you! (Removing reprlib, revealed 4 more packages that must have been added by some package I installed. After they were all removed, all is working again). If that happens again, I now know where to look.