• MTcoder

    @Phuket2 @cvp @omz Thank you all. I've never seen a community that is as willing to help as this one. Maybe it's because we have such a splendid tool in our hands!

    posted in Pythonista read more
  • MTcoder

    I was so happy to find this reference to PyPDF2, and even happier to find it is included with Pythonista. Looks like just what I need.

    But how, may I ask (and maybe it is just way too late at night and my brain is shot) did you all know that it was included? It's not listed in the Globule Module Index.

    I did find the source in the included libraries. Is that the best place to be looking?

    Thanks, all.

    posted in Pythonista read more
  • MTcoder

    @omz atexit seems to work fine in Pythonista 3 -- is it true? Has this issue been solved?

    posted in Pythonista read more
  • MTcoder

    @omz Thank you!

    Is this current forum the correct place to post things like this that may not be working as expected? I like to have an issue reviewed/corroborated/explained away by other users before it is deemed a bug.

    posted in Pythonista read more
  • MTcoder

    I use Quick Help by highlighting a command or function etc. and selecting "Help..." from the menu very frequently. It is one of the best features of the editor, saving so much time compared to shifting to the console help feature.

    However, I always get "No Results" in the popup box now, no matter what I try.

    Is anyone else using this? Am I the only one not seeing documentation in the popup box?

    posted in Pythonista read more
  • MTcoder

    @ccc said:

    Pythonista is based on CPython 2.7.5 but the current CPython is 2.7.11. It you go back and read the URLs that you provided above, you will see that urllib3 warns you if you are doing certain things with CPython versions prior to 2.7.9.

    Thank you for the version numbers -- that explains a lot. I reported this since these exceptions were not popping up in Pythonista 2.0 but started with 2.1. I'm upgrading code to Dropbox v2, but will just disable these warnings in the current v1 code.

    posted in Pythonista read more
  • MTcoder

    @SimCityWok Since you have your access token you should be in good shape, especially with Pythonista 2.1.

    Take a look at Dropbox API Explorer in the Dropbox developer's area. It allows you to play and access your dropbox and generate code with just your token in hand.

    Good luck -- I hope you can get in again.

    posted in Pythonista read more
  • MTcoder

    I am sure the ultimate answer is to get things upgraded to Dropbox API v2 but wanted to report this just in case.

    @ccc Disable warnings -- that, too.

    posted in Pythonista read more
  • MTcoder

    @omz I am getting the following exceptions from Dropbox scripts running on Pythonista 2.1. They were running without error yesterday on Pythonista 2.0. I am using an iPad with iOS 9.3.2.

    Is anyone else seeing this?

    /var/containers/Bundle/Application/0A6E6890-4845-449B-9931-B5845AF8878F/Pythonista.app/Frameworks/PythonistaKit.framework/pylib/site-packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
    SNIMissingWarning
    /var/containers/Bundle/Application/0A6E6890-4845-449B-9931-B5845AF8878F/Pythonista.app/Frameworks/PythonistaKit.framework/pylib/site-packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
    InsecurePlatformWarning

    Ironically it says to use a newer version of Python, but that is what has raised these exceptions.

    Here is the minimal stripped-down code that will reproduce this.

    # coding: utf-8
    from dropbox import client, session
    
    APP_KEY = 'aaaaaaaaaaaaaaa'
    APP_SECRET = 'bbbbbbbbbbbbbbb'
    ACCESS_TYPE = 'dropbox'
    ACCESS_KEY = 'cccccccccccccccc'
    ACCESS_SECRET = 'ddddddddddddddd'
    
    sess = session.DropboxSession(APP_KEY, APP_SECRET, ACCESS_TYPE)
    sess.set_token(ACCESS_KEY, ACCESS_SECRET)
    client = client.DropboxClient(sess)
    folder_metadata = client.metadata('/')
    

    Any ideas, anyone?

    posted in Pythonista read more
  • MTcoder

    @JonB said:

    Incidentally, @omz, did you update dropbox in the pythonista 2.1 hitting the app store soon? 201009 still has the old version.

    Things have changed with 2.1, and version now exists.

    >>> import dropbox
    >>> print(dropbox.__version__)
    6.4.0
    

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!