Forum Archive

StaSH broken in 3.0 beta

polymerchm

Install newest Pythonista 3 beta. Tried to launch stash

Traceback (most recent call last):
  File "/private/var/mobile/Containers/Shared/AppGroup/38854C0E-40E2-4F48-A845-2E877292183C/Pythonista3/Documents/launch_stash.py", line 28, in <module>
    from stash import stash
  File "/private/var/mobile/Containers/Shared/AppGroup/38854C0E-40E2-4F48-A845-2E877292183C/Pythonista3/Documents/site-packages/stash/stash.py", line 20, in <module>
    from system.shcommon import IN_PYTHONISTA, ON_IPAD
  File "/private/var/mobile/Containers/Shared/AppGroup/38854C0E-40E2-4F48-A845-2E877292183C/Pythonista3/Documents/site-packages/stash/system/shcommon.py", line 42, in <module>
    import _outputcapture
ImportError: No module named _outputcapture

Simple solution?

JonB

Are you running thr latest stash? I thought we fixed this one a few betas back...

polymerchm

Just came back on the beta scene. And updated Stash. Now it works fine. Thx.

Tizzy

I hadn't used stash in a while as well, trying to launch it made this:

Traceback (most recent call last):
  File "/private/var/mobile/Containers/Shared/AppGroup/FC7E6E85-01F7-47E5-861F-A7ACA8D91116/Pythonista3/Documents/launch_stash.py", line 28, in <module>
    from stash import stash
  File "/private/var/mobile/Containers/Shared/AppGroup/FC7E6E85-01F7-47E5-861F-A7ACA8D91116/Pythonista3/Documents/site-packages/stash/stash.py", line 20, in <module>
    from system.shcommon import IN_PYTHONISTA, ON_IPAD
  File "/private/var/mobile/Containers/Shared/AppGroup/FC7E6E85-01F7-47E5-861F-A7ACA8D91116/Pythonista3/Documents/site-packages/stash/system/shcommon.py", line 29, in <module>
    'Frameworks/PythonistaKit.framework/PythonistaKit')
  File "/var/containers/Bundle/Application/32DB935B-D704-4D48-BBE9-99A076A0D0AB/Pythonista3.app/Frameworks/Py2Kit.framework/pylib/ctypes/__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/var/containers/Bundle/Application/32DB935B-D704-4D48-BBE9-99A076A0D0AB/Pythonista3.app/Frameworks/PythonistaKit.framework/PythonistaKit, 6): image not found

Pythonista 301012 beta.

omz

@Tizzy From the traceback, it looks like this is an issue that was recently fixed by @JonB – see this commit: https://github.com/ywangd/stash/commit/91a7487952a1662caf18f87442ebdaa99036e450

StaSh seems to look for a "PythonistaKit" framework that I've renamed to "Py2Kit" in recent betas.