After several attempts, I managed to get the python interface on the
next branch built and installed on an Ubuntu 11.04 system. However,
when I attempt to access anything in the ledger python module, I get
an AttributeError. For whatever reason, it appears the various
submodules aren't being installed correctly:
$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ledger
>>> dir(ledger)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__']
>>> ledger.Journal
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Journal'
>>> quit()
$ python python/demo.py
Welcome to the Ledger.Python demo!
Traceback (most recent call last):
File "python/demo.py", line 53, in <module>
comms = ledger.commodities
AttributeError: 'module' object has no attribute 'commodities'
$
Even the provided demo.py script isn't running correctly.
What's the status of the Python interface? Is this a known problem?
What other information would be useful?
-Hyrum