omz:forum

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

    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 7
    • Posts 30
    • Best 1
    • Controversial 0
    • Groups 0

    djl

    @djl

    1
    Reputation
    1146
    Profile views
    30
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    djl Unfollow Follow

    Best posts made by djl

    • google sheets api setup problem

      I successfully set up access to google spreadsheets on my laptop using the excellent guide: https://www.twilio.com/blog/2017/02/an-easy-way-to-read-and-write-to-a-google-spreadsheet-in-python.html

      It works well great on my laptop, and is a tremendous productivity tool, but when I tried to run the same script with pythonista I get the errror "no module named pyasn1.codec.der" with Python 2.7 and the error "No module named pyasn1_modules" with Python 3.6.

      Is there a way to correct this? Or is there is Pythonista missing some key module?

      posted in Pythonista
      djl
      djl

    Latest posts made by djl

    • RE: Appex

      My mistake. The menu I was looking for appears if you tap "run Pythonista script."

      posted in Pythonista
      djl
      djl
    • Appex

      The appex sharing options seem to have disappeared for iOS 13 and iPadOS. Am I missing something?

      posted in Pythonista
      djl
      djl
    • RE: iOS 13

      I have noticed that "add to home screen" scripts consistently produce two instances of a graphic ui.

      posted in Pythonista
      djl
      djl
    • RE: ui.AUTOCAPITALIZE_NONE?

      Perfect! Thank you.

      posted in Pythonista
      djl
      djl
    • ui.AUTOCAPITALIZE_NONE?

      What is the proper syntax in the pyui custom attributes section to have a textfield input keyboard appear without the shift field highlighted by default?

      posted in Pythonista
      djl
      djl
    • RE: Module runs in stash but not on console

      @JonB
      Thank you Jon. That worked when I entered the argv statement followed by:

      Package_name.module_name.main()
      

      I'm just learning how all of this fits together.

      posted in Pythonista
      djl
      djl
    • RE: Module runs in stash but not on console

      @cvp there is no script with the functionality of the module invoked in the stash command line. The is a module with sub modules, including init

      Without understanding the answer to my original question, I did discover a workaround. If I import a submodule from the main module, I can reproduce expected output by directly calling some of the included functions. I am just surprised that this is so different than simply invoking the main module in stash.

      posted in Pythonista
      djl
      djl
    • RE: Module runs in stash but not on console

      @cvp thank you for your help, but my original question dealt with the python console command line, not from within a script. If one runs the module itself using the long_press method, it starts the init script and added arguments do nothing. I am just trying to replicate what happens so easily in stash, in the normal Pythonista framework, and I'm not getting anywhere.

      posted in Pythonista
      djl
      djl
    • RE: Module runs in stash but not on console

      @bennr01

      I tried long press to run arguments in a script, and it didn't work. I don't see such an option when using the console command line. I checked python versions and also paths in the console and in stash -- they are the same.

      posted in Pythonista
      djl
      djl
    • Module runs in stash but not on console

      I am trying to understand the use of modules in stash and on the python console. I have a module that runs perfectly in stash with a command like:

      Module_name -s d blabla
      

      "-s d blabla" are necessary arguments in this example . I cannot figure out how to do the same thing from the Pythonista console. I can import the module, but any way I try to add the arguments, I get the error:

      SyntaxError: invalid syntax
      
      posted in Pythonista
      djl
      djl