Problem running piecash
I did a pip install piecash (it's a python interface to GnuCash) . I had to add a couple of dependencies using pip that showed up when I did import piecash. Now I get the following:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/site-packages-2/piecash/init.py", line 15, in <module>
from .core import (
File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/site-packages-2/piecash/core/init.py", line 1, in <module>
from .session import create_book, open_book, Version
File "/private/var/mobile/Containers/Shared/AppGroup/05D14C00-CCAC-4E98-A3CC-96C6944B8534/Pythonista3/Documents/site-packages-2/piecash/core/session.py", line 11, in <module>
from piecash.core import factories
ImportError: cannot import name factories```
Here you are installing into site-packages-2 but piecash no longer supports legacy Python.
python interface to GnuCash
Is GnuCash pure Python? https://github.com/Gnucash looks to be ~75% C code.
Not running GnuCash, just piecash which is an interface to the GnuCash SQLite dB. Will try with Python 3. Since pip does not run under Python 3, what is the best way to install piecash? Just move things from site packages 2 to 3?
@ihf, I would take the zip from piecash Github and expand it to sitepackages.
Does factories.py actually exist under piecash/core?
It is probably also a good idea to force quit Pythonista.