Error installing beancount 2.1.0

92 views
Skip to first unread message

xiaor...@gmail.com

unread,
May 12, 2018, 1:59:49 AM5/12/18
to Beancount
Hi,

Is anyone else having this problem?

Collecting beancount>=2.0
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/qr/zf30qxdd6gs4sz0lg2zm772w005774/T/pip-install-7qg2frne/beancount/setup.py", line 172, in <module>
        shell=False)
      File "/Users/user/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 336, in check_output
        **kwargs).stdout
      File "/Users/user/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 403, in run
        with Popen(*popenargs, **kwargs) as process:
      File "/Users/user/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 709, in __init__
        restore_signals, start_new_session)
      File "/Users/user/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 1344, in _execute_child
        raise child_exception_type(errno_num, err_msg, err_filename)
    FileNotFoundError: [Errno 2] No such file or directory: 'hg': 'hg'


If I install hg, still have error:

Collecting beancount>=2.0
    Complete output from command python setup.py egg_info:
    abort: no repository found in '/private/var/folders/qr/zf30qxdd6gs4sz0lg2zm772w005774/T/pip-install-bfi71jca/beancount' (.hg not found)!
    fatal: Not a git repository (or any of the parent directories): .git
    Traceback (most recent call last):
      File "/private/var/folders/qr/zf30qxdd6gs4sz0lg2zm772w005774/T/pip-install-bfi71jca/beancount/setup.py", line 172, in <module>
        shell=False)
      File "/Users/user/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 336, in check_output
        **kwargs).stdout
      File "/Users/user/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 418, in run
        output=stdout, stderr=stderr)
    subprocess.CalledProcessError: Command '['hg', 'parent', '--template', '{node} {date}']' returned non-zero exit status 255.

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/qr/zf30qxdd6gs4sz0lg2zm772w005774/T/pip-install-bfi71jca/beancount/setup.py", line 177, in <module>
        shell=False)
      File "/Users/user/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 336, in check_output
        **kwargs).stdout
      File "/Users/user/.pyenv/versions/3.6.5/lib/python3.6/subprocess.py", line 418, in run
        output=stdout, stderr=stderr)
    subprocess.CalledProcessError: Command '['git', 'log', '--pretty=%H %ct', '-1']' returned non-zero exit status 128.


Thanks,

Jason Chu

unread,
May 12, 2018, 2:32:18 AM5/12/18
to bean...@googlegroups.com
Are you installing with Docker bychance?


This line is wrong now, the beancount installer depends on an .hg or .git directory existing (whether that's a bug is a different story). I'll submit a PR to fix the Dockerfile.

--
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+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/4ea05eae-294f-49f7-85e3-07ddd327b495%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Xinruo Sun

unread,
May 12, 2018, 2:33:38 AM5/12/18
to bean...@googlegroups.com
No, I'm just using pip3 install beancount, on a mac.

To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.

To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/4ea05eae-294f-49f7-85e3-07ddd327b495%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/I_7bD4mDFrM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beancount+unsubscribe@googlegroups.com.

To post to this group, send email to bean...@googlegroups.com.

Martin Blais

unread,
May 12, 2018, 9:05:37 AM5/12/18
to Beancount
I'll fix this in a few hours, it's related to changes in versioning. Thank you for reporting it right away.


yegle

unread,
May 12, 2018, 10:54:04 AM5/12/18
to Beancount


On Fri, May 11, 2018, 11:32 PM Jason Chu <xen...@gmail.com> wrote:
Are you installing with Docker bychance?


This line is wrong now, the beancount installer depends on an .hg or .git directory existing (whether that's a bug is a different story). I'll submit a PR to fix the Dockerfile.

I fixed this error in my repo (https://within.com/yegle/fava-docker). The main reason it required to remove .hg directory was because pip would fail to install when there are symlink files in the source directory.

Martin Blais

unread,
May 12, 2018, 12:50:47 PM5/12/18
to Beancount
hg should not be required to install from a tarball.


To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscribe@googlegroups.com.

To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/4ea05eae-294f-49f7-85e3-07ddd327b495%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to bean...@googlegroups.com.

Martin Blais

unread,
May 12, 2018, 1:33:36 PM5/12/18
to Martin Blais, Beancount
Just released 2.1.2 and tested independently.
The problem should be fixed now.
Please try again.

Martin Michlmayr

unread,
May 12, 2018, 1:50:33 PM5/12/18
to bean...@googlegroups.com, Martin Blais
* Martin Blais <bl...@furius.ca> [2018-05-12 13:33]:
> Just released 2.1.2 and tested independently.
> The problem should be fixed now.
> Please try again.

Works for me now. (I saw the same issue.)

Thanks!
--
Martin Michlmayr
https://www.cyrius.com/
Reply all
Reply to author
Forward
0 new messages