Still doesn't work.. but forgot to mention that I am using Python 2.7.3 On Monday, June 17, 2013 10:01:30 PM UTC-7, c b wrote: > > Thanks Martin, > > I tried updating and exporting PYTHONPATH too. It doesn't work, either. > > Here's what I get > > >>> import ledger > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named ledger > >>> exit > > > On Monday, June 17, 2013 9:54:21 PM UTC-7, Martin Blais wrote: >> >> It's PYTHONPATH not PYTHON_PATH. >> >> >> On Tue, Jun 18, 2013, at 0:52, c b wrote: >> > Hi John, >> > Thanks for your response. >> > >> > I did a "make install" and see the following files installed in my >> prefix >> > location (/opt/local) >> > >> > /opt/local >> > /bin/ledger >> > /include/ledger/<a bunch of header files> >> > /lib/libledger.a >> > /share >> > /doc >> > /man >> > >> > I tried including /opt/local/lib/ into PYTHON_PATH, but couldn't do an >> 'import >> > ledger' in python >> > >> > Does that look right? >> > >> > Thanks, >> > cb >> > >> > On Monday, June 17, 2013 3:40:46 PM UTC-7, John Wiegley wrote: >> > > >> > > >>>>> Martin Blais <[email protected] <javascript:>> writes: >> > > >> > > > Is there any specific reason that ledger can't be built as a Python >> > > > extension module? Something specific at static initialization? >> > > >> > > Ledger *does* build as Python module, but until you "make install", >> you >> > > can >> > > just do a Python import. That's why I added the "python" subcommand >> to >> > > Ledger: so that the tests could import in the currently built Ledger >> > > module >> > > before installation. >> > > >> > > After installation, just do "import ledger". >> > > >> > > John >> > > >> > >> > -- >> > >> > --- >> > You received this message because you are subscribed to the Google >> Groups "Ledger" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to [email protected]. >> > For more options, visit https://groups.google.com/groups/opt_out. >> > >> > >> >
-- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
