Thanks.

make & pip install worked fine.  can run bean-check.  Still doesn't seem to
be building some of the tools, e.g., `bean-web` is still missing:

beancount$ ls bin
bean-check  bean-doctor  bean-example  bean-format  BUILD  treeify

do i still need to do something with setup.py like in v2?


On Sun, Jul 16, 2023 at 5:10 PM Martin Blais <bl...@furius.ca> wrote:

>
>
> On Mon, Jul 17, 2023, 06:00 Eric Altendorf <ericaltend...@gmail.com>
> wrote:
>
>> On Sun, Jul 16, 2023 at 2:27 PM Martin Blais <bl...@furius.ca> wrote:
>>
>>> Precisely reliable and reproducible packaging and instructions that work
>>> for everyone all the time are impossible tasks in my experience and I tried
>>> for 25 years and eventually gave up. Too many environments, to many
>>> different users and setups. I keep it simple for dev which I think is the
>>> key, best is to use it like that to get the freshest. Other people do
>>> packaging. Packages will inevitably be slightly older. Here's the gist:
>>>
>>
>> Sure.  I don't think I'm complaining about the install not working in
>> weird corner cases or anything like that.  Mostly remarking that the
>> documentation is incorrect/broken/misleading in case you want to fix it for
>> the next person who comes along.
>>
>> - "make build" will compile a .so in place (in the tree where you can
>>> import it). Needs a C compiler with Python dev headers and library, bison
>>> and flex.
>>>
>>
>> The v3 install instructions that I found said to use Bazel, not make.  Is
>> Bazel just wrapping make here?  Is there some reason to use make directly?
>>
>
> Ignore bazel, this is work in progress you don't need. V3 works fine with
> the Python/c parser. There will also be a warning when you run about
> missing that library, ignore that too.
>
>
>
>>
>>> - set your PYTHONPATH to be able to import directly from the tree.
>>>
>>
>> I'll do this with a venv to manage and isolate the dependencies and path
>> management (which, FYI, if you wanted a hermetic and 100% reproducible
>> build setup, would probably be the way to go, although I'm hardly an expert
>> on that, and the last thing I want to do is debate your package's build
>> setup :).
>>
>
> Knock yourself out,
> pip install . into your venv should work.
>
>
>> Hope this helps,
>>>
>>
>> Thanks! :)
>>
>> eric
>>
>>
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Jul 17, 2023, 02:37 Eric Altendorf <ericaltend...@gmail.com>
>>> wrote:
>>>
>>>> Aha, looks like this is the page:
>>>> https://beancount.github.io/docs/installing_beancount_v3.html
>>>>
>>>> I'll work from that.  Just sharing the FYI that some of the install
>>>> instructions / links seem to be misleading.
>>>>
>>>> On Sun, Jul 16, 2023 at 10:19 AM Eric Altendorf <
>>>> ericaltend...@gmail.com> wrote:
>>>>
>>>>> On Fri, Jul 14, 2023 at 8:35 PM Martin Blais <bl...@furius.ca> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Sat, Jul 15, 2023, 11:06 Eric Altendorf <ericaltend...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> On Fri, Jul 14, 2023 at 4:45 PM Martin Blais <bl...@furius.ca>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> v3 > v2
>>>>>>>> No less stable; less overall code, many parts moved to subprojects
>>>>>>>> that have been more actively developed. Some c++ bit present but not 
>>>>>>>> used
>>>>>>>> in the main loop.
>>>>>>>> Use v3.
>>>>>>>>
>>>>>>>
>>>>>>> Cool.  FWIW, https://beancount.github.io/ still says v3 "is
>>>>>>> unstable and you want to use version 2 below".
>>>>>>>
>>>>>>
>>>>>> All types of users, this is largely for non technical users. It's
>>>>>> stable enough for you. I try not to commit build breaking changes (lots 
>>>>>> of
>>>>>> tests).
>>>>>>
>>>>>
>>>>> OK.  Looks like `apt install` just gives me v2, so I removed that and
>>>>> I'm back to installing from source.  I'd like to install for dev, in case 
>>>>> I
>>>>> want to experiment with writing my own booking algorithm.
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>> And https://beancount.github.io/docs/installing_beancount.html says
>>>>>>> it is instructions for installing v2.
>>>>>>>
>>>>>>> Also I tried following the "Installing for Development" instructions
>>>>>>> there, running git clone, then `sudo python3 setup.py develop` and 
>>>>>>> `python3
>>>>>>> setup.py build_ext -i` and this produced a broken install.
>>>>>>>
>>>>>>
>>>>>> This is for development, in just modify your PYTHONPATH to include
>>>>>> the repo. See beancount/etc/env
>>>>>>
>>>>>
>>>>> Sorry, I think I'm missing something more basic; things were very
>>>>> broken just following the instructions.  I do notice there is a Makefile 
>>>>> in
>>>>> the directory, is running `make` supposed to be part of the
>>>>> install-from-source or install-for-dev process?
>>>>>
>>>>> The instructions just say to run setup.py but that doesn't seem to do
>>>>> much.
>>>>>
>>>>> I'm also not sure if I'm even following the right instructions since,
>>>>> as I mentioned, the document itself says it's for installing v2, and the
>>>>> link to instructions for installing v3 is broken (links to
>>>>> https://beancount.github.io/docs/installing_beancount_v3.md )
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>>> Backing out of that and just running `apt install beancount` worked
>>>>>>> fine though :-D
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> (Apologies for the little warning in every invocation.)
>>>>>>>>
>>>>>>>> On Sat, Jul 15, 2023, 07:42 Eric Altendorf <ericaltend...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I'd like to get started with Beancount, and it wasn't clear to me
>>>>>>>>> if the docs have been updated recently.  Is v3 still considered 
>>>>>>>>> unstable,
>>>>>>>>> and it's best to use v2?
>>>>>>>>>
>>>>>>>>> thanks,
>>>>>>>>> eric
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> You received this message because you are subscribed to the Google
>>>>>>>>> Groups "Beancount" group.
>>>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>>>> send an email to beancount+unsubscr...@googlegroups.com.
>>>>>>>>> To view this discussion on the web visit
>>>>>>>>> https://groups.google.com/d/msgid/beancount/1f684516-bd76-4ff5-adcb-b2b15b28b6a6n%40googlegroups.com
>>>>>>>>> <https://groups.google.com/d/msgid/beancount/1f684516-bd76-4ff5-adcb-b2b15b28b6a6n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>>>> .
>>>>>>>>>
>>>>>>>> --
>>>>>>>> You received this message because you are subscribed to a topic in
>>>>>>>> the Google Groups "Beancount" group.
>>>>>>>> To unsubscribe from this topic, visit
>>>>>>>> https://groups.google.com/d/topic/beancount/LVBQ4cD0PYc/unsubscribe
>>>>>>>> .
>>>>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>>>>> beancount+unsubscr...@googlegroups.com.
>>>>>>>> To view this discussion on the web visit
>>>>>>>> https://groups.google.com/d/msgid/beancount/CAK21%2BhOasM-ix1nUcL5LwykQpmQefjrtD9RNRVy53K_VPthCrQ%40mail.gmail.com
>>>>>>>> <https://groups.google.com/d/msgid/beancount/CAK21%2BhOasM-ix1nUcL5LwykQpmQefjrtD9RNRVy53K_VPthCrQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>> --
>>>>>>> You received this message because you are subscribed to the Google
>>>>>>> Groups "Beancount" group.
>>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>>> send an email to beancount+unsubscr...@googlegroups.com.
>>>>>>> To view this discussion on the web visit
>>>>>>> https://groups.google.com/d/msgid/beancount/CAFXPr0vzhgK2oJihR8eZLfwboFpaQWvm8wR%3Dj0sBUd3TMmOkzQ%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/beancount/CAFXPr0vzhgK2oJihR8eZLfwboFpaQWvm8wR%3Dj0sBUd3TMmOkzQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Beancount" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to beancount+unsubscr...@googlegroups.com.
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/beancount/CAK21%2BhN5vkWmTc2D2RUBCT2hJ_b6WZqO7W986cLhCsLSkJE4sg%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/beancount/CAK21%2BhN5vkWmTc2D2RUBCT2hJ_b6WZqO7W986cLhCsLSkJE4sg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Beancount" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to beancount+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/beancount/CAFXPr0tGd2UuOmZc1P4-cieuvi9vHO24C6Th9FXuefO%3DKtPUeg%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/beancount/CAFXPr0tGd2UuOmZc1P4-cieuvi9vHO24C6Th9FXuefO%3DKtPUeg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Beancount" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to beancount+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/beancount/CAK21%2BhPUcNSnfCWMJ3UXtHgnuds%3De%3DMvKKa1bg%2BtvhuviW0kEA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/beancount/CAK21%2BhPUcNSnfCWMJ3UXtHgnuds%3De%3DMvKKa1bg%2BtvhuviW0kEA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Beancount" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to beancount+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/beancount/CAFXPr0s21YYdQby9jny1f87VGfqwtF0vA4tmRj0R%2BiAa2AMEkw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/beancount/CAFXPr0s21YYdQby9jny1f87VGfqwtF0vA4tmRj0R%2BiAa2AMEkw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beancount+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/CAK21%2BhPcWo%2BseVmNHsDY-1%2BPV81_OretG-uRLyZtnrr6vo9pZQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/beancount/CAK21%2BhPcWo%2BseVmNHsDY-1%2BPV81_OretG-uRLyZtnrr6vo9pZQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAFXPr0ux6X80-VADQRjot2Sti8rikXgq%2BYvPBYQAiq0WUvR6gA%40mail.gmail.com.

Reply via email to