Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454860 - sys-apps/pyrenamer: Does not work with python3
Summary: sys-apps/pyrenamer: Does not work with python3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-31 16:12 UTC by tman
Modified: 2013-02-16 11:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2013-01-31 16:12:28 UTC
~ $ pyrenamer 
  File "/usr/bin/pyrenamer", line 28
    print "PyGtk 2.0 or later required for this app to run"
                                                          ^
SyntaxError: invalid syntax


############

there is a solution for this problem?

Reproducible: Always




x # eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2 *


Portage 2.1.11.50 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.16.0, 3.7.4-gentoo x86_64)
=================================================================
System uname: Linux-3.7.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:    24628516 total,  23680440 free
KiB Swap:   24574972 total,  24574972 free
Timestamp of tree: Thu, 31 Jan 2013 15:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p42
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo mpd nikai ruby emacs gamerlay science mgorny scarabeus qt wirelay Techwolf poly-c mva luman flameeyes-overlay lokal
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/X11/Sessions/awesome /etc/X11/Sessions/dwm /etc/conf.d/hwclock /etc/conf.d/keymaps /etc/default/grub /etc/fstab /etc/hosts /etc/make.conf /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
Comment 1 Rafał Mużyło 2013-01-31 18:55:21 UTC
Probably it should be restricted to python2, for many reasons, not limited to the syntax.
Comment 2 tman 2013-02-15 16:49:59 UTC
yes it seems to only work with python 2. 

could your please let it only use python 2 if both are installed?
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2013-02-16 00:24:30 UTC
+*pyrenamer-0.6.0-r1 (16 Feb 2013)
+
+  16 Feb 2013; Markos Chandras <hwoarang@gentoo.org> +pyrenamer-0.6.0-r1.ebuild,
+  -pyrenamer-0.6.0.ebuild:
+  Restrict python3 and use python2 even if python3 is set as the main python
+  interpreter. Bug #454860
+
Comment 4 tman 2013-02-16 06:39:40 UTC
thanks 

now the the programm start fine. but it tested to start from sole to see any error: i guess the depencies must be change:


i got following error: 


 ~ $ pyrenamer 
WARNING: python-hachoir-metadata not found.
WARNING: python-eyed3 not found.
WARNING: Music rename disabled!
/usr/lib64/python2.7/site-packages/pyrenamer/pyrenamer.py:120: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  self.glade_tree = gtk.glade.XML(pyrenamerglob.gladefile, "main_window")
/usr/lib64/python2.7/site-packages/pyrenamer/pyrenamer.py:328: GtkWarning: IA__gtk_window_resize: assertion `width > 0' failed
  self.main_window.resize(self.window_width, self.window_height)
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2013-02-16 10:30:21 UTC
This is a different problem and you need to open a separate bug. Don't mix two issues on the same bug report