• imnegan

    One reason I can think of for a Mac version of Pythonista would be to automatically sync your files & projects via iCloud, similar to the Handoff function. I would definitely consider paying for that.

    posted in General Discussion read more
  • imnegan

    Hi all

    So I have Stash up and running in order to backup and sync a project between multiple devices, one of which is a corporate laptop that is locked down so that I’m unable to install Dropbox/Google Drive etc.

    Are there any tricks to get Stash (or another workflow) to automatically sync changes to github on the fly, similar to editing a google docs file that saves online as you type, without having to manually got through the mojo-deflating Stash process of

    git add stuff.py
    git commit
    git push
    

    Any suggestions? Totally keen to try non-git and/or non-Stash solutions if they’re out there.

    Cheers

    posted in Pythonista read more
  • imnegan

    Thanks all.

    @JonB I didn't see the enum.py file anywhere, but
    @Phuket2 deleting the enum dir nailed it.

    @dgelessus amen RE the forum's search function, thanks 'site:' for the google tip.

    posted in Pythonista read more
  • imnegan

    Hi all,

    Something strange is happening when I try to import numpy. I have one line of code in my py file, which I created in the default Pythonista location.

    import numpy as np
    

    Which returns the following error:

    Traceback (most recent call last):
      File "/var/containers/Bundle/Application/D8A31B2E-150C-4276-B4D5-22A9AC389F51/Pythonista3.app/Frameworks/Py3Kit.framework/pykit_startup.py", line 51, in <module>
        main()
      File "/var/containers/Bundle/Application/D8A31B2E-150C-4276-B4D5-22A9AC389F51/Pythonista3.app/Frameworks/Py3Kit.framework/pykit_startup.py", line 47, in main
        import importcompletion
      File "/var/containers/Bundle/Application/D8A31B2E-150C-4276-B4D5-22A9AC389F51/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/importcompletion.py", line 26, in <module>
        import imp
      File "/var/containers/Bundle/Application/D8A31B2E-150C-4276-B4D5-22A9AC389F51/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/imp.py", line 28, in <module>
        import tokenize
      File "/var/containers/Bundle/Application/D8A31B2E-150C-4276-B4D5-22A9AC389F51/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/tokenize.py", line 34, in <module>
        import re
      File "/var/containers/Bundle/Application/D8A31B2E-150C-4276-B4D5-22A9AC389F51/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/re.py", line 143, in <module>
        class RegexFlag(enum.IntFlag):
    AttributeError: module 'enum' has no attribute 'IntFlag'
    

    Any ideas? I have stash installed, but numpy was going just fine when I last used Pythonista a couple of weeks ago.

    posted in Pythonista read more
  • imnegan

    Thanks for the fast response JonB

    I started with the pip install pyjwt and that solved it straight away. After the fact I had a look for a github folder, didn't see anything.

    Kudos to you for the StaSh tutorial!

    Cheers

    posted in Pythonista read more
  • imnegan

    Hi all

    I have installed StaSh and am following the tutorial here .

    Unfortunately at the very first step:

    [~/Documents]$ gh create --help
    

    I get the following error:

    stash: <type 'exceptions.SyntaxError'>: invalid syntax (jwk.py, line 60)
    

    Any idea how to resolve this?

    posted in Pythonista read more
  • imnegan

    Hi all,

    I am building a model of the solar system using the Scene class. In the model each planet is a child node of the sun, and the moons are child nodes of their respective planets.

    Is there a way to show all child nodes of a selected node on screen without adding them as child node of the Scene itself? For example: Jupiter, when selected, is at the centre of the screen as the parent node. All of its moons (Io, Europa, etc) are Jupiter's child nodes and would be shown also.

    posted in Pythonista read more
  • imnegan

    Congrats! What's your app called? (Surely no one here would mind a shameless plug!)

    Any tips/references/tutorials you would recommend on the steps you followed?

    posted in Pythonista read more
  • imnegan

    Hi all,

    I'm having a great time learning programming and python with Pythonista (awesome app!) by making a little space game. In it I have some satellites orbiting a planet. The satellites should be:

    • selectable, ie "clickable", to execute actions (like displaying info)
    • represented by an icon, the ellipse or rect functions would be fine or the white_circle image
    • they orbit the planet.

    Would I be better off using a layer/frame or just a simple rect/ellipse? What are the advantages of using frames?

    Thanks in advance.

    posted in Pythonista read more
  • imnegan

    Fantastic work, thanks!

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!