Error: module 'editor' has no attribute 'get_path'
Pythonista 3 300007
Error: module 'editor' has no attribute 'get_path'
Pythonista 3 300007
What does the output of import editor; editor.__file__ say? You might have a file named editor.py in your Script Library, which is being imported instead of the standard editor.py.
I can't reproduce that error here. Do you perhaps have a "editor.py" file of your own somewhere that might shadow the built-in module?
I find the reason
'''
[python-editor]
url = pypi
version = 1.0
summary = Programmatically open an editor, capture the result.
files = /private/var/mobile/Containers/Shared/AppGroup/5FEC4389-8C70-4202-8AF1-C02CD4FBFC59/Pythonista3/Documents/site-packages/editor.py
dependency =
'''
editor.py is python-editor 's file name
@dgelessus
@moderators
Seems as though you have installed a file named editor.py onto your path.... don't do that, it prevents the real editor from being imported.