Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487706 - =games-board/pychess-0.10.1-r1 - SyntaxError: invalid syntax @ File "/usr/lib64/python2.7/site-packages/pychess/Players/PyChess.py", line 32
Summary: =games-board/pychess-0.10.1-r1 - SyntaxError: invalid syntax @ File "/usr/lib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL: https://bugs.archlinux.org/task/21566
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-12 00:37 UTC by Benjamin Schulz
Modified: 2013-11-29 16:09 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 Benjamin Schulz 2013-10-12 00:37:22 UTC
starting pychess yields in a dialog, where it says it searches for chess engines, and this dialog does not vanish.

console output is: 
pychess
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
/usr/lib64/python2.7/site-packages/pychess/Main.py:240: GtkWarning: IA__gtk_widget_set_events: assertion `!gtk_widget_get_realized (widget)' failed
  widgets["menubar1"].set_events(widgets["menubar1"].get_events() | gtk.gdk.DRAG_STATUS)
/usr/lib64/python2.7/site-packages/pychess/Main.py:241: GtkWarning: IA__gtk_widget_set_events: assertion `!gtk_widget_get_realized (widget)' failed
  widgets["Background"].set_events(widgets["Background"].get_events() | gtk.gdk.DRAG_STATUS)
02:35:28 Default Warning: Engine crafty failed discovery: Chan closed for 'nopost'

sys:1: Warning: GChildWatchSource: Exit status of a child process was requested but ECHILD was received by waitpid(). Most likely the process is ignoring SIGCHLD, or some other thread is invoking waitpid() with a nonpositive first argument; either behavior can break applications that use g_child_watch_add()/g_spawn_sync() either directly or indirectly.
02:35:28 ('Crafty', '02:10:28.624') Warning: Chan closed for '\n'
02:35:28 ('Crafty', '02:10:28.624') Error: Erfolg

02:35:28 ('Python', '02:10:28.668') Error:   File "/usr/lib64/python2.7/site-packages/pychess/Players/PyChess.py", line 32

02:35:28 ('Python', '02:10:28.668') Error:     print "feature done=0"

02:35:28 ('Python', '02:10:28.668') Error:                          ^

02:35:28 ('Python', '02:10:28.668') Error: SyntaxError: invalid syntax

02:35:28 ('Python', '02:10:28.668') Error: Keine Kind-Prozesse

02:35:28 ('Python', '02:10:28.668') Error: Erfolg

02:35:28 Default Warning: Engine PyChess.py failed discovery: 
02:35:28 ('Gnuchess', '02:10:28.778') Warning: Chan closed for 'nopost'
02:35:28 ('Gnuchess', '02:10:28.778') Warning: Chan closed for '\n'
02:35:28 ('Gnuchess', '02:10:28.778') Error: Erfolg

setting spymode for <GameWidget object at 0x7fc4b0085af0 (pychess+widgets+gamewidget+GameWidget at 0x2033da0)> to True



Reproducible: Always

Steps to Reproduce:
1. emerge pychess on ~amd64
2.
3.



benni@Benni-PC ~ $ emerge --info
Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.8.1, glibc-2.17, 3.11.4-gentoo x86_64)
=================================================================
System uname: Linux-3.11.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     3824724 total,    814868 free
KiB Swap:    8685564 total,   8685292 free
Timestamp of tree: Fri, 11 Oct 2013 11:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2, 3.2.5-r2, 3.3.2-r2
dev-util/ccache:          3.1.9-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.2
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo java
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3 AdobeFlash-11.x Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -march=native -fomit-frame-pointer -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 preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.iso885915@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java"
USE="X Xaw3d a52 aac acl acpi alsa amd64 aspell audio audioscrobbler bash-completion bcmath berkdb bittorrent bluetooth branding bzip2 cairo calendar cdda cdr clamav cli cmake colord consolekit contrast corefonts cpufreq cracklib crypt cups cvs cxx dbus dia dri drm dts dvd dvdr dvipdfm eap-sim ebook emboss emovix encode epub exif extra f2fs fam firefox fits flac fortran gdbm geo gif gimp gnumeric gnutls gphoto2 gpm grammar gtk hdaps hddtemp hdri html humanities hunspell iconv icu imap indi infinality inkjar interlaced ipv6 irda joystick jpeg jpeg2k kpathsea latex lcms ldap lensfun libkms libnotify live lm_sensors lock lyx lzma lzo mad math mathml metapost minizip mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ntfs ntfsprogs ogg opengl openmp openxml p2p pam pango pcre pdf perl png policykit postscript ppds pstricks publishers python qt3support qt4 quicktime rar raw readline rss sdl session smp sna spam-report spamassassin spell sqlite sse sse2 sse3 sse4_1 ssl ssse3 stars startup-notification subversion svg tcpd tex4ht theora thesaurus threads thunar tiff toolbar truetype udev udisks unicode upower usb vorbis webkit wimax wmf word-perfect wordperfect wps wxwidgets x264 xcb xcomposite xfce4 xfig xkb xml xmp xorg xpm xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel vesa i915 i965" XFCE_PLUGINS="brightness clock trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Benjamin Schulz 2013-10-12 00:39:18 UTC
perhaps i should add this info: games-board/pychess-0.10.1-r1  USE="-gstreamer" PYTHON_TARGETS="python2_7 -python2_6" 0 kB


python updater was ran, detected no problems, the problem persists even when i re-emerge pythess.
Comment 2 Julian Ospald 2013-10-12 13:02:48 UTC
you can close the dialogue and gnuchess engine should still work
Comment 3 Benjamin Schulz 2013-10-12 13:41:23 UTC
yes exactly, gnuchess and crafty work.
Comment 4 Julian Ospald 2013-10-12 13:42:56 UTC
(In reply to Benjamin Schulz from comment #3)
> yes exactly, gnuchess and crafty work.

I'm investigating this... it seems to be fixed in 0.12beta3.
Comment 5 Julian Ospald 2013-10-20 18:01:41 UTC
I have the fix locally, but I want to wait on bug 487788 to be fixed first, so people get a working ebuild on update.
Comment 6 Julian Ospald 2013-10-22 18:17:13 UTC
+*pychess-0.10.1-r2 (22 Oct 2013)
+
+  22 Oct 2013; Julian Ospald <hasufell@gentoo.org> +pychess-0.10.1-r2.ebuild,
+  +files/pychess-0.10.1-python.patch:
+  fix engine detection when python3 is eselected wrt #487706


will close when -r2 hits stable
Comment 7 Benjamin Schulz 2013-11-29 16:09:11 UTC
works now. can be closed.