Bug#894075: mypy: Missing dependencies

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#894075: mypy: Missing dependencies

Salvo Tomaselli-3
Package: mypy
Version: 0.570-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

presently, mypy doesn't work at all.

$ mypy
Traceback (most recent call last):
 File "/usr/bin/mypy", line 11, in <module>
   load_entry_point('mypy==0.570', 'console_scripts', 'mypy')()
 File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
587, in load_entry_point
   return get_distribution(dist).load_entry_point(group, name)
 File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
2800, in load_entry_point
   return ep.load()
 File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
2431, in load
   return self.resolve()
 File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line
2437, in resolve
   module = __import__(self.module_name, fromlist=['__name__'], level=0)
 File "/usr/lib/python3/dist-packages/mypy/__main__.py", line 3, in <module>
   from mypy.main import main
 File "/usr/lib/python3/dist-packages/mypy/main.py", line 13, in <module>
   from mypy import build
 File "/usr/lib/python3/dist-packages/mypy/build.py", line 16, in <module>
   from distutils.sysconfig import get_python_lib
ModuleNotFoundError: No module named 'distutils.sysconfig'
salvo@serenity ~ $

Opening this as grave, since the program doesn't even start.

Best.



-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to it_IT.UTF-8), LANGUAGE=it (charmap=UTF-8) (ignored: LC_ALL set to it_IT.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mypy depends on:
ii  python3       3.6.4-1
ii  python3-mypy  0.570-1

mypy recommends no packages.

Versions of packages mypy suggests:
pn  mypy-doc  <none>

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#894075: mypy 0.580-1 did not fix the issue

Philipp Kern-6
reopen 894075
found 894075 0.580-1
thanks

As it turns out pkg_resources is not in distutils anymore (I'd have
thought the same thing), but in python3-pkg-resources. Hence mypy still
fails to run when installed on a system with minimal dependencies
installed as evidenced by [0].

Kind regards
Philipp Kern

[0] https://salsa.debian.org/pkern/pybuildd/-/jobs/11056