omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Why can't I use PEP8 Check Style?

    Pythonista
    4
    6
    2966
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LokiSharp
      LokiSharp last edited by

      Error: module 'editor' has no attribute 'get_path'

      Pythonista 3 300007

      1 Reply Last reply Reply Quote 0
      • dgelessus
        dgelessus last edited by

        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.

        LokiSharp 1 Reply Last reply Reply Quote 0
        • omz
          omz last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • LokiSharp
            LokiSharp last edited by

            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

            1 Reply Last reply Reply Quote 2
            • LokiSharp
              LokiSharp @dgelessus last edited by

              @dgelessus
              @moderators

              1 Reply Last reply Reply Quote 0
              • JonB
                JonB last edited by

                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.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post
                Powered by NodeBB Forums | Contributors