@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!
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.
Best posts made by MTcoder
-
RE: Writing watermarks to PDF files
-
RE: atexit module not working
@omz atexit seems to work fine in Pythonista 3 -- is it true? Has this issue been solved?
-
Dropbox module and access token
I am creating some scripts for my use only that will hopefully be able to use the Dropbox module that is included with Pythonista.
Since the scripts are private, I would like to use the generated Dropbox access token instead of the app key/secret so that I don't need to go through the login authentication process each time.
Is there any way to use the access token with the very convenient Dropbox module? The example uses app key/secret and I've not been able to figure out how to use the access token instead. Please help?
Thank you!
[By the way, I have been loving Pythonista on my iPad--what a great tool and editor. Thank you again!]
Latest posts made by MTcoder
-
RE: Writing watermarks to PDF files
@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!
-
RE: Writing watermarks to PDF files
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.
-
RE: atexit module not working
@omz atexit seems to work fine in Pythonista 3 -- is it true? Has this issue been solved?
-
RE: Quick Help returning "No Results" in Version 2.1
@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.
-
Quick Help returning "No Results" in Version 2.1
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?
-
RE: TLS/SSL exceptions from Pythonista 2.1
@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.
-
RE: Dropbox module and access token
@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.
-
RE: TLS/SSL exceptions from Pythonista 2.1
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.
-
TLS/SSL exceptions from Pythonista 2.1
@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.
InsecurePlatformWarningIronically 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?
-
RE: Dropbox module and access token
@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