Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Miro e Python: come installare con un determinata versione?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
lumumba
n00b
n00b


Joined: 19 Apr 2005
Posts: 29
Location: Milano

PostPosted: Mon Feb 25, 2008 3:29 pm    Post subject: Miro e Python: come installare con un determinata versione? Reply with quote

Ciao a tutti,

installando qua e là mi è capitato di dover smascherare l'ebuild ~x86 di python. Dopo averlo installato (emerso è troppo brutto, no? :?: ), emerge mi ha consigliato di dare un bel python-updater.

Non l'avessi mai fatto!!!! Dopo tanto aver smascherato e quì e là mi son ritrovato con Miro che non vuole più partire ....

Ecco cosa mi dice provando a lanciare miro:

Code:
mubumba@senofonte ~ $ miro
/usr/lib/xulrunner
/usr/lib/python2.5/site-packages/miro/eventloop.py:34: RuntimeWarning: Python C API version mismatch for module fasttypes: This Python has API version 1013, module fasttypes has version 1012.
  import database
Traceback (most recent call last):
  File "/usr/bin/miro.real", line 119, in <module>
    iface.HandleArgs(dbusargs)
  File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 85, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.5/site-packages/dbus/proxies.py", line 169, in __call__
    reply_message = self._connection.send_message_with_reply_and_block(message, timeout)
dbus.DBusException: org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/dbus/service.py", line 451, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "usr/lib/python2.5/site-packages/miro/onetime.py", line 137, in HandleArgs
    app.controller.frame.widgetTree['main-window'].present()
AttributeError: 'NoneType' object has no attribute 'widgetTree'


Se non ho capito male è perché ora è linkato (lo so che non è il termine corretto) con il python-2.5 mentre lui vorrebbe il 2.4.

Come posso reinstallare miro dicendo ad emerge che deve usare il vecchio python (mi ricordo che anche se ho aggiornato python emerge mi dice che c'è ancora il vecchio compilatore).

Ecco qua qualche info in più:

Code:
senofonte ~ # emerge --info
Portage 2.1.4.4 (default-linux/x86/dev/2007.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-reiser4-r3 i686)
=================================================================
System uname: 2.6.23-reiser4-r3 i686 AMD Athlon(TM) XP 2800+
Timestamp of tree: Mon, 25 Feb 2008 12:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6, 2.5.1-r5
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ing.unibo.it/gentoo/ ftp://mirror.ing.unibo.it/gentoo/ "
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/Dottout /usr/portage/local /usr/portage/local/layman"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dfx 3dnow 3dnowext 7zip X X10 X509 a52 aac aalib acl alsa apache2 audacious autostart avahi bash-completion berkdb bgpclassless bitmap-fonts bonjour branding bugzilla bzip2 cairo caps cdda cddb cdparanoia cdr cli cpudetection cracklib crypt cups cvs daap dbus device-mapper dga directv divx dri dts dv dvb dvd dvdnav dvdr dvdread emf encode epydoc esd exif fame fat ffmpeg firefox fix-connected-rt flac flash fortran fping freebox fuse gdbm geoip gif gimp glsa gmail gmedia gnome gnutls gpg gpm groupwise gsm gstreamer gtk hal hddtemp hfs iconv imagemagick imap imlib injection innodb inode ipod iproute2 ipsec iptv ipv6 isdnlog jabber jack jack-tmpfs java jpeg jpeg2k keyring l7filter ladcca ladspa lame lcms ldap ldap-sasl libnotify lm_sensors logrotate lzo mad madwifi matroska mbox md5sum meanwhile menu-plugin mhash midi mime mjpeg mmap mmx mmxext mng mono motif mp2 mp3 mp3rtp mp4 mpeg mpeg2 mplayer msn mudflap multicall multipath musepack musicbrainz mysql nautilus ncurses net netbeans netjack network nls nodrm normalize nptl nptlonly nsplugin ntfs odbc offensive ogg opengl openmp openntpd ospfapi oss pam passwordsave pbxt pcre pda pdf perl php pidgin pipe player plotutils plugins png portage portaudio postscript pppd prediction psyco python qt3 quicktime rar readline real realmedia realms reflection reiser4 reiserfs rpm sdl session snmp sound source speex spell spl sqlite sse sse2 ssl startup-notification subtitles subversion svg svga tagwriting tcl tcp-zebra tcpd tcpmd5 tetex theora threads tiff tk truetype truetype-fonts type1-fonts unicode v4l v4l2 vcd vidix vorbis webdav wifi win32codecs wireshark wma wmf wmp wxwindows x11vnc x264 x86 xattr xcomposite xen xext xfce xfs xine xml xorg xosd xpm xprint xrandr xscreensaver xulrunner xv xvid yahoo yv12 zapnet zaptel zeroconf zip zlib zrtp zsh-completion zvbi" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Code:
senofonte ~ # esearch -I python
[ Results for search key : python ]
[ Applications found : 13 ]

*  dev-lang/python
      Latest version available: 2.5.1-r5
      Latest version installed: 2.5.1-r5
      Size of downloaded files: [no/bad digest]
      Homepage:    http://www.python.org/
      Description: Python is an interpreted, interactive, object-oriented programming language.
      License:     PSF-2.2


Grazie a tutti.

Ah, una piccola avvertenza. Miro viene lanciata come applicazione xulrunner da /usr/bin/miro che poi lancia /usr/bin/miro.real

/usr/bin/miro.real è un "semplice" script bash che richiama l'interprete /usr/bin/python. Attenzione!!! Ho provato a dirgli di lanciare /usr/bin/python2.4 ma mi restituisce questo errore allora:

Code:
mubumba@senofonte ~ $ miro
/usr/lib/xulrunner
Traceback (most recent call last):
  File "/usr/bin/miro.real", line 5, in ?
    import miro.xlibhelper as xlibhelper
ImportError: No module named miro.xlibhelper
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Sat Mar 01, 2008 4:13 pm    Post subject: Reply with quote

ciao

io sto usando python2.5 da ormai un annetto e sinceramente non ho mai avuto problemi con applicazioni che si appoggiano a python.
è solo un discreto sbatti - come hai anche notato tu - dare il python-update.
quello che non capisco è quale python hai ora come default e se per caso hai provato a ricompilare miro in modo che si appoggi al 2.5.

facci sapere.
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum