You are not logged in.

#1 2013-11-11 20:42:03

busey
Member
Registered: 2013-11-11
Posts: 9

[SOLVED] cannot install perf due to python2 ... exists in filesystem e

sudo pacman -S perf
resolving dependencies...
looking for inter-conflicts...

Packages (2): python2-2.7.5-2  perf-3.11-2

Total Installed Size:   68.71 MiB

:: Proceed with installation? [Y/n]

1 resolving dependencies...
   2 looking for inter-conflicts...
   3
   4 Packages (2): python2-2.7.5-2  perf-3.11-2
   5
   6 Total Installed Size:   68.71 MiB
   7
   8 checking keyring...
   9 checking package integrity...
  10 loading package files...
  11 checking for file conflicts...
  12 python2: /usr/bin/2to3-2.7 exists in filesystem
  13 python2: /usr/bin/idle2 exists in filesystem
  14 python2: /usr/bin/pydoc2 exists in filesystem
  15 python2: /usr/bin/python2 exists in filesystem
  16 python2: /usr/bin/python2-config exists in filesystem
  17 python2: /usr/bin/python2.7 exists in filesystem
  18 python2: /usr/bin/python2.7-config exists in filesystem
  19 python2: /usr/include/python2.7/Python-ast.h exists in filesystem
  20 python2: /usr/include/python2.7/Python.h exists in filesystem
  21 python2: /usr/include/python2.7/abstract.h exists in filesystem
  22 python2: /usr/include/python2.7/asdl.h exists in filesystem
  23 python2: /usr/include/python2.7/ast.h exists in filesystem
  24 python2: /usr/include/python2.7/bitset.h exists in filesystem
  25 python2: /usr/include/python2.7/boolobject.h exists in filesystem
  26 python2: /usr/include/python2.7/bufferobject.h exists in filesystem
  27 python2: /usr/include/python2.7/bytearrayobject.h exists in filesystem
  28 python2: /usr/include/python2.7/bytes_methods.h exists in filesystem
  29 python2: /usr/include/python2.7/bytesobject.h exists in filesystem
  30 python2: /usr/include/python2.7/cStringIO.h exists in filesystem
  31 python2: /usr/include/python2.7/cellobject.h exists in filesystem
  32 python2: /usr/include/python2.7/ceval.h exists in filesystem
  33 python2: /usr/include/python2.7/classobject.h exists in filesystem
  34 python2: /usr/include/python2.7/cobject.h exists in filesystem
  35 python2: /usr/include/python2.7/code.h exists in filesystem
  36 python2: /usr/include/python2.7/codecs.h exists in filesystem
  37 python2: /usr/include/python2.7/compile.h exists in filesystem
  38 python2: /usr/include/python2.7/complexobject.h exists in filesystem
  39 python2: /usr/include/python2.7/datetime.h exists in filesystem
  40 python2: /usr/include/python2.7/descrobject.h exists in filesystem
  41 python2: /usr/include/python2.7/dictobject.h exists in filesystem
  42 python2: /usr/include/python2.7/dtoa.h exists in filesystem
  43 python2: /usr/include/python2.7/enumobject.h exists in filesystem
  44 python2: /usr/include/python2.7/errcode.h exists in filesystem
  45 python2: /usr/include/python2.7/eval.h exists in filesystem
.........
Errors occurred, no packages were upgraded.


(yes those are line numbers, sorry)

Any ideas?

Last edited by busey (2013-11-11 21:58:55)

Offline

#2 2013-11-11 20:47:11

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [SOLVED] cannot install perf due to python2 ... exists in filesystem e

There are a number of files on your system that a package wants to provide thus causing a conflict.  Aborting with warnings is the expected behavior.  Now the question is: what placed the files on your system?  Did you manually compile and install python2 or other packages by chance?

Let's see if any package that pacman installed owns one of those files (I'm guessing now); post the output of:

pacman -Qo /usr/include/python2.7/abstract.h

As that was your 1st post, welcome to Arch.  Plz use code tags in your posts --> https://bbs.archlinux.org/help.php#bbcode

Last edited by graysky (2013-11-11 20:50:01)

Offline

#3 2013-11-11 20:50:50

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

Re: [SOLVED] cannot install perf due to python2 ... exists in filesystem e

As a newcomer, you should pay attention to the stickied topics, like https://bbs.archlinux.org/viewtopic.php?id=130138

Why did you paste those line numbers?

Offline

#4 2013-11-11 20:52:48

busey
Member
Registered: 2013-11-11
Posts: 9

Re: [SOLVED] cannot install perf due to python2 ... exists in filesystem e

graysky, the output is:

[wizard@milner ~]$ pacman -Qo /usr/include/python2.7/abstract.h
error: No package owns /usr/include/python2.7/abstract.h

Offline

#5 2013-11-11 20:54:25

busey
Member
Registered: 2013-11-11
Posts: 9

Re: [SOLVED] cannot install perf due to python2 ... exists in filesystem e

karol wrote:

Why did you paste those line numbers?

I copied it from vim. I was trying to catch something useful in the output

Offline

#6 2013-11-11 20:55:44

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: [SOLVED] cannot install perf due to python2 ... exists in filesystem e

@busey - Thought so...

graysky wrote:

Did you manually compile and install python2 or other packages by chance?

If you did, are you probably safe to allow pacman to force an overwrite of the conflicting files via the -f flag which is generally something you really want to think about before just blindly adding to your install command.  I would also highly encourage you never to manually build anything; use a PKGBUILD (from the AUR or write your own) when you want to compile/install anything.  One of the things that makes Arch Linux Great(TM) is the power and simplicity of pacman/makepkg.

Offline

#7 2013-11-11 21:03:42

busey
Member
Registered: 2013-11-11
Posts: 9

Re: [SOLVED] cannot install perf due to python2 ... exists in filesystem e

I don't think that I installed python manually but, I'm managing multiple machines nowadays, may be I did. By the way, both python 2.7 and 3.3 are present on the system.  I recently changed the symlink in /usr/bin to link python2.7 (I have some code which uses python2.7). But the problem existed before this. 

Anyway, I reinstalled python by:

sudo pacman -S --force python2

and then I was able to install perf without any problems. Next time before googling & posting I'll try to reinstall smile Thanks for the help and quick response graysky

Offline

#8 2013-11-11 21:11:51

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

Re: [SOLVED] cannot install perf due to python2 ... exists in filesystem e

busey wrote:
karol wrote:

Why did you paste those line numbers?

I copied it from vim. I was trying to catch something useful in the output

If you redirected the output of pacman to a file, you can view it with a pager like less.
You can toggle line numbering in vim.

Offline

#9 2013-11-11 21:12:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] cannot install perf due to python2 ... exists in filesystem e

instead of changing the symlink, which will just get overwritten next time python is updated, you should specify the version in the shebang of the script that uses it.

Last edited by Scimmia (2013-11-11 21:13:16)

Offline

#10 2013-11-11 21:13:18

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] cannot install perf due to python2 ... exists in filesystem e

busey wrote:

I recently changed the symlink in /usr/bin to link python2.7 (I have some code which uses python2.7)

This is not a good idea, and will be undone the next time you update python via pacman. You should fix the code (modify the shebang or whatever) so that it uses python2 or python2.7 explicitly.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#11 2013-11-11 21:19:55

busey
Member
Registered: 2013-11-11
Posts: 9

Re: [SOLVED] cannot install perf due to python2 ... exists in filesystem e

thanks for the advice scimmia and WorMzy, I guess I can do it in my local working copy (codes are in svn)

Last edited by busey (2013-11-11 21:24:43)

Offline

#12 2013-11-11 21:37:38

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

Re: [SOLVED] cannot install perf due to python2 ... exists in filesystem e

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

#13 2013-11-11 22:00:39

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] cannot install perf due to python2 ... exists in filesystem e

Try to get the change pushed upstream if there's a bug tracker or a dev email you can contact. "python2" is distro-agnostic, "python" is not.

http://www.python.org/dev/peps/pep-0394/


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB