GNU bug report logs - #41212
fail to build python-parso

Previous Next

Package: guix;

Reported by: srandom <nniixxooss <at> 163.com>

Date: Tue, 12 May 2020 14:59:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41212 in the body.
You can then email your comments to 41212 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#41212; Package guix. (Tue, 12 May 2020 14:59:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to srandom <nniixxooss <at> 163.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 12 May 2020 14:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: srandom <nniixxooss <at> 163.com>
To: bug-guix <at> gnu.org
Subject: fail to build python-parso
Date: Tue, 12 May 2020 18:46:19 +0800 (CST)
[Message part 1 (text/plain, inline)]
my guix describe:


Generation 3    May 12 2020 09:03:13    (current)
  guix 91be384
    repository URL: /opt/guix
    branch: master
    commit: 91be384d2ef87af58f814e10a4ce0d8717bea647


(I store the git repository in /opt/guix and pull the source code of upstream https://github.com/guix-mirror/guix)


build log:


=================================== FAILURES ===================================
_______________ test_python_exception_matches[(lambda: x := 1)] ________________


code = '(lambda: x := 1)'


    @pytest.mark.parametrize('code', FAILING_EXAMPLES)
    def test_python_exception_matches(code):
        wanted, line_nr = _get_actual_exception(code)


        errors = _get_error_list(code)
        wanted, line_nr = _get_actual_exception(code)                                                                                                           [50/1848]


        errors = _get_error_list(code)
        actual = None
        if errors:
            error, = errors
            actual = error.message
>       assert actual in wanted
E       AssertionError: assert 'SyntaxError: cannot use named assignment with subscript' in ['SyntaxError: cannot use assignment expressions with subscript']


test/test_python_errors.py:39: AssertionError
__________________ test_python_exception_matches[(a(i) := x)] __________________


code = '(a(i) := x)'


    @pytest.mark.parametrize('code', FAILING_EXAMPLES)
    def test_python_exception_matches(code):
        wanted, line_nr = _get_actual_exception(code)


        errors = _get_error_list(code)
        actual = None
        if errors:
            error, = errors
            actual = error.message
>       assert actual in wanted
E       AssertionError: assert 'SyntaxError: cannot use named assignment with function call' in ['SyntaxError: cannot use assignment expressions with function call']


test/test_python_errors.py:39: AssertionError
__________________ test_python_exception_matches[(a.b := c)] ___________________


code = '(a.b := c)'


    @pytest.mark.parametrize('code', FAILING_EXAMPLES)
    def test_python_exception_matches(code):
        wanted, line_nr = _get_actual_exception(code)


        errors = _get_error_list(code)
        actual = None
        if errors:
            error, = errors
            actual = error.message
>       assert actual in wanted
E       AssertionError: assert 'SyntaxError: cannot use named assignment with attribute' in ['SyntaxError: cannot use assignment expressions with attribute']


test/test_python_errors.py:39: AssertionError
_____ test_python_exception_matches[[(i.i:= 0) for ((i), j) in range(5)]] ______


code = '[(i.i:= 0) for ((i), j) in range(5)]'


    @pytest.mark.parametrize('code', FAILING_EXAMPLES)
    def test_python_exception_matches(code):
        wanted, line_nr = _get_actual_exception(code)
    def test_python_exception_matches(code):                                                                                                                     [0/1848]
        wanted, line_nr = _get_actual_exception(code)


        errors = _get_error_list(code)
        actual = None
        if errors:
            error, = errors
            actual = error.message
>       assert actual in wanted
E       AssertionError: assert 'SyntaxError: cannot use named assignment with attribute' in ['SyntaxError: cannot use assignment expressions with attribute']


test/test_python_errors.py:39: AssertionError
________________ test_python_exception_matches[(await a := x)] _________________


code = '(await a := x)'


    @pytest.mark.parametrize('code', FAILING_EXAMPLES)
    def test_python_exception_matches(code):
        wanted, line_nr = _get_actual_exception(code)


        errors = _get_error_list(code)
        actual = None
        if errors:
            error, = errors
            actual = error.message
>       assert actual in wanted
E       AssertionError: assert 'SyntaxError: cannot use named assignment with await expression' in ['SyntaxError: cannot use assignment expressions with await expression
']


test/test_python_errors.py:39: AssertionError
_______________ test_python_exception_matches[((await a) := x)] ________________


code = '((await a) := x)'


    @pytest.mark.parametrize('code', FAILING_EXAMPLES)
    def test_python_exception_matches(code):
        wanted, line_nr = _get_actual_exception(code)


        errors = _get_error_list(code)
        actual = None
        if errors:
            error, = errors
            actual = error.message
>       assert actual in wanted
E       AssertionError: assert 'SyntaxError: cannot use named assignment with await expression' in ['SyntaxError: cannot use assignment expressions with await expression
']


test/test_python_errors.py:39: AssertionError
================== 9 failed, 1181 passed, 1 xfailed in 17.76s ==================
command "pytest" "-vv" failed with status 1






How should I solve it?
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#41212; Package guix. (Tue, 12 May 2020 18:13:01 GMT) Full text and rfc822 format available.

Message #8 received at 41212 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: srandom <nniixxooss <at> 163.com>
Cc: 41212 <at> debbugs.gnu.org
Subject: Re: bug#41212: fail to build python-parso
Date: Tue, 12 May 2020 20:12:42 +0200
Dear,

I am not able to reproduce.

--8<---------------cut here---------------start------------->8---
# first to populate the store
guix time-machine --commit=91be384 \
     -- build python-parso

# second to really build it
guix time-machine --commit=91be384 \
     -- build python-parso --no-grafts --check
--8<---------------cut here---------------end--------------->8---

And I do not have any error.  The substitute is available and the
rebuild is fine.

Could you provide the command-line that you used?


All the best,
simon




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Tue, 01 Sep 2020 18:00:03 GMT) Full text and rfc822 format available.

Notification sent to srandom <nniixxooss <at> 163.com>:
bug acknowledged by developer. (Tue, 01 Sep 2020 18:00:03 GMT) Full text and rfc822 format available.

Message #13 received at 41212-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: srandom <nniixxooss <at> 163.com>, 41212-done <at> debbugs.gnu.org
Subject: Re: bug#41212: fail to build python-parso
Date: Tue, 01 Sep 2020 13:59:46 -0400
zimoun <zimon.toutoune <at> gmail.com> writes:

> Dear,
>
> I am not able to reproduce.
>
> # first to populate the store
> guix time-machine --commit=91be384 \
>      -- build python-parso
>
> # second to really build it
> guix time-machine --commit=91be384 \
>      -- build python-parso --no-grafts --check
>
> And I do not have any error.  The substitute is available and the
> rebuild is fine.
>
> Could you provide the command-line that you used?

No answer, current python-parso builds.

Closing.

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 30 Sep 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 180 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.