omz:forum

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

    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 2
    • Followers 0
    • Topics 3
    • Posts 11
    • Best 1
    • Controversial 0
    • Groups 0

    deloriel42

    @deloriel42

    1
    Reputation
    1235
    Profile views
    11
    Posts
    0
    Followers
    2
    Following
    Joined Last Online

    deloriel42 Unfollow Follow

    Best posts made by deloriel42

    • new syntax highlighting for Asciidoc?

      Dear Ole,
      Thanks for your great Applications.
      I really like your software.

      As a software engineer I can really appreciate how much work it is to get such a super application with the great ecosystem

      In my personal and professional life I am discovering Asciidoc as a great replacement for markdown and would really like to see it in more apps like draft. Would it be possible to add a good 20/80 syntax highlighting for such a language?

      Sincerely
      Felix

      posted in Editorial
      deloriel42
      deloriel42

    Latest posts made by deloriel42

    • RE: weird import error in pptx (python-pptg)

      . Is there a repository or a list about unsupported modules in Pythonista?

      So it seems that I have to switch to Pyto for that task. Strange but OK.

      @JonB 1000 thanks

      posted in Pythonista
      deloriel42
      deloriel42
    • RE: weird import error in pptx (python-pptg)

      Ok, that helped a little.
      I checked and there are no pptx scripts

      Restarting Pythonista changes the error to lxml module (I am still looking for that...)

      Traceback (most recent call last):
        File "/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents/2020-10/test.py", line 1, in <module>
          from pptx import Presentation
        File "/private/var/mobile/Containers/Shared/AppGroup/CB775338-75D0-4D40-BCA3-F31D6F8FFE4C/Pythonista3/Documents/site-packages-3/pptx/__init__.py", line 14, in <module>
          from pptx.api import Presentation  # noqa
        File "/private/var/mobile/Containers/Shared/AppGroup/CB775338-75D0-4D40-BCA3-F31D6F8FFE4C/Pythonista3/Documents/site-packages-3/pptx/api.py", line 15, in <module>
          from .package import Package
        File "/private/var/mobile/Containers/Shared/AppGroup/CB775338-75D0-4D40-BCA3-F31D6F8FFE4C/Pythonista3/Documents/site-packages-3/pptx/package.py", line 11, in <module>
          from .opc.package import OpcPackage
        File "/private/var/mobile/Containers/Shared/AppGroup/CB775338-75D0-4D40-BCA3-F31D6F8FFE4C/Pythonista3/Documents/site-packages-3/pptx/opc/package.py", line 13, in <module>
          from .oxml import CT_Relationships, serialize_part_xml
        File "/private/var/mobile/Containers/Shared/AppGroup/CB775338-75D0-4D40-BCA3-F31D6F8FFE4C/Pythonista3/Documents/site-packages-3/pptx/opc/oxml.py", line 12, in <module>
          from lxml import etree
      ImportError: cannot import name 'etree'
      

      After second call it’s the former error again.

      posted in Pythonista
      deloriel42
      deloriel42
    • weird import error in pptx (python-pptg)

      after finding the right way to install py3 libraries with stash properly, I am still running in this weird import error in the python-pptx library

      Traceback (most recent call last):
        File "/private/var/mobile/Containers/Shared/AppGroup/D1B77FF7-7126-4C9B-B6FC-0470A3A25828/File Provider Storage/Repositories/md2pptx/md2pptx.py", line 15, in <module>
          from pptx import Presentation
        File "/private/var/mobile/Containers/Shared/AppGroup/CB775338-75D0-4D40-BCA3-F31D6F8FFE4C/Pythonista3/Documents/site-packages-3/pptx/__init__.py", line 8, in <module>
          import pptx.exc as exceptions
      AttributeError: module 'pptx' has no attribute 'exc'
      

      But in fact it has a exc.py in the pptx folder.

      Am I missing something?
      Help would be appreciated..

      posted in Pythonista
      deloriel42
      deloriel42
    • RE: Stash, PIP and versions

      Sorry if I forgot that there is a obvious place for a manual. I am through the github readme of stash
      and found

      pip.py - Search, download, install, update and uninstall pure Python packages from PyPI
      

      This does not say anything about the inner working of pip with the two interpreters.

      But it was a nice read.

      The issue described by problem but did not really solve it.

      The ‘not everything runs’ is not very helpful to understand what would run (the issue flags git as a py2 only but still says nothing about pip)

      Thanks a lot for the other replies they help me better to act. The launch_stash3.py would be my choice.

      Thanks again!

      posted in Pythonista
      deloriel42
      deloriel42
    • Stash, PIP and versions

      Hi Pythonistas,

      I have a comprehensive question to the inner workings of stash related to the double interpreter (Python 2.x and Python 3.x)

      stash allows me to pip install. How do I tell it which version of python to use? (I was looking for a pip3 command but did not find it)

      the question gets mor complex. Stash wants to be launched in python 2.7. How would that impact the Python 3 package installation with pip.

      The source of my question is the wonderful ‘python-pptx’ module. I can not install it in Pythonista though I am sure (and can show you) that it runs under a Python 3.x environment on iOS. The problems that are popping up are completely Py2to3 issues that look like a misplaced library (site-packages) which brings me back to pip and stash.

      Would be great to find out the reason and solve it. Because I want to promote the script in other forums with both Python Apps available (Pythonista and the other one that shall not be named ...)

      Cheers
      Andreas

      posted in Pythonista
      deloriel42
      deloriel42
    • new syntax highlighting for Asciidoc?

      Dear Ole,
      Thanks for your great Applications.
      I really like your software.

      As a software engineer I can really appreciate how much work it is to get such a super application with the great ecosystem

      In my personal and professional life I am discovering Asciidoc as a great replacement for markdown and would really like to see it in more apps like draft. Would it be possible to add a good 20/80 syntax highlighting for such a language?

      Sincerely
      Felix

      posted in Editorial
      deloriel42
      deloriel42
    • RE: How to get a "text" file from iCloud Drive

      two possibilitie improvements:

      • use (new) magic variables in workflow wFlow
      • pass json object to pythonista
      posted in Pythonista
      deloriel42
      deloriel42
    • RE: How to get a "text" file from iCloud Drive

      good idea, did you post that scripts on github?

      posted in Pythonista
      deloriel42
      deloriel42
    • RE: Calendar View/Date Picker Calendar Style

      I only know about iCal/ics parser modules.
      No direct calender access to iOS.

      there is a calender module able to generate HTML output. that might help if you can hook it up with your iCal account/service.
      That might be any Google, Exchange or iCloud based service .

      BUT no Integration like that Reminders or contacts. Maybe upcoming?

      posted in Pythonista
      deloriel42
      deloriel42
    • RE: How to use local image?

      Yes affirmed, that works.
      Is there a workflow that supports PDF export with those images?
      The preview shows all images, but in the PDF they are not included.

      posted in Editorial
      deloriel42
      deloriel42