python packages should not ship colliding /usr/lib/python3/dist-packages/.pytest_cache

Bug #1794229 reported by Trent Lloyd
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Debian
Fix Released
Unknown
alembic (Debian)
Fix Released
Unknown
alembic (Ubuntu)
Fix Released
High
James Page
astroid (Ubuntu)
Invalid
High
Unassigned
dh-python (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Python packages should not ship /usr/lib/python3/dist-packages/.pytest_cache

Recently, two packages python3-alembic and python3-astroid both shipped these files which collided on package install

dh-python has been improved upstream to stream all hidden "dot" directories in Debian #907871

This change should be imported and both alembic and astroid should be rebuilt (plus any other packages shipping this file)

Preparing to unpack .../178-python3-astroid_2.0.4-1_all.deb ...
Unpacking python3-astroid (2.0.4-1) over (1.6.5-1ubuntu4) ...
dpkg: error processing archive /tmp/apt-dpkg-install-rbF4wE/178-python3-astroid_2.0.4-1_all.deb (--unpack):
 trying to overwrite '/usr/lib/python3/dist-packages/.pytest_cache/v/cache/nodeids', which is also in package python3-alembic 1.0.0-1ubuntu1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

Revision history for this message
Trent Lloyd (lathiat) wrote :

It appears these packages are in main but mainly pulled in (at least on my system) by 'devscripts'. This affects cosmic.

Changed in dh-python (Ubuntu):
importance: Undecided → Critical
Changed in astroid (Ubuntu):
importance: Undecided → Critical
Changed in alembic (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Trent Lloyd (lathiat) wrote :

Looks like the recent astroid rebuild/changes removed the file, but it's still present in alembic

Changed in alembic (Ubuntu):
importance: Critical → High
Changed in astroid (Ubuntu):
importance: Critical → High
Changed in dh-python (Ubuntu):
importance: Critical → High
Changed in astroid (Ubuntu):
status: New → Invalid
Changed in debian:
status: Unknown → Fix Released
James Page (james-page)
Changed in alembic (Ubuntu):
status: New → Fix Committed
assignee: nobody → James Page (james-page)
Changed in alembic (Debian):
status: Unknown → Fix Released
Changed in alembic (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Stefano Rivera (stefanor) wrote :

Fixed in dh-python in 3.20180927.

Changed in dh-python (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.