You are not logged in.

#1 2013-07-06 09:19:45

David López
Member
Registered: 2012-08-26
Posts: 98

[SOLVED] Error when updating python-gobject

It seems that some files already exist:

Paquetes (3): pygobject-devel-3.8.3-1  python-gobject-3.8.3-1  python2-gobject-3.8.3-1

error: error al realizar la transacción (archivos en conflicto)
python-gobject: /usr/lib/python3.3/site-packages/gi/__pycache__/__init__.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/__pycache__/importer.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/__pycache__/module.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/__pycache__/types.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/_glib/__pycache__/__init__.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/_glib/__pycache__/option.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/_gobject/__pycache__/__init__.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/_gobject/__pycache__/constants.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/_gobject/__pycache__/propertyhelper.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/_gobject/__pycache__/signalhelper.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/overrides/__pycache__/GLib.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/overrides/__pycache__/GObject.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/overrides/__pycache__/Gdk.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/overrides/__pycache__/Gio.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/overrides/__pycache__/Gtk.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/overrides/__pycache__/Pango.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/overrides/__pycache__/__init__.cpython-33.pyc existe en el sistema de archivos
python-gobject: /usr/lib/python3.3/site-packages/gi/repository/__pycache__/__init__.cpython-33.pyc existe en el sistema de archivos

Is it safe to remove those files?

mod edit: added code tags (Xyne)

Last edited by David López (2013-07-07 11:58:25)

Offline

#2 2013-07-06 09:38:11

NoSavvy
Member
From: Dorchester, Dorset, UK
Registered: 2013-01-23
Posts: 96

Re: [SOLVED] Error when updating python-gobject

I'm a gambler.

Right or wrong but I renamed the "gi" directory in  "/usr/lib/python3.3/site-packages" and ran pacman again. All appears OK.

Offline

#3 2013-07-06 09:58:05

zepar
Member
Registered: 2011-04-08
Posts: 9

Re: [SOLVED] Error when updating python-gobject

I think it's safe to delete the "__pycache__" folders

# pacman -Qo /usr/lib/python3.3/site-packages/gi/__pycache__
error: No package owns /usr/lib/python3.3/site-packages/gi/__pycache__

# pacman -Qo /usr/lib/python3.3/site-packages/gi/
/usr/lib/python3.3/site-packages/gi is owned by python-gobject 3.8.2-1

Offline

#4 2013-07-06 13:50:06

Cthulhu82
Member
From: Nantes, France
Registered: 2013-04-01
Posts: 152

Re: [SOLVED] Error when updating python-gobject

As I am concern, I removed the « gi » directory, ran the update again, it worked fine.
But if you have Gedit, remember to reinstall it, as there is some of its files in « /usr/lib/python3.3/site-packages/gi/overrides/ ».


« En essayant continuellement, on finit par réussir.
Donc plus ça rate, plus ça a de chance de marcher. »
Devise Shadock

Offline

#5 2013-07-06 16:18:28

oldtimeyjunk
Member
From: /world/europe/uk/england
Registered: 2011-04-30
Posts: 202
Website

Re: [SOLVED] Error when updating python-gobject

So, I'm updating and this happens...

(81/81) checking for file conflicts                [######################] 100%
error: failed to commit transaction (conflicting files)
python-gobject: /usr/lib/python3.3/site-packages/gi/__pycache__/__init__.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/__pycache__/importer.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/__pycache__/module.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/__pycache__/types.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/_glib/__pycache__/__init__.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/_glib/__pycache__/option.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/_gobject/__pycache__/__init__.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/_gobject/__pycache__/constants.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/_gobject/__pycache__/propertyhelper.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/_gobject/__pycache__/signalhelper.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/overrides/__pycache__/GLib.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/overrides/__pycache__/GObject.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/overrides/__pycache__/Gio.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/overrides/__pycache__/__init__.cpython-33.pyc exists in filesystem
python-gobject: /usr/lib/python3.3/site-packages/gi/repository/__pycache__/__init__.cpython-33.pyc exists in filesystem

(I have both Python[3] and Python2 installed if that makes any difference)

Edit: doing...

pacman -Qo /usr/lib/python3.3/site-packages/gi/__pycache__/__init__.cpython-33.py

...comes back with...

error: failed to read file '/usr/lib/python3.3/site-packages/gi/__pycache__/__init__.cpython-33.py': No such file or directory

Last edited by oldtimeyjunk (2013-07-06 16:28:46)


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed." - Unix for Dummies, 2nd Edition

Offline

#6 2013-07-06 16:27:36

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

Re: [SOLVED] Error when updating python-gobject

Offline

#7 2013-07-06 16:27:46

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Error when updating python-gobject


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#8 2013-07-06 16:28:29

oldtimeyjunk
Member
From: /world/europe/uk/england
Registered: 2011-04-30
Posts: 202
Website

Re: [SOLVED] Error when updating python-gobject

Couldn't find that thread while searching. Thanks.


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed." - Unix for Dummies, 2nd Edition

Offline

#9 2013-07-06 16:31:24

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

Re: [SOLVED] Error when updating python-gobject

You have a typo there, it's not /usr/lib/python3.3/site-packages/gi/__pycache__/__init__.cpython-33.py but /usr/lib/python3.3/site-packages/gi/__pycache__/__init__.cpython-33.pyc.
*.pyc files sometimes cause conflicts like these.

Offline

#10 2013-07-06 16:38:43

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [SOLVED] Error when updating python-gobject


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#11 2013-07-07 08:51:22

David López
Member
Registered: 2012-08-26
Posts: 98

Re: [SOLVED] Error when updating python-gobject

I've removed the existing files and run the update; everything seems OK. Thanks for your help.

Offline

#12 2013-07-07 10:36:54

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

Re: [SOLVED] Error when updating python-gobject

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

Offline

#13 2013-07-07 11:59:06

David López
Member
Registered: 2012-08-26
Posts: 98

Re: [SOLVED] Error when updating python-gobject

karol wrote:

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

Oops, sorry. Now it's done.

Offline

#14 2013-07-08 08:53:44

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: [SOLVED] Error when updating python-gobject

What merging where now? I'm confused. Just to be clear:
- I deleted all the pycache directories to get rid of the error, updated afterwards. Do I need to reinstall some packages now?
- How did this happen in the first place? Did I do something pythony as root that I shouldn't have?

Offline

#15 2013-07-08 09:06:47

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED] Error when updating python-gobject

@whoops: I think, some cache files were not part of the package, but were generated during the installation. python-gobject has been modified so that the precompiled files are part of the package as it should be. Now you should find packages with missing files and reinstall them.

LC_ALL=C pacman -Qk | grep -v ", 0 missing"

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#16 2013-07-08 14:53:05

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Error when updating python-gobject

whoops wrote:

What merging where now? I'm confused.

That's just the moderator merging another thread into this one lol

Offline

#17 2018-06-07 14:44:25

ludenticus
Member
Registered: 2013-05-14
Posts: 20

Re: [SOLVED] Error when updating python-gobject

I had to remove the following files:

/usr/lib/python3.6/site-packages/__pycache__/mdx_math.cpython-36.pyc
/usr/lib/python3.6/site-packages/mdx_math.py 

After that, pacman completed the upgrade

Last edited by ludenticus (2018-06-07 14:45:18)

Offline

#18 2018-06-07 14:48:03

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,463

Re: [SOLVED] Error when updating python-gobject

Which has nothing to do with this thread, especially since it's 5 years old. Don't threadjack and don't necrobump.

Offline

#19 2018-06-07 14:51:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: [SOLVED] Error when updating python-gobject

Closing this old thread.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB