@cvp OK, that worked except Pythonista is crashing at startup. I started in safe mode and I can run the script but can’t start a new outline. If I select New, nothing changes. If I restart Pythonista sometimes the script can be run and sometimes Pythonista crashes and I have to repeat the process but even when the script runs it isn’t working. I understand if you would rather not return to thinking about this after this long a hiatus.
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.
Posts made by ihf
-
RE: Outliner with drag/drop reordering - part 2
-
RE: Outliner with drag/drop reordering - part 2
@cvp I think I have it working on my iPad (it fails on the Mac) but I am getting this message:
Pythonista not authorized to access calendars. Run once Pythonista with argument grant_access_to_calendar and be sure there is a calendar named “Outline”.
I still have that calendar but how do I run Pythonista with this parameter? -
RE: Outliner with drag/drop reordering - part 2
@cvp Thanks! That got me this far:
Traceback (most recent call last):
File "/Users/ihf/Library/Group Containers/group.pythonista/Pythonista3/Documents/outliner.py", line 127, in <module>
load_framework('EventKitUI')
File "/var/folders/y2/38gkkc0s7d52_mr_s6zfj7m80000gq/X/39F898D0-35D5-525D-AE08-9F73AF9E1A9F/d/Wrapper/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pythonista/objc_util.py", line 934, in load_framework
return NSBundle.bundleWithPath_('/System/Library/Frameworks/%s.framework' % (name,)).load()
AttributeError: 'NoneType' object has no attribute 'load' -
RE: Outliner with drag/drop reordering - part 2
@cvp I wish I knew. I have some Dropbox backups but nothing very recent. I may also have an older iPad which I could not upgrade that may have it but I thought I'd ask. Your Outline script is still the only mobile app I've seen that has these features.
-
RE: Outliner with drag/drop reordering - part 2
@cvp trying again to see if I can get this to work. I lost virtually all of my scripts during an update. Can you point me to the lsaet (working) version of the script?
-
Copying files from device to device
Since I deleted Pythonista and lost the files on my old iPad, I am wondering if there is an easy way to move a large group of files from another iPad to the one I wiped? (no, I don't have any usable, recent backups).
-
Stash fails
Out of sheer frustration over the fact that virtually everything I seemed to be trying to run under the new beta was failing, I did something rather extreme, I deleted the app along with every one of my files. So much for the last several years. In any case, with a freshly installed beta (34009) I decided to install stash. When I tried to run it, I got the following:
Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/EC9901B7-3759-4973-93A6-1A0D17CC60A9/Pythonista3/Documents/launch_stash.py", line 28, in <module> from stash import stash File "/private/var/mobile/Containers/Shared/AppGroup/EC9901B7-3759-4973-93A6-1A0D17CC60A9/Pythonista3/Documents/site-packages/stash/__init__.py", line 2, in <module> from . import core as stash File "/private/var/mobile/Containers/Shared/AppGroup/EC9901B7-3759-4973-93A6-1A0D17CC60A9/Pythonista3/Documents/site-packages/stash/core.py", line 23, in <module> from .system.shcommon import (_EXTERNAL_DIRS, _STASH_CONFIG_FILES, _STASH_ROOT, _SYS_STDOUT, IN_PYTHONISTA, ON_IPAD) File "/private/var/mobile/Containers/Shared/AppGroup/EC9901B7-3759-4973-93A6-1A0D17CC60A9/Pythonista3/Documents/site-packages/stash/system/shcommon.py", line 20, in <module> _properties = plistlib.readPlist(os.path.join(os.path.dirname(sys.executable), 'Info.plist')) AttributeError: module 'plistlib' has no attribute 'readPlist'
-
RE: SCP and transferring files
@cvp thanks so much! Both the script from the share sheet as well as the import function (which I never even thought to try) worked with Nextcloud
-
RE: SCP and transferring files
@cvp Yes, that does work although for some reason some of the directories on my Nextcloud instance are showing as empty when they are not. However, that's not a Pythonista issue. Am I correct that this transfer from Files app to Pythonista can only be done directly on an iPad running in split view or is there a way to do it on the iPhone?
-
RE: SCP and transferring files
@cvp Thanks for your help. I finally got it to work.I used the Files app to copy files from Nextcloud to iCloud and then use Files app to move them from iCloud to Pythonista space.
-
RE: SCP and transferring files
The file is a .db file. I knew about the search capability, and that’s how I have been confirming that it is not been copied over.
-
RE: SCP and transferring files
@cvp Yes, the script will move the file. However, when I do a split view on the iPad and try to drag a file, it shows the + but nothing is actually copied to Pythonista.
-
RE: SCP and transferring files
@cvp OK, I can do that within the script, but I take it there is no way within the UI to copy a folder or file from the external to the local?
-
RE: SCP and transferring files
@cvp that must be the problem. I am getting to the file/folder via Nextcloud. From what you were saying, I can’t do that. I can move the files I need to iCloud from Nextcloud. I can then open iCloud as an external folder, but how do I then get the files I want to use with my script to the location that contains the script?
-
RE: SCP and transferring files
@cvp I go to external files , Open…, Folder…, select “Secure Term”, navigate to the folder with the files of interest, click open and I get
Error, The file “xyx” could not be loaded. If I instead select Open… File, I see fh efile which is dimmed and I don’t see a way to bring it into Pythonista. -
RE: SCP and transferring files
@cvp thank you. I tried that and when I get to the file that I’m interested in bringing over to pythonista it is grayed out (it is a .db file). If I long press it I get the option ro download which it appears to do but how do I now move it to pythonista as it does not appear in the file list. Also, if I open an external .py file in the editor, how do I add it to the iPad files since it seems to go away if I close and re-open Pythonista.
-
SCP and transferring files
I wanted to transfer some files to be used with Pythonista and I tried my old scp script (also the ope in Stash) and I'm getting an error about asbytes in paramiko. It's possible my paramiko is corrupted. Is this working for others?
Also, is there a way to use the Files app to get files and make them accessible to Pythonista?
-
RE: PyKeys
@cvp it’s interesting. One minute the repl function works and the next minute it doesn’t. it’s probably not worth putting more effort into. as always, thanks for your help.
-
RE: PyKeys
@cvp I got it working again however, I’m having a problem if I try to enter a second line to Repl. It could be I’m not using this the correct way, but here’s an example.
import os
os.listdir()
SyntaxError: multiple statements found while compiling a single statement (<string>, line 1)