omz:forum

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

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

    WyldKard

    @WyldKard

    8
    Reputation
    1487
    Profile views
    27
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    WyldKard Unfollow Follow

    Best posts made by WyldKard

    • [Req] iCloud for doc sync

      I like and use Dropbox, but it would be nice to have an iCloud document sync method in addition to the current Dropbox support. I consider iCloud more secure than Dropbox privacy-wise, and being able to keep documents synced across iPhone/iPad without having to rely on Dropbox would be nice to have, IMO.

      posted in Editorial
      WyldKard
      WyldKard

    Latest posts made by WyldKard

    • RE: Pythonista 3 3.4 (340006) beta: Paramiko exception about PY_SSIZE_T_CLEAN macro

      @JonB Yep, I reported it before posting here. Just wanted to increase visibility.

      posted in Pythonista
      WyldKard
      WyldKard
    • Pythonista 3 3.4 (340006) beta: Paramiko exception about PY_SSIZE_T_CLEAN macro

      Installed the new beta, and ran a script that worked fine under the AppStore version. Some quick searching suggests this relates to the Python 3.10. Anyone know how to fix?

      Unknown exception: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
      Traceback (most recent call last):
      File "/var/containers/Bundle/Application/31EBC43E-A8F2-4AD7-93EC-0403F990B57B/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/paramiko/transport.py", line 1799, in run
      self.kex_engine.parse_next(ptype, m)
      File "/var/containers/Bundle/Application/31EBC43E-A8F2-4AD7-93EC-0403F990B57B/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/paramiko/kex_gex.py", line 89, in parse_next
      return self._parse_kexdh_gex_reply(m)
      File "/var/containers/Bundle/Application/31EBC43E-A8F2-4AD7-93EC-0403F990B57B/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/paramiko/kex_gex.py", line 246, in _parse_kexdh_gex_reply
      self.transport._activate_outbound()
      File "/var/containers/Bundle/Application/31EBC43E-A8F2-4AD7-93EC-0403F990B57B/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/paramiko/transport.py", line 2136, in _activate_outbound
      engine = self._get_cipher(self.local_cipher, key_out, IV_out)
      File "/var/containers/Bundle/Application/31EBC43E-A8F2-4AD7-93EC-0403F990B57B/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/paramiko/transport.py", line 1667, in _get_cipher
      return self._cipher_info[name]['class'].new(key, self._cipher_info[name]['mode'], '', counter)
      File "/var/containers/Bundle/Application/31EBC43E-A8F2-4AD7-93EC-0403F990B57B/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/Crypto/Cipher/AES.py", line 96, in new
      return AESCipher(key, *args, **kwargs)
      File "/var/containers/Bundle/Application/31EBC43E-A8F2-4AD7-93EC-0403F990B57B/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/Crypto/Cipher/AES.py", line 60, in init
      blockalgo.BlockAlgo.init(self, _AES, key, *args, **kwargs)
      File "/var/containers/Bundle/Application/31EBC43E-A8F2-4AD7-93EC-0403F990B57B/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/Crypto/Cipher/blockalgo.py", line 142, in init
      self._cipher = factory.new(key, *args, **kwargs)
      SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

      posted in Pythonista
      WyldKard
      WyldKard
    • Canvas alternative for use outside Pythonista?

      I’m using Pythonista’s built-in canvas library to draw 2D vector images for a script of mine, but would now like to run my script on a Raspberry Pi or microcontroller. Since canvas is Pythonista-only, I’m wondering if anyone knows how to either export the canvas library for use on other devices, or knows of a good alternative. I already tried Pillow, but since it’s not vector-based, the images it produces do not look as good as what canvas produces.

      I mostly just need the ability to draw lines, shapes, and text, and then save the produced image as a png.

      posted in Pythonista
      WyldKard
      WyldKard
    • Bug: Shortcuts crashes when adding "Run Script"

      Since updating to iOS 15, Shortcuts crashes when I try to add Pythonista's "Run Script" action. A reboot of the device did not fix the problem.

      posted in Pythonista
      WyldKard
      WyldKard
    • RE: Check if script is executed within Pythonista

      If you're only looking to determine which OS you're on (and not whether you're in the Pythonista IDE specifically), you can do that with:

      from sys import platform
      
      print(platform)
      

      If you're on iPhone/iPad, platform should be "iOS". If you're on macOS, you should get "darwin". Windows should be "win32" I believe.

      posted in Pythonista
      WyldKard
      WyldKard
    • [Req] iCloud for doc sync

      I like and use Dropbox, but it would be nice to have an iCloud document sync method in addition to the current Dropbox support. I consider iCloud more secure than Dropbox privacy-wise, and being able to keep documents synced across iPhone/iPad without having to rely on Dropbox would be nice to have, IMO.

      posted in Editorial
      WyldKard
      WyldKard
    • RE: Would it be possible to use editorial to make a static site generator

      Yes, it's absolutely possible - I've done it. My initial attempt consisted of several workflows - one for posting a new blog post, one for generating the index.html and RSS page, one for removing a post, etc. I ran this for a few months before taking the site down. My scripts were based around uploading the HTML files to an FTP site. If you're interested, I can see about condensing the workflows into something more singular, and share what I have.

      posted in Editorial
      WyldKard
      WyldKard
    • Take action on an empty file?

      In short, I'm trying to set a file's contents based on whether or not the file already exists. If it doesn't exist, I'd like to populate it with a header. If it does exist, I'd like to append information to the file.

      I'm grabbing the contents of the requested filename with Get File Contents, and storing the result in a variable called "oldcontent". I then set up an if/then block to set the file contents if oldcontent is empty (i.e. the filename I requested doesn't exist). In my if/then, I'm leaving the "is Equal to" block blank, but this doesn't seem to work. Is there another way?

      posted in Editorial
      WyldKard
      WyldKard
    • RE: Some thoughts on why Pythonista is 2-3x more popular than Editorial

      @jonmoore - Just out of curiosity, but what prompted this post? Is @omz not happy with the sales of Editorial to date?

      I'm not surprised Pythonista is selling better. Those who want to tinker in Python are more likely to do it in a more general-purpose app. Editorial is aimed at text/document manipulation, and most people who write don't even do it in Markdown, so it's naturally difficult for a plaintext writing app to dominate the "writing app" space.

      @MartinPacker - Arguably, any workflow in the workflow directory could be included by default. I just don't know that it's necessary, given that users can just search there directly. Perhaps a better in-app method of accessing the workflow directory would help, though.

      posted in Editorial
      WyldKard
      WyldKard
    • Using Editorial as wiki.

      Over the years, I've found apps like VoodooPad and Trunk Notes rather useful for certain projects, in that being able to link to related internal documents easily makes for a great organizational tool. Some projects are so perfect for the personal wiki format that it's difficult to restructure them in other apps, since you lose so much value.

      Unfortunately, VoodooPad on iOS is too barebones to use alone, as you lose out on much of the power that VoodooPad's desktop version offers (e.g. scripting). Trunk Notes is great because it uses plaintext files and actually has Lua scripting built in, but the app has several other quirks that make me wish I could use Editorial instead.

      I don't expect Editorial to ever support rich media as it's a text tool, but it would be awesome if Ole allowed Editorial users to reference internal documents in an easier fashion, ala Wiki Links. Right now, you can reference other internal documents using a Markdown link to the editorial "open" URL scheme, but the link is ugly due to length. If you preview the file in Editorial, the link is hidden, but when you click the link you're not taken to the preview screen, so the destination file will again show ugly links.

      Is there a way to open a document in the preview window using the URL scheme? Or does anyone have any other ideas on how to use Editorial as a personal wiki - perhaps some innovative Workflow ideas?

      posted in Editorial
      WyldKard
      WyldKard