You are not logged in.
Hi,
I had a strange problem today. I did a big update today (1 giga). I had a conflict with wxpython.
I removed wxpython and installed it again. When installing wxpython, I get a lot of
wxpython: /usr/lib/python2.7/site-packages/wx.pth exists in filesystemI checked to see if fiel are own by a package and it is not hte case as you can see:
LANG=en pacman -Qo /usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wxPython/xrc.py
error: No package owns /usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wxPython/xrc.pyI tried on few other files. It looks like wxpython did not uninstall well. I've never face such an ugly problem. What could I do?
Last edited by manouchk (2011-08-13 21:35:07)
Offline
Have you tried moving the problem files out of the way after uninstalling? Maybe something like this:
cd /usr/lib/python2.7/site-packages
mv {,PROB}wx.pth
mv {,PROB}wx-2.8-gtk2-unicode
pacman -S wxpythonNote that the syntax {,PROB} uses brace expansion to reproduce the file or directory name with the braces replaced with each comma-separated item inside. In this example the file and directory are renamed with PROB prepended.
If it works, clean up by deleting all the PROB files and directories.
If that doesn't work, you can always rename them back (using {PROB,} if you want) and keep searching for a different solution.
Last edited by KenJackson (2011-08-13 19:20:50)
Offline
OK, thank you very much KenJackson. I didn't know shell brace expansion, just remembered I,ve already used it without trying to understand it... I really should learn a bit more of shell! Just living in python is a bit restrictive!!
I did move the file you suggested and a few other files that are not owned by any packages and wxpython seems to be working.
The other files are shown in the full script I used:
cd /usr/lib/python2.7/site-packages
mv {,PROB}wx.pth
mv {,PROB}wxversion.py
mv {,PROB}wxversion.pyc
mv {,PROB}wx-2.8-gtk2-unicode
cd /usr/bin
mv {,PROB}editra
mv {,PROB}helpviewer
mv {,PROB}img2png
mv {,PROB}img2py
mv {,PROB}img2xpm
mv {,PROB}pyalacarte
mv {,PROB}pyalamode
mv {,PROB}pycrust
mv {,PROB}pyshell
mv {,PROB}pywrap
mv {,PROB}pywxrc
mv {,PROB}xrced
pacman -S wxpythonThe problems seems solved but does not explain why this problem occured... I'm closing the topic so far.
Last edited by manouchk (2011-08-13 21:27:29)
Offline