Source: mu-editor
Version: 1.0.2+dfsg-1
Severity: serious
Justification: fails to build from source
Tags: ftbfs

Dear Maintainer,

As can be seen on [1], mu-editor fails to build with the latest version of
pkg_resources.

The error is:

Traceback (most recent call last):
  File 
"/tmp/mu-editor-1.0.2+dfsg/.pybuild/cpython3_3.7_mu-editor/build/tests/test_app.py",
 line 92, in test_run
    run()
  File 
"/tmp/mu-editor-1.0.2+dfsg/.pybuild/cpython3_3.7_mu-editor/build/mu/app.py", 
line 142, in run
    app.setWindowIcon(load_icon(editor_window.icon))
  File 
"/tmp/mu-editor-1.0.2+dfsg/.pybuild/cpython3_3.7_mu-editor/build/mu/resources/__init__.py",
 line 37, in load_icon
    return QIcon(path(name))
  File 
"/tmp/mu-editor-1.0.2+dfsg/.pybuild/cpython3_3.7_mu-editor/build/mu/resources/__init__.py",
 line 32, in path
    return resource_filename(__name__, resource_dir + name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1145, 
in resource_filename
    self, resource_name
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1395, 
in get_resource_filename
    return self._fn(self.module_path, resource_name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1471, 
in _fn
    self._validate_resource_path(resource_name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1518, 
in _validate_resource_path
    posixpath.isabs(path) or
  File "/usr/lib/python3.7/posixpath.py", line 66, in isabs
    s = os.fspath(s)
TypeError: expected str, bytes or os.PathLike object, not Win

This is caused by addition of _validate_source_path() in pkg_resources 40.8.0,
see [2].

This upstream commit [3] should fix it.

[1]: 
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/mu-editor.html
[2]: https://github.com/pypa/setuptools/pull/1640
[3]: https://github.com/mu-editor/mu/commit/d38470adc623f887

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature

Reply via email to