[Python-modules-team] Bug#945214: Workaround

2019-12-02 Thread Patrice Duroux

Hi,

It is may be the same bug as the one in my bug report here:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=945887

I found a solution by editing the following file after installation:
/usr/lib/python3/dist-packages/testpath-.egg-info
(provided by python3-testpath)

The 'Version:' field should not be an empty string and changing by the
following:

Version: 0.4.2

solved my issue.

Best,
Patrice

___
Python-modules-team mailing list
Python-modules-team@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

[Python-modules-team] Bug#945887: jupyter-notebook: pip3 is not working after installation

2019-11-30 Thread Patrice Duroux

Sorry finally I found the guilty: python3-testpath
that is pulled by python3-nbconvert

Thanks

___
Python-modules-team mailing list
Python-modules-team@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

[Python-modules-team] Bug#945887: jupyter-notebook: pip3 is not working after installation

2019-11-30 Thread Patrice DUROUX
Package: jupyter-notebook
Version: 6.0.0-1
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

$ apt install jupyter-notebook

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

$ pip3 check

   * What was the outcome of this action?

$ pip3 check
Exception:
Traceback (most recent call last):
  File 
"/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py",
 line 2649, in version
return self._version
  File 
"/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py",
 line 2756, in __getattr__
raise AttributeError(attr)
AttributeError: _version

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 
143, in main
status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/check.py", line 
19, in run
package_set = create_package_set_from_installed()
  File "/usr/lib/python3/dist-packages/pip/_internal/operations/check.py", line 
41, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dist.requires())
  File 
"/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/__init__.py",
 line 2654, in version
raise ValueError(tmpl % self.PKG_INFO, self)
ValueError: ("Missing 'Version:' header and/or PKG-INFO file", testpath 
[unknown version] (/usr/lib/python3/dist-packages))

   * What outcome did you expect instead?

$ pip3 check
No broken requirements found.


*** End of the template - remove these template lines ***

Thanks,
Patrice

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

Kernel: Linux 5.2.0-3-amd64 (SMP w/24 CPU cores)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages jupyter-notebook depends on:
ii  init-system-helpers  1.57
ii  jupyter-core 4.6.1-1
ii  python3  3.7.5-3
ii  python3-notebook 6.0.0-1

jupyter-notebook recommends no packages.

jupyter-notebook suggests no packages.

-- no debconf information

___
Python-modules-team mailing list
Python-modules-team@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team