You are not logged in.

#1 2011-09-23 04:16:48

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

"exists in filesystem" issue while making PKGBUILD for a python module

This is the package. http://packages.python.org/vcs/usage/vc … n-commands

Its already not in the AUR, so I decided of making the PKGBUILD http://sprunge.us/XVTA


Now, when I try to install it, I get this error

shadyabhi@archlinux /tmp $ sudo pacman -U python2-vcs-0.2.0-1-x86_64.pkg.tar.xz 
Password: 
resolving dependencies...
looking for inter-conflicts...

Targets (1): python2-vcs-0.2.0-1 [0.11 MB]

Total Download Size:    0.00 MB
Total Installed Size:   1.27 MB

Proceed with installation? [Y/n] 
(1/1) checking package integrity                                                                           [################################################################] 100%
(1/1) checking for file conflicts                                                                          [################################################################] 100%
error: failed to commit transaction (conflicting files)
python2-vcs: /usr/lib/python2.7/site-packages/tests/__init__.py exists in filesystem
python2-vcs: /usr/lib/python2.7/site-packages/tests/__init__.pyc exists in filesystem
python2-vcs: /usr/lib/python2.7/site-packages/tests/__init__.pyo exists in filesystem
shadyabhi@archlinux /tmp $

Also, these files are owned by:

shadyabhi@archlinux ~ $ pacman -Qo /usr/lib/python2.7/site-packages/tests/__init__.py
/usr/lib/python2.7/site-packages/tests/__init__.py is owned by python-paste-deploy 1.3.4-1
shadyabhi@archlinux ~ $

So, what should be done?

Offline

#2 2011-09-23 12:53:01

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: "exists in filesystem" issue while making PKGBUILD for a python module

Perhaps use ....pacman -Uf..........to force the install.


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#3 2011-09-23 13:01:26

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: "exists in filesystem" issue while making PKGBUILD for a python module

Of coarse, I can do that. But, my point of worry is that it overwrites the file of that package. What should be done in these situations?

Last edited by shadyabhi (2011-09-23 13:01:47)

Offline

#4 2011-09-23 13:06:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: "exists in filesystem" issue while making PKGBUILD for a python module

It sometimes happens with *.pyo and *.pyc files that are not tracked.

Offline

#5 2011-09-29 21:21:30

trontonic
Member
Registered: 2008-07-21
Posts: 80

Re: "exists in filesystem" issue while making PKGBUILD for a python module

Added a note to the python packaging guidelines about not putting a directory named "tests" directly in "site-packages". Hope it helps avoiding this issue in the future. smile

https://wiki.archlinux.org/index.php/Py … Guidelines

Offline

#6 2011-09-29 21:27:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: "exists in filesystem" issue while making PKGBUILD for a python module

argh, sorry, nothing too see here

Last edited by karol (2011-09-29 21:28:20)

Offline

Board footer

Powered by FluxBB