• ihf

    Has anyone developed anything to support the Apple Watch from Pythonista? Is this possible? Workflow has a watch complication so I suppose it might be possible to write a workflow which gets input runs a pythonista script and returns output to the watch. What would it take to do this without Workflow? While I'm dreaming, if Pythonista had a watch app that it could talk to, it could conceivably populate a face with whatever a user wanted. AFAIK such a capability is absent form the Apple Watch.

    posted in Pythonista read more
  • ihf

    That did it. Thanks!

    posted in Pythonista read more
  • ihf

    In the process of using Synchronator on multiple devices I managed to erase most of the Pythonista files on both my iPad and Dropbox. I did a Time machine restore of the directory to Dropbox and then did another Synchronator sync which brought (most) everything back to where it was. However, I just tried running the RSS script which uses the urlparse module and I'm getting a "not found" error. I'm don't know where this module comes from and how it could have gotten deleted and not restored. Can anyone please tell me how this happened and what I can do to fix it? Also, if I have a new iPhone and I want to get all of these files on it, is doing a Synchronator sync the righrt way or will this just delete everything on Dropbox (again)?

    posted in Pythonista read more
  • ihf

    Has anyone tried to get this to work? urlwatch and in git

    posted in Pythonista read more
  • ihf

    Pytube was working fine but I suddenly started getting the following when downloading:

    Traceback (most recent call last):
    File "/private/var/mobile/Containers/Shared/AppGroup/B86CEE4E-E4A9-4BB4-9CA7-6E13BDA2C2A4/Pythonista3/Documents/youtube_dl.py", line 4, in <module>
    YouTube(appex.get_url()).streams.first().download()
    File "/private/var/mobile/Containers/Shared/AppGroup/B86CEE4E-E4A9-4BB4-9CA7-6E13BDA2C2A4/Pythonista3/Documents/site-packages/pytube/main.py", line 81, in init

    File "/private/var/mobile/Containers/Shared/AppGroup/B86CEE4E-E4A9-4BB4-9CA7-6E13BDA2C2A4/Pythonista3/Documents/site-packages/pytube/main.py", line 90, in prefetch_init
    """
    File "/private/var/mobile/Containers/Shared/AppGroup/B86CEE4E-E4A9-4BB4-9CA7-6E13BDA2C2A4/Pythonista3/Documents/site-packages/pytube/main.py", line 117, in init
    stream_maps.append('adaptive_fmts')
    File "/private/var/mobile/Containers/Shared/AppGroup/B86CEE4E-E4A9-4BB4-9CA7-6E13BDA2C2A4/Pythonista3/Documents/site-packages/pytube/mixins.py", line 76, in apply_descrambler
    for i in stream_data[key].split(',')
    KeyError: 'url_encoded_fmt_stream_map'

    This version also works fine on a Mac. Can anyone see what might be causing this problem?

    posted in Pythonista read more
  • ihf

    @Jonb Thanks!

    I appreciate the reminder that Apple views os.crash as a no-no (for non-crash uses) and that users would find it confusing since apps don't just return to the homescreen normally. However, The use case I mentioned makes sense to me and I have no need to publish the script (lest someone think that Pythonista had crashed).

    posted in Pythonista read more
  • ihf

    Use case...running Pythonista script as part of Workflow from widget. I’d like to run the WF which calls the script and then returns to home. Os.abort seems like overkill. Perhaps there could be a softer way to return? ObjC?

    posted in Pythonista read more
  • ihf

    Has anyone gotten this to work? The installs work fine but I have yet to be able to authenticate to Instagram. Problem is on the Instagram side. I tried following the instructions but at some point Instagram does not respond. Before I spend more time on it I wondered if this has worked successfully for anyone in the Pythonista community.

    posted in Pythonista read more
  • ihf

    Perfect. Thank you both.

    posted in Pythonista read more
  • ihf

    Thanks. Where is get_inputs found?

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!