Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#29791 - [python-distribute] conflicting files

Attached to Project: Arch Linux
Opened by Wolfgang Mader (ReedWood) - Monday, 07 May 2012, 02:26 GMT
Last edited by Stéphane Gaudreault (stephane) - Sunday, 13 May 2012, 00:03 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Stéphane Gaudreault (stephane)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The update of the package python-distribute fails due to conflicting file in /usr/lib/python3.2/site-packages/setuptools/ in subfolders __pycache__. Is __pycache__ supposed to be included in the package?


Additional info:
* python-distribute-0.6.26-1


Steps to reproduce:
Try to update to python-distribute-0.6.26-1.
This task depends upon

Closed by  Stéphane Gaudreault (stephane)
Sunday, 13 May 2012, 00:03 GMT
Reason for closing:  Not a bug
Comment by Daniel Wallace (gtmanfred) - Monday, 07 May 2012, 02:43 GMT
Have you ever installed anything with pip?

I saw some one yesterday who had this problem, but they had used pip and it messed up the ownership of some of those files
Comment by Wolfgang Mader (ReedWood) - Monday, 07 May 2012, 02:48 GMT
I can not remeber having installed anything with pip. The conflicting files which are on the hard drive right now do not belong to any package. I guess it would be save to remove them manually, but I wonder where they come from.
Comment by Dave Reisner (falconindy) - Monday, 07 May 2012, 02:52 GMT
it comes from running distutils as root.
Comment by Mike Bonar (glide) - Saturday, 12 May 2012, 12:32 GMT
In my case it's error: failed to commit transaction (conflicting files)
ranger: /usr/lib/python3.2/site-packages/ranger/__pycache__/__init__.cpython-32.pyo exists in filesyste

What's the fix?
Comment by Mike Bonar (glide) - Saturday, 12 May 2012, 12:35 GMT
Just removing ranger fixed it for me. I would remove setuptools and try the update again, ReedWood.
Comment by Wolfgang Mader (ReedWood) - Saturday, 12 May 2012, 15:28 GMT
ranger is not installed on my system. I also uninstalled python2-distribute, but still, python-distribute has the same conflicting files. I would be, though,surprised if a python2 packages would install stuff in the python3 sidepackage folder. Anyways, thanks for the comment.
Comment by Mike Bonar (glide) - Saturday, 12 May 2012, 21:10 GMT
HI ReedWood, as you can see from your error message, "site-packages/setuptools/" setuptools has placed the duplicates on your system. Remove setuptools and try your update again. In my case, "/site-packages/ranger" it was ranger, so the fix is a bit different for you.
Comment by Wolfgang Mader (ReedWood) - Saturday, 12 May 2012, 21:28 GMT
When it comes to the error message, we are on the same page, but the files under setuptools are provided by python-distribute, i.e. the packages this bug report ist against. At least, this is what the file list of [1] says. What lookes strange to me is, that the files in conflict are all .pyc file, which I thought are generated from source on the first run of the respective python package. Therefore, I wonder, why they are distributed in this arch package.

[1] http://www.archlinux.org/packages/extra/any/python-distribute/
Comment by Stéphane Gaudreault (stephane) - Sunday, 13 May 2012, 00:02 GMT
Pycache dir are intentionally installed. You got this conflict because you ran distribute as root (a bad practice imo). Just remove the dir and it will work.

Loading...