After Updating Python to 2.6, Portato 12 not works [Solved]

Anything that pertains to Portage

Moderator: Moderators

After Updating Python to 2.6, Portato 12 not works [Solved]

Postby albfneto » Sat Jun 27, 2009 7:38

Hi.
In one of my installations of Sabayon, mantained with Portage, and not Entropy, after updating python or install portato, updating portato (this changes python dependencies), Portato 12 no more works....
editing or deleting portato.cfg file, deleting the dir portato , reinstall portato are unsucessfull.
also, tries to downgrade to the portato 10 (originally working), 11 are sucessfull BUT the installed portato no more opens...

This is the output of the command for open portato:

Code: Select all
localhost albfneto # portato
Traceback (most recent call last):
  File "/usr/bin/portato", line 94, in <module>
    main()
  File "/usr/bin/portato", line 49, in main
    from portato.gui import run
  File "/usr/lib64/python2.6/site-packages/portato/gui/__init__.py", line 16, in <module>
    from .exception_handling import register_ex_handler
  File "/usr/lib64/python2.6/site-packages/portato/gui/exception_handling.py", line 16, in <module>
    import gtk, pango, gobject
  File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 48, in <module>
    from gtk import _gtk
ImportError: No module named cairo
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib64/python2.6/site-packages/portato/plistener.py", line 134, in close
    if self._sig is not None:
AttributeError: 'PListener' object has no attribute '_sig'
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/usr/lib64/python2.6/site-packages/portato/plistener.py", line 134, in close
    if self._sig is not None:
AttributeError: 'PListener' object has no attribute '_sig'



Seems to me to be Python errors.
If i tried with porthole, it installs but not opens, as portato,
kuroo (recently returned to portage) no installs, because blocked by many KDE dependencies....
Last edited by albfneto on Sat Jul 04, 2009 6:53, edited 1 time in total.
ALBERTO FEDERMAN NETO
albfneto
[email protected]
Favorite Distros: Sabayon, Gentoo, Mageia and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1711
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil

Re: After Updating Python to 2.6, Portato 12 no more works.

Postby wolfden » Sat Jun 27, 2009 8:16

did u run python-updater?
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: After Updating Python to 2.6, Portato 12 no more works.

Postby joost » Sat Jun 27, 2009 9:16

@albfneto

I often wonder if you have a clue what you are doing.
:D

You need to migrate every package that has modules build in /usr/lib64/python2.5/site-packages/ so it will get build in /usr/lib64/python2.6/site-packages/.

Thats why you get this error.
The command wolfden gave you checks out what packages need to be migrated.

I suggest using it like this:

Code: Select all
python-updater -i


append the -i to ignore package versions. Because allot of things have been removed from portage already. This will pull in updated packages that need updated depends and some will cause difficult blockers. :D
joost
Sagely Hen
 
Posts: 2574
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: After Updating Python to 2.6, Portato 12 no more works.

Postby Fitzcarraldo » Sat Jun 27, 2009 16:24

If that does not help, I would suggest entering the command eselect python list as root. Does it show python2.5 or python2.6 selected? If necessary, enter the command eselect python set n where n is the number in square brackets next to python2.6. Then run the Python updater as joost suggested.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: After Updating Python to 2.6, Portato 12 no more works.

Postby albfneto » Mon Jun 29, 2009 6:39

I carried ou this... the Python version in use is the 2.6, in eselect list.

But the comand `python-updater -i` not works, because the message said that `etcproposals` not have the ebuild, but the strange is that etcproposals had an ebuild and also is installed.
See the output of the commands

Code: Select all

TRY TO RUN PYTHON-UPDATER

localhost albfneto # sudo python-updater  -i

 * Starting Python Updater from 2.5 to 2.6 :
 * Searching for packages with files in /usr/lib/python2.5 /usr/lib32/python2.5 /usr/lib64/python2.5 ..
 * Adding to list: xfce-extra/exo:0
 * Adding to list: x11-apps/fusion-icon:0
 * Adding to list: x11-apps/ccsm:0
 * Adding to list (manually): x11-libs/vte:0
 * Adding to list: x11-misc/alacarte:0
 * Adding to list: games-strategy/wesnoth:0
 * Adding to list: dev-tcltk/snack:0
 * Adding to list: app-mobilephone/obexftp:0
 * Adding to list: app-admin/gamin:0
 * Adding to list: app-admin/pessulus:0
 * Adding to list: app-admin/webapp-config:0
 * Adding to list: app-admin/sabayon:0
 * Adding to list: gnome-base/gnome-applets:2
 * Adding to list: gnome-base/gnome-menus:0
 * Adding to list: app-misc/beagle:0
 * Adding to list: app-text/mftrace:1
 * Adding to list: app-accessibility/orca:0
 * Adding to list: app-portage/layman:0
 * Adding to list: app-portage/etc-proposals:0
 * Adding to list: app-portage/etcproposals:0
 * Adding to list: media-gfx/graphviz:0
 * Adding to list: net-dns/avahi:0
 * Adding to list: net-p2p/deluge:0
 * Adding to list: media-libs/lcms:0
 * Adding to list: media-libs/tunepimp:0
 * Adding to list: media-libs/mutagen:0
 * Adding to list: media-libs/libgpod:0
 * Adding to list: sys-apps/file:0
 * Adding to list: sys-libs/libieee1284:0
 * Adding to list: sys-libs/cracklib:0
 * Adding to list: sys-libs/libcap:0
 * Adding to list: app-emulation/wine-doors:0
 * Adding to list: app-emulation/virtinst:0
 * Adding to list: app-emulation/libvirt:0
 * Adding to list: net-fs/samba:0
 * Adding to list: net-libs/gtk-vnc:0
 * Adding to list: net-zope/zopeinterface:0
 * Adding to list: net-print/hplip:0
 * Adding to list: x11-wm/metisse:0
 * Adding to list: dev-java/java-config:0
 * Adding to list: dev-java/java-config:2
 * Adding to list: dev-java/antlr:0
 * Adding to list: dev-libs/libxslt:0
 * Adding to list: dev-libs/newt:0
 * Adding to list (manually): dev-libs/boost:0
 * Adding to list: dev-libs/beecrypt:0
 * Adding to list: dev-libs/libdnet:0
 * Adding to list: dev-libs/libxml2:2
 * Adding to list: dev-util/xdelta:3
 * Adding to list: dev-util/scons:0
 * Adding to list: dev-util/subversion:0
 * Adding to list: dev-python/gnome-python-desktop:0
 * Adding to list: dev-python/Louie:0
 * Adding to list: dev-python/eyeD3:0
 * Adding to list: dev-python/m2crypto:0
 * Adding to list: dev-python/Coherence:0
 * Adding to list: dev-python/pyxdg:0
 * Adding to list: dev-python/tagpy:0
 * Adding to list: dev-python/egenix-mx-base:0
 * Adding to list: dev-python/pyparted:0
 * Adding to list: dev-python/cddb-py:0
 * Adding to list: dev-python/celementtree:0
 * Adding to list: dev-python/elementtree:0
 * Adding to list: dev-python/pigment-python:0
 * Adding to list: dev-python/notify-python:0
 * Adding to list: dev-python/pygtkglext:0
 * Adding to list: dev-python/pyvorbis:0
 * Adding to list: dev-python/twisted:0
 * Adding to list: dev-python/lxml:0
 * Adding to list: dev-python/sip:0
 * Adding to list: dev-python/pyrex:0
 * Adding to list: dev-python/configobj:0
 * Adding to list: dev-python/nevow:0
 * Adding to list: dev-python/nevow:0
 * Adding to list: dev-python/urlgrabber:0
 * Adding to list: dev-python/python-ldap:0
 * Adding to list: dev-python/pykde:0
 * Adding to list: dev-python/dbus-python:0
 * Adding to list: dev-python/gnome-python-extras:0
 * Adding to list: dev-python/pysqlite:2
 * Adding to list: dev-python/pyid3lib:0
 * Adding to list: dev-python/pylirc:0
 * Adding to list: dev-python/wxpython:2.6
 * Adding to list: dev-python/imaging:0
 * Adding to list: dev-python/pymad:0
 * Adding to list: dev-python/pythondialog:0
 * Adding to list: dev-python/pyogg:0
 * Adding to list: dev-python/compizconfig-python:0
 * Adding to list: dev-python/PyQt4:0
 * Adding to list: dev-python/python-fchksum:0
 * Adding to list: dev-python/mmpython:0
 * Adding to list: dev-python/PyQt:0
 * Adding to list: dev-python/pycrash:0
 * Adding to list: dev-python/pygtksourceview:2
 * Adding to list: dev-python/pyorbit:0
 * Adding to list: dev-python/numeric:0
 * Adding to list: dev-python/ctypes:0
 * Adding to list: dev-python/setuptools:0
 * Adding to list: dev-python/soappy:0
 * Adding to list: dev-python/numpy:0
 * Adding to list: dev-python/pyopengl:0
 * Adding to list: dev-python/pycairo:0
 * Adding to list: dev-python/fpconst:0
 * Adding to list: dev-python/pyxml:0
 * Adding to list: dev-python/twisted-web:0
 * Adding to list: dev-python/gst-python:0.10
 * Adding to list: dev-python/gdata:0
 * Adding to list: dev-python/id3-py:0
 * Adding to list: dev-python/pygame:0
 * Adding to list: dev-python/qscintilla-python:0
 * Adding to list: dev-python/pyopenssl:0
 * Adding to list: dev-python/gnome-python:2
 * Adding to list: dev-python/pycrypto:0
 * Adding to list: net-wireless/libbtctl:0
 * Adding to list: media-sound/jack:0
 * Adding to list: gnome-extra/gnome-games:0
 * Adding to list: gnome-extra/libgsf:0
 * Adding to list: gnome-extra/at-spi:1
 * Adding to list: gnome-extra/deskbar-applet:0
 * Adding to list: app-pda/pilot-link:0
 * Adding to list: app-pda/libopensync:0
 * Adding to list: media-plugins/elisa-plugins-good:0
 * Adding to list: media-plugins/elisa-plugins-ugly:0
 * Adding to list: media-plugins/elisa-plugins-bad:0
 * Adding to list: media-tv/elisa:0
 * Adding to list: media-tv/miro:0
 * Adding to list: net-analyzer/net-snmp:0
 * Adding to list: net-analyzer/nmap:0

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "app-portage/etcproposals:0".


 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

TRYING TO SEARCH FOR etcproposals

localhost albfneto # emerge -s etcproposals
Searching...
[ Results for search key : etcproposals ]
[ Applications found : 1 ]

*  app-portage/etcproposals
      Latest version installed: 1.3
      Homepage:      http://developer.berlios.de/projects/etc-proposals/
      Description:   a set of tools for updating gentoo config files
      License:       GPL-2     

I TRIED ALSO TO UPDATE ETCPROPOSALS, BUT NOW...

localhost albfneto # sudo emerge -av etcproposals

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "app-portage/etcproposals".

                                                               
ALBERTO FEDERMAN NETO
albfneto
[email protected]
Favorite Distros: Sabayon, Gentoo, Mageia and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1711
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil

Re: After Updating Python to 2.6, Portato 12 no more works.

Postby Fitzcarraldo » Mon Jun 29, 2009 6:59

There is no longer a package called etcproposals: the developer of the package renamed it as etc-proposals at my suggestion back in 2007 (see Comment No. 26 in Gentoo Bugzilla Report No. 155546).

So no need to worry, just re-merge etc-proposals and all the other packages listed by python-updater -i if you haven't done so already.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7981
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: After Updating Python to 2.6, Portato 12 not works [Solved

Postby albfneto » Sat Jul 04, 2009 6:56

Solved.
after emerging the packages, an exception of two, that were blocked, but resolved ina usual manner, deleting blocker package, emerge the target package, an therefore re-emerging the blocker (in new version), all works.
Thanks...
ALBERTO FEDERMAN NETO
albfneto
[email protected]
Favorite Distros: Sabayon, Gentoo, Mageia and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1711
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 0 guests