#1011838 xonsh: FTBFS: ModuleNotFoundError: No module named 'attr'

#1011838#5
Date:
2022-05-26 18:59:40 UTC
From:
To:
Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
The full build log is available from:
http://qa-logs.debian.net/2022/05/25/xonsh_0.12.4+dfsg-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220525;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220525&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

#1011838#10
Date:
2022-06-14 08:43:38 UTC
From:
To:
Control: reassign -1 python3-myst-parser
Control: affects -1 + xonsh
Control: found -1 python3-myst-parser/0.16.1-1
Control: found -1 python3-myst-parser/0.16.1-2
Control: found -1 python3-myst-parser/0.16.1-3
Control: found -1 python3-myst-parser/0.16.1-4
Control: fixed -1 python3-myst-parser/0.17.2-1

As it turns out, this is not a bug in xonsh, but rather in
python3-myst-parser 0.16.1 where
the line "from attr import Attribute" was added, but without
dependency on the python3-attr.
xonsh became a "victim" of that missing dependency.

The good news is that the xonsh FTBFS problem is fixed with the upload
of python3-myst-parser 0.17.2-1 where upstream did this:

    - ♻️ REFACTOR: Replace `attrs` by `dataclasses` for configuration (#557)

The 'attr' module is no longer needed, hence no more FTBFS for xonsh!

Special thanks to Emmanuel Arias and Bastian Germann for the upload of
myst-parser 0.17.2-1 which resolves this bug.

I am hereby reassigning this bug to python3-myst-parser, and will
close the bug shortly after.

Cheers,

Anthony Fok

#1011838#31
Date:
2022-06-14 09:04:41 UTC
From:
To:
This FTBFS in xonsh, which was caused by myst-parser introduction of
"from attr import Attribute" without the corresponding dependency on
python3-attr, was fixed by the upload of myst-parser/0.17.2-1 where
`attrs` was replaced with `dataclasses` (part of
libpython3.10-stdlib).

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments, please address them to 1011838@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Cheers!

myst-parser (0.17.2-1) unstable; urgency=medium

  * New upstream version.
  * d/patches: Remove patches, all of them are in the new upstream release.
  * d/control: Bump Standards-Version to 4.6.1 (from 4.6.0.1; no further
    changes).
  * d/control: Use flit instead of python3-setuptools to build package.
  * d/control: Add python3-typing-extensions as Build Depends.
  * d/rules: Ignore tests that use pytest_param_files that is not in Debian
    yet.
    - d/tests/unittests: Also ignore them in autopkgtest run.
  * d/tests/control: Write explicitly the packages that are need for run
    autopkgtest instead of use @builddeps@.