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.


    [Share Code] gitsynchista now has pyzipista support

    Pythonista
    share
    3
    8
    6914
    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.
    • marcus67
      marcus67 last edited by marcus67

      My little tool gitsynchista now offers support for my other little tool pyzipista: For each configured repository the app checks if the self-extracting archive is up-to-date. If not, the pyzipista button at the bottom will show a red border. The user can update the archive by simply pressing the button.

      screenshot

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

        Looking good, I need to give this another try.

        marcus67 2 Replies Last reply Reply Quote 1
        • marcus67
          marcus67 @mikael last edited by marcus67

          @mikael There's a tutorial now. Enjoy!

          1 Reply Last reply Reply Quote 0
          • marcus67
            marcus67 @mikael last edited by

            @mikael And it has just been ported to Pythonista 3.

            1 Reply Last reply Reply Quote 1
            • athros
              athros last edited by

              @marcus67 : it's erroring out on me. Latest Pythonista 3 build. Working Copy up and running, WebDAV server on.

              Console output follows:

              log - INFO - Loaded logging configuration from etc/log_config.json
              log - INFO - Starting logging
              log - INFO - Loaded logging configuration from etc/log_config.json
              log - INFO - Starting logging
              gitsynchista - INFO - Starting gitsynchista
              config - INFO - reading configuration file '../EitD/gitsynchista_config.txt' for config 'SyncConfig'
              sync - INFO - No pyzipista found
              sync - INFO - Loading remote directory structure
              sync - INFO - Loading WebDav directory '/EitD-Pythonista'
              sync - INFO - Loading WebDav directory '/EitD-Pythonista/Docs'
              sync - INFO - Loading WebDav directory '/EitD-Pythonista/esper'
              sync - INFO - Loading local directory structure
              sync - INFO - Loading file directory '../EitD'
              sync - INFO - Loading file directory '../EitD/Docs'
              sync - INFO - Loading file directory '../EitD/esper'
              sync - INFO - Transferring '../EitD/esper/__init__.py' to '/EitD-Pythonista/esper/__init__.py'
              sync - ERROR - Error during scan: name 'basestring' is not defined
              Traceback (most recent call last):
                File "/private/var/mobile/Containers/Shared/AppGroup/EBB985EF-4968-4E86-B655-FB94E1213029/Pythonista3/Documents/gitsynchista/sync.py", line 520, in sync
                  self.compare_info.transfer_new_files_to_remote()
                File "/private/var/mobile/Containers/Shared/AppGroup/EBB985EF-4968-4E86-B655-FB94E1213029/Pythonista3/Documents/gitsynchista/sync.py", line 317, in transfer_new_files_to_remote
                  transfer_new_files(self.local_change_info, self.local_file_access, self.remote_file_access)
                File "/private/var/mobile/Containers/Shared/AppGroup/EBB985EF-4968-4E86-B655-FB94E1213029/Pythonista3/Documents/gitsynchista/sync.py", line 255, in transfer_new_files
                  dest_file_access.save_from_string(dest_physical_name, source_file_access.load_into_string(file.physical_name, mode="rb"), mode="wb")
                File "/private/var/mobile/Containers/Shared/AppGroup/EBB985EF-4968-4E86-B655-FB94E1213029/Pythonista3/Documents/gitsynchista/sync.py", line 198, in save_from_string
                  self.webdav_client.upload(string_file, path)
                File "/private/var/mobile/Containers/Shared/AppGroup/EBB985EF-4968-4E86-B655-FB94E1213029/Pythonista3/Documents/site-packages/client.py", line 182, in upload
                  if isinstance(local_path_or_fileobj, basestring):
              NameError: name 'basestring' is not defined
              gitsynchista - INFO - Terminating gitsynchista
              

              I'm willing to help with the error, just let me know what you need.

              mikael marcus67 2 Replies Last reply Reply Quote 0
              • mikael
                mikael @athros last edited by

                Since it is asking for pyzipista, did that need to be separately installed?

                marcus67 1 Reply Last reply Reply Quote 0
                • marcus67
                  marcus67 @athros last edited by

                  @athros Sorry, my fault. You will need to get the latest version of easywebdav (https://github.com/marcus67/easywebdav), too, and install it into your site-packages. Better restart Pythonista to make the changes visible.

                  1 Reply Last reply Reply Quote 0
                  • marcus67
                    marcus67 @mikael last edited by

                    @mikael pyzipista should be optional. If it still does not work after upgrading easywebdav I will have to look into this.

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