• victordomingos

    If it comes with same same kind of performance improvement I saw in desktop systems, I also can’t wait for it. One of my applications saw a breathtaking 50 to 100% improvement. In other applications there is no to little difference, but in some contexts it is really noticeable.

    posted in Pythonista read more
  • victordomingos

    This other conversation may bring additional insight about the performance question:

    https://forum.omz-software.com/topic/1025/python-benchmarking/14

    A first generation iPad mini should have a performance comparable with iPad 2, as it has the same processor and amount to memory. I have an old iPad 2, I can say that Pythonista is not nearly as fast as in my iPhone 7, but it works for simple tasks and for reading documentation.

    posted in Pythonista read more
  • victordomingos

    Over the last 12 years, I have been blogging almost uninterruptedly about different subjects (mostly on tech stuff), on different platforms and using a variety of devices and applications. First on desktop and laptop computers, and more recently from iPhone and iPad. This year I went on to try something new and decided to create this blog based on Pelican, a static site generator made with Python. And I got the whole process working even from my iPhone, which has become, arguably, my main personal computer.

    So, how do I publish new content to this blog from my iPhone, using 4 taps or voice commands?

    https://bit.ly/2Nc9Lc4

    posted in Pythonista read more
  • victordomingos

    This worked. Thanks!

    posted in Pythonista read more
  • victordomingos

    Last time I tried to install StaSh for Python 3 it didn’t go very well. I seemed to be in an early development stage. And apparently it still doesn’t work, at least to me. I just downloaded and installed that version:

    Traceback (most recent call last):
      File "/private/var/mobile/Containers/Shared/AppGroup/F3C0E711-6D38-4FDF-81F2-DC3B97E4E9F1/Pythonista3/Documents/launch_stash.py", line 31, in <module>
        from stash import stash
      File "/private/var/mobile/Containers/Shared/AppGroup/F3C0E711-6D38-4FDF-81F2-DC3B97E4E9F1/Pythonista3/Documents/site-packages/stash/stash.py", line 25, in <module>
        from .system.shcommon import IN_PYTHONISTA, ON_IPAD
      File "/private/var/mobile/Containers/Shared/AppGroup/F3C0E711-6D38-4FDF-81F2-DC3B97E4E9F1/Pythonista3/Documents/site-packages/stash/system/shcommon.py", line 50, in <module>
        import _outputcapture
    ModuleNotFoundError: No module named '_outputcapture'
    

    posted in Pythonista read more
  • victordomingos

    We removed the f-string from setup.py, but now the default check for Python version again gets stuck because of StaSh not supporting Python 3.6. 😕

    [~/Documents]$ pip install victordomingos/Count-files
    Working on GitHub repository ...
    Opening: https://github.com/victordomingos/Count-files/archive/master.zip
    Save as: /private/var/mobile/Containers/Data/Application/42E7AC0F-227A-43B8-BA4C-BEE6B30E9330/tmp//master.zip 
        156933
    Extracting archive file ...
    Running setup file ...
    Unsupported Python version: 2.7. Python 3.6 or later is required.
    

    posted in Pythonista read more
  • victordomingos

    In this case, setup.py should create an endpoint script in StaSh’s path. That endpoint script was the runnable script. Is there any other way to make it create that file?

    posted in Pythonista read more
  • victordomingos

    Unfortunately, we have run into problems again. The method of pip installing directly from GitHub was working OK, but some of the recent changes in setup.py seem to have broken compatibility with Pythonista. Now I get this error:

    [Count-files_4]$ cd ~/Documents/
    [~/Documents]$ pip install victordomingos/Count-files
    Working on GitHub repository ...
    Opening: https://github.com/victordomingos/Count-files/archive/master.zip
    Save as: /private/var/mobile/Containers/Data/Application/42E7AC0F-227A-43B8-BA4C-BEE6B30E9330/tmp//master.zip (156922 bytes)
        156922  [100.00%]
    Extracting archive file ...
    Running setup file ...
    SyntaxError('invalid syntax', ('/private/var/mobile/Containers/Data/Application/42E7AC0F-227A-43B8-BA4C-BEE6B30E9330/tmp/518fc4bef99942178e4acfbf283d866b/Count-files-master/setup.py', 15, 103, '    sys.stderr.write(f"Unsupported Python version: {sys.version_info.major}.{sys.version_info.minor}. "\n'))
    Failed to run setup.py
    Fall back to directory guessing ...
    Error: Cannot locate packages. Manual installation required.
    

    Maybe it has something to do with the lack of support for Python 3 in StaSh. We will try to remove that f-string and see if it solves the problem.

    Meanwhile, is there any other way to manually install a package like this, which does automatically the creation of an endpoint (which usually goes into stash_extensions/bin)?

    posted in Pythonista read more
  • victordomingos

    @omz I know that Pythonista works with Working Copy, yet I am still not convinced that it is a good enough solution.

    In my opinion, an up to date StaSh fully compatible with Python 3 and preferably integrated in Pythonista itself, an integrated and more stable git command (or even a visual git interface) and proper pip package management would be great additions to this wonderful app.

    We currently have some powerful tools, but some of them don’t work well with each other. We can use StaSh to pip install some packages, but it’s a bit cumbersome as there are frequently cryptic messages that a less knowledgeable user may not understand that they mean those are not compatible with Pythonista. We can use working copy for git, but then we can’t use StaSh to manage those files and run scripts without going back to the side panels...

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!