• ihf

    @cvp I guess it is worth testing to see what happens when the DataJar app is running already and when it is not.

    posted in Pythonista read more
  • ihf

    @cvp In answer to your last question first, YES, I am still using outline. As far as freezing, it seems pretty stable since I commented out the lines related to the Shortcut and DataJar. Of course, I haven't tried to put them back to see if the freezing returns but it is a decent assumption that that was (at least one) cause of the problems I was seeing.

    posted in Pythonista read more
  • ihf

    I am back to trying to get piecash to work with Pythonista. I can install piecash but if I try to open a mysql based Gnucash file. I get an error about MySQLdb module not found. If I try to install MySQLclient (which I believe has that module), I get:

    [~/Documents]$ pip install mysqlclient
    Querying PyPI ... 
    Downloading package ...
    Opening: https://files.pythonhosted.org/packages/de/79/d02be3cb942afda6c99ca207858847572e38146eb73a7c4bfe3bdf154626/mysqlclient-2.1.0.tar.gz
    
    Save as: /private/var/mobile/Containers/Data/Application/5CF6F970-CA4A-42FF-B937-D741C4282F1E/tmp//mysqlclient-2.1.0.tar.gz (87635 bytes)
    [====================] 100.00% | 85.6KiB          
    Extracting archive file ...
    Archive extracted.
    Running setup file ...
    mysql_config --version
    mariadb_config --version
    mysql_config --libs
    PermissionError(1, 'Operation not permitted')
    Failed to run setup.py
    Fall back to directory guessing ...
    Error: Cannot locate packages. Manual installation required.
    [~/Documents]$ pip install mysqldb
    Querying PyPI ... 
    Error: Failed to fetch package release urls```

    posted in Pythonista read more
  • ihf

    @cvp I commented those lines out. I'll let you know if it helps.

    posted in Pythonista read more
  • ihf

    @cvp I am wondering if the frequent freeze up is somehow related to the code that was added for Shortcuts syncing? Perhaps it would be worth trying to turn that off and see if the problem goes away.

    posted in Pythonista read more
  • ihf

    @cvp After doing a delete with children the app freezes.

    posted in Pythonista read more
  • ihf

    @cvp Most importantly, get some rest! As to continuing with Pythonista or switching to Pyto, that is a tough call. As least to date my experience with Pyto has not been good. It fails more frequently than Pythonista. Of course, given some degree of continuing support there is hope that it will eventually be more reliable than Pythonista, which gets no support. I suppose if you are interested in making the transition to Pyto for your projects more generally, then Outline is a good way to do it since you already have the feature-set, logic, and most of the code. If you are asking whether I would like to continue using Outline for the foreseeable future, the answer is yes.

    posted in Pythonista read more
  • ihf

    @cvp i’m so sorry to hear that. I hope you have a very mild case. Best wishes for a speedy recovery.

    posted in Pythonista read more
  • ihf

    @cvp I hope that you enjoyed (or are still enjoying) your vacation. Unfortunately, the script is freezing rather frequently now. I’m not even sure what a minimal failing case is. I thought it was when I tried to delete an empty last item but I have seen it freeze at other times as well. I know this is not what you wanted to hear.

    posted in Pythonista read more
  • ihf

    @cvp It appears to be working now.

    posted in Pythonista read more
  • ihf

    @cvp I am using the latest version which is running the shortcut properly. I have an outline with a blank item at the end and if I try to delete it through the menu “delete with children” it hangs the program.

    posted in Pythonista read more
  • ihf

    @cvp many times over :-)

    posted in Pythonista read more
  • ihf

    @cvp It works! Thank you!

    posted in Pythonista read more
  • ihf

    @cvp What happens if you have a key in Data Jar that in turn has a value of a dictionary and the key values in the dictionary are the Outline names with their content. Then the shortcut to get a value based on key from Data Jar would get you the dictionary and the shortcut to get values from a dictionary would get you the outline text. Would that work?

    posted in Pythonista read more
  • ihf

    @cvp Sorry about the traceback, I first got a Pythonista error but restarting it cleared it. In regard to Data Jar, I believe that the Outlines could be one key and that key can have values such as lists or dictionaries. The dictionary (or list) could presumably hold each separate outline. However, a bigger problem is that the modified outline has yet to show up on the Watch (it shows up on 2 iPads so it must be on iCloud).

    posted in Pythonista read more
  • ihf

    @cvp I ran Outline and saved a modified outline. The script ran the Shortcut and hung Shortcuts and after a minute or 2 crashed Shortcuts. I found that the Data Jar beta had expired so I reinstalled it and verified it works and that my outlines are there.
    However, when I run the Outlines as DataJar, the newly modified Outline is not present (even after several minutes). I guess it takes awhile for it to show up? Also, the Shortcut lists all my Data Jar contents, not just the outlines.

    Traceback (most recent call last):
    File "/private/var/mobile/Containers/Shared/AppGroup/228D1F3E-E592-4896-BBF5-D6EA74943D0D/Pythonista3/Documents/outline.py", line 3321, in tableview_cell_for_row
    v = MyInputAccessoryView(row)
    File "/private/var/mobile/Containers/Shared/AppGroup/228D1F3E-E592-4896-BBF5-D6EA74943D0D/Pythonista3/Documents/outline.py", line 503, in init
    self.width = mv.get_screen_size()[0] # width of keyboard = screen
    File "/private/var/mobile/Containers/Shared/AppGroup/228D1F3E-E592-4896-BBF5-D6EA74943D0D/Pythonista3/Documents/outline.py", line 1168, in get_screen_size
    for window in UIApplication.sharedApplication().windows():
    File "/var/containers/Bundle/Application/F461CDE3-9B4B-426C-8867-7562C21CF685/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/objc_util.py", line 801, in call
    ordered_args = list(args) + [kwargs[key] for key in kwarg_order]
    TypeError: 'builtin_function_or_method' object is not iterable

    posted in Pythonista read more
  • ihf

    @cvp The Shortcuts worked as expected.

    posted in Pythonista read more
  • ihf

    @cvp I think that using Data Jar is preferable . You asked ifI share all of my contacts. I try not to but many platforms ask you to and it would be easy to slip. I presume that there is no way for Pythonista to write a file into the iCloud/DataJar folder thereby obviating the need for a shortcut to be run each time an Outline is changed?

    posted in Pythonista read more
  • ihf

    @cvp yes, the Calendar is better except that it doesn’t work.

    posted in Pythonista read more
  • ihf

    @cvp The way I imagine it (which may not necessarily be the best way) is for each Outline to be a key value pair in Data Jar. A key being the outline name And the value being its content.

    posted in Pythonista read more
Internal error.

Oops! Looks like something went wrong!