Packages

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Stable
  • Assigned To
    Emulatorman
  • Operating System Hyperbola GNU/Linux-libre
  • Severity Medium
  • Priority Medium
  • Reported Version Milky Way v0.3
  • Due in Version Starfix
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Packages
Opened by arnau - 16/10/2019
Last edited by Emulatorman - 10/11/2019

FS#1448 - [ipython2] broken

ipython2 does not work with Milky Way (it used to work with the previous release):

$ ipython2
Traceback (most recent call last):
  File "/usr/bin/ipython2", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3036, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3020, in _call_aside
    f(*args, **kwargs)   
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3049, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 654, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 968, in require 
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 854, in resolve 
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pathlib2' distribution was not found and is required by ipython

It is because ipython2 (and also python2-pickleshare) now requires pathlib2 while Milky Way only ships pathlib (python2-pathlib package) which is deprecated upstream over pathlib2 and this package is also orphaned BTW.

python2-pathlib2 is available in Arch:
https://www.archlinux.org/packages/community/any/python2-pathlib2/

It builds fine on hyperbola and once installed, ipython2 works fine. As of other packages currently depending on the legacy python2-pathlib, I checked them one by one and:

  • python2-pickleshare: Broken as it requires pathlib2 (same as ipython2).
  • python2-pytest-benchmark: Does not use pathlib at all (neither in setuptools requires.txt nor in the source code).
Closed by  Emulatorman
10.11.2019 05:46
Reason for closing:  Fixed
Date User Effort (H:M)
watch my effort tracking timers

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing