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.


    Pythonista 3

    Pythonista
    pythonista 3
    11
    17
    12748
    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.
    • shaun-h
      shaun-h last edited by

      Nice to see pythonista 3 on the App Store, just to let you all know I installed it over the beta and all my files appeared to be ok. That was my experience but I would suggest backing up though just incase :)

      1 Reply Last reply Reply Quote 2
      • Utsira
        Utsira last edited by

        When I fire Pythonista 3 up I have a folder for "Pythonista 2 Documents". Have they been copied across to Pythonista 3 (or is this some kind of iOS8 open-in-place magic)? In other words, will those docs stay there if I delete Pythonista 2? How safe is it generally to delete Pythonista 2?

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

          @Utsira I highly recommend reading through the "What's new in Pythonista" release notes in the help screen.

          Details about this and many other things are found there.

          Specifically:

          If you also have Pythonista 2 installed, you can access your existing files through the special “Pythonista 2” folder in the script library. It is possible to move files from Pythonista 2 to Pythonista 3, but not vice-versa. You can disable the Pythonista 2 folder entirely from the settings.

          I'm pretty sure if you delete Pythonista 2 without copying files over first (like to a different directory in 3) they will be gone. But someone else may know better.

          Edit of Edit: I tried deleting one file in that Pythonista 2 folder and it is now gone in Pythonista 2. Apparently this is a shared folder so see Omz's comment below about how that is handled.

          skrohmer 1 Reply Last reply Reply Quote 1
          • Utsira
            Utsira last edited by

            @cook thanks for the heads up, I guess I'll transfer the files before deleting Pythonista 2

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

              @cook thank you for clarification.

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

                I've just installed Pythonista 3 and I only begin to (try to) run my scripts in Python3, after conversion via 2to3.
                The first script I try is a script performing a backup of all my scripts on Dropbox, using the dropbox standard module.

                dropbox_client.put_file('/Pythonista/Backup3.zip',fil,overwrite=True)	
                

                The script stops at this line with error "ascii codec can't decode byte 0xaf in position 11: ordinal not in..." (dropbox.py, client.py, decode, ascii...)
                I'm afraid I'll meet this kind of errors during my multiple conversions.
                Thanks for your very appreciated help.

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

                  @omz Congratulations of two great releases today!! Thanks massively for your commitment and craftsmanship. These tools have become so powerful yet so delightful. This community is extremely grateful to you for your dedication over the years.

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

                    you might try using one of the examples in the dropbox sdk
                    For example
                    https://github.com/dropbox/dropbox-sdk-python/tree/master/example/back-up-and-restore

                    Alternatively, set your default interpreter to 2.7, or add #!python2 at the top of your main script to run it in the 2.7 interpreter.

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

                      @jonB thanks, both solutions are ok.
                      I'll keep v3 as default setting and force v2 only for scripts where I'll get problems.
                      But, for info, I use all Pythonista standard code and samples for accessing Dropbox, thus I don't understand this kind of decode errors.

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

                        Solution found: file to be put must be open in binary mode!
                        And the script runs without error in Python 3...

                        1 Reply Last reply Reply Quote 1
                        • skrohmer
                          skrohmer @cook last edited by

                          @cook Hmmm I haven't investigated it in detail but I installed P 3, started it and found the files from P 2. After that I deleted P 2 and the files are still available in P 3.

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

                            @skrohmer The data container is shared between the two apps. There's no way for the system to know which files belong to which, so it's only deleted if you delete all apps in the app group (i.e. both versions of Pythonista).

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

                              @omz that's good to know...! Thanks!

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

                                Can you confirm that the numpy version for both python 2.7 and 3.5 are still at 1.8 ? I examine the two folders, and did imports and np.version.version from 2.7 and 3.5 and got the same version information. If so, is it possible to upgrade to at least 1.9 or is that due for a later release/
                                I do love the version and I am glad to see it move to pythonista... thanks

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

                                  import numpy
                                  print(numpy.__version__)  # 1.8.0 on both Pythonista 2.1 and 3.0
                                  
                                  Dan_P 1 Reply Last reply Reply Quote 0
                                  • Dan_P
                                    Dan_P @ccc last edited by

                                    @ccc yes that is what I got as well, I was just wondering why numpy wasn't upgraded as well, there are a few things that would have been useful to have upgraded like np.unique https://github.com/numpy/numpy/blob/1429c606643d1ad305e710c4a31cb6f398d04c53/numpy/lib/arraysetops.py

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

                                      I just bought the App for the first time (didn't own previous version). Hope this is planned for the near future as it's important for those that need it. I am referring to numpy...

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