Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Pyhton]Problème avec divers paquets
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
SiOu
Apprentice
Apprentice


Joined: 08 Apr 2005
Posts: 271

PostPosted: Wed Dec 19, 2007 11:34 am    Post subject: [Pyhton]Problème avec divers paquets Reply with quote

Bonjour,

Voila je n'arrive pas à faire fonctionner emesene, listen, playonlinux qui utilisent tous python , coinsidence ? j'en doute ... voila les messages d'érreur

Quote:
siou@localhost ~/playonlinux $ ./playonlinux

PlayOnLinux v2.0
----------------
Checking python : [ Ok ]
Traceback (most recent call last):
File "/home/siou/playonlinux/python/mainwindow.py", line 22, in <module>
import wxversion, os, getopt, sys, urllib, signal, socket
ImportError: No module named wxversion

siou@localhost ~/playonlinux $ Traceback (most recent call last):
File "/home/siou/playonlinux/python/message.py", line 22, in <module>
import wxversion, os, getopt, sys, urllib, signal
ImportError: No module named wxversion

siou@localhost ~/playonlinux $ emesene
File "/usr/bin/emesene", line 27
python /usr/share/emesene/Controller.py
^
IndentationError: unexpected indent
siou@localhost ~/playonlinux $ listen
Traceback (most recent call last):
File "/usr/lib/listen/listen.py", line 66, in <module>
import utils, const, stock, config
File "/usr/lib64/listen/utils.py", line 33, in <module>
import stock
File "/usr/lib64/listen/stock.py", line 78, in <module>
import const
File "/usr/lib64/listen/const.py", line 116
SyntaxError: Non-ASCII character '\xc3' in file /usr/lib64/listen/const.py on line 117, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details


Je tiens à précisé que ces logiciels fonctionnait auparavent ( avant certaines mise a jours de python ) , jai bien éffectué python-updater mais rien ny fait !!

Voici mon emerge --info , si cela peut aider :

Quote:
Portage 2.1.4_rc10 (default-linux/amd64/2006.1/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.22-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r6 x86_64 Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz
Timestamp of tree: Wed, 19 Dec 2007 09:30:01 +0000
ccache version 2.4 [disabled]
app-shells/bash: 3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python: 2.4.4-r7, 2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r1
sys-devel/automake: 1.4_p6, 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.24
virtual/os-headers: 2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/glftpd/etc /opt/glftpd/ftp-data /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/udev/rules.d"
CXXFLAGS="-march=nocona -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://mirror.ovh.net/gentoo-distfiles/ "
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gnome-experimental /usr/portage/local/layman/sunrise /usr/portage/local/layman/xeffects /usr/portage/local/layman/xwing /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"


Si quelqu'un a une idée :idea:
Back to top
View user's profile Send private message
ryo-san
l33t
l33t


Joined: 17 Feb 2005
Posts: 729

PostPosted: Wed Dec 19, 2007 12:52 pm    Post subject: Reply with quote

salut,

je ne peux t'aider que pour emesene :
emesene ne s'installe pas la ou il devrait => /usr/share/emesene ce n'est pas trop ideal
pour resoudre ce petit default , fait un lien symbolique depuis /usr/share/emesene vers /usr/lib/python-$version/site-packages :
Code:

ls -l /usr/lib/python2.5/site-packages/
( ... )
lrwxrwxrwx  1 root root   19 nov 27 22:52 emesene -> /usr/share/emesene/
( ... )


et voici /usr/bin/emesene :
Code:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

#   This file is part of emesene.
#
#    Emesene is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    emesene is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with emesene; if not, write to the Free Software
#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

try:
    from emesene import Controller
except ImportError:
    import Controller

Controller.main()


EDIT: pour listen , il suffit d'editer le fichier dont on te parle parce qu'il y a un charactere de fin de ligne , il suffit de l'effacer et ca devrait rentrer dans l'ordre.
et enfin , tu pourra trouver un "dirty hack" pour play on linux , sur ce thread, dans l'avant dernier post.
Pour que tout fonctionne , il faudrait installer wxGTK-2.8 qui n'est pas dans portage encore ( me semble t-il ), cela se contourne en lisant le post cité.

++
Back to top
View user's profile Send private message
SiOu
Apprentice
Apprentice


Joined: 08 Apr 2005
Posts: 271

PostPosted: Wed Dec 19, 2007 1:21 pm    Post subject: Reply with quote

Merci J'ai régler les problèmes pour emsene et listen grace a toi miicii !!!

Quelque chose m'intrigue pourtant, comment as-tu su que emsene c'était installé dans /usr/share/emesene/ ??

Reste plus que playonlinux, apparement c'est du a wx, mais msie à part ca je sache :d
Back to top
View user's profile Send private message
ryo-san
l33t
l33t


Joined: 17 Feb 2005
Posts: 729

PostPosted: Wed Dec 19, 2007 1:54 pm    Post subject: Reply with quote

Quote:
comment as-tu su que emsene c'était installé dans /usr/share/emesene/ ??


Et bien parce-que je l'utilise ;) aussi et que j'ai eu le meme soucis.
Si la question est : comment localiser les fichiers, alors je repondrai soit
Code:
locate

soit ( et je te le recommande vivement )
Code:
emerge gentoolkit


qui contient equery.
equery fais beaucoup de choses et notamment liste tous les fichiers installés pour chaque ebuild.

Code:
equery b emesene


;)

++
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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