omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. imnegan

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 9
    • Best 1
    • Controversial 0
    • Groups 0

    imnegan

    @imnegan

    1
    Reputation
    962
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    imnegan Unfollow Follow

    Best posts made by imnegan

    • RE: Porting Pythonista modules to PC

      Fantastic work, thanks!

      posted in Pythonista
      imnegan
      imnegan

    Latest posts made by imnegan

    • Auto add/commit/push to github in Stash

      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
      imnegan
      imnegan
    • RE: Numpy ‘module enum has no attribute intflag

      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
      imnegan
      imnegan
    • Numpy ‘module enum has no attribute intflag

      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
      imnegan
      imnegan
    • RE: Stash gh SyntaxError

      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
      imnegan
      imnegan
    • Stash gh SyntaxError

      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
      imnegan
      imnegan
    • Show all scene child nodes

      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
      imnegan
      imnegan
    • RE: App was accepted in iTunes store

      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
      imnegan
      imnegan
    • Frame vs rect

      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
      imnegan
      imnegan
    • RE: Porting Pythonista modules to PC

      Fantastic work, thanks!

      posted in Pythonista
      imnegan
      imnegan