Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366799 - media-sound/solfege doesn't start after python update "TypeError: integer argument expected, got float"
Summary: media-sound/solfege doesn't start after python update "TypeError: integer arg...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal critical (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 22:21 UTC by Porcupine of the Moon
Modified: 2011-05-29 16:58 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 Porcupine of the Moon 2011-05-10 22:21:49 UTC
After a python update solfege does crash when trying to start.

Problem observed on solfege versions 3.18.7 and 3.19.7.

This is written in the console:

Traceback (most recent call last):
  File "/usr/share/solfege/solfege/startup.py", line 160, in start_gui
    solfege.win.load_frontpage()
  File "/usr/share/solfege/solfege/mainwin.py", line 206, in load_frontpage
    self.display_frontpage()
  File "/usr/share/solfege/solfege/mainwin.py", line 616, in display_frontpage
    self.get_view().display_data(data, show_topics=show_topics)
  File "/usr/share/solfege/solfege/esel.py", line 332, in display_data
    show_topics)
  File "/usr/share/solfege/solfege/esel.py", line 270, in _display_data
    self.adjust_scrolledwin_size()
  File "/usr/share/solfege/solfege/esel.py", line 126, in adjust_scrolledwin_size
    self.set_size_request(w, h if h > self.m_min_height else self.m_min_height)
TypeError: integer argument expected, got float

Then the program is frozen. The splash is still visible.

Reproducible: Always

Steps to Reproduce:
start solfege
Actual Results:  
solfege freezes with the message "TypeError: integer argument expected, got float"

Expected Results:  
solfege should run without errors

After emerge -vauND world I also let python-updater and revdep-rebuild run.
Comment 1 Porcupine of the Moon 2011-05-10 22:29:02 UTC
(In reply to comment #0)
> After a python update solfege does crash when trying to start.
> 
> Problem observed on solfege versions 3.18.7 and 3.19.7.
> 
> This is written in the console:
> 
> Traceback (most recent call last):
>   File "/usr/share/solfege/solfege/startup.py", line 160, in start_gui
>     solfege.win.load_frontpage()
>   File "/usr/share/solfege/solfege/mainwin.py", line 206, in load_frontpage
>     self.display_frontpage()
>   File "/usr/share/solfege/solfege/mainwin.py", line 616, in display_frontpage
>     self.get_view().display_data(data, show_topics=show_topics)
>   File "/usr/share/solfege/solfege/esel.py", line 332, in display_data
>     show_topics)
>   File "/usr/share/solfege/solfege/esel.py", line 270, in _display_data
>     self.adjust_scrolledwin_size()
>   File "/usr/share/solfege/solfege/esel.py", line 126, in
> adjust_scrolledwin_size
>     self.set_size_request(w, h if h > self.m_min_height else self.m_min_height)
> TypeError: integer argument expected, got float
> 
> Then the program is frozen. The splash is still visible.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> start solfege
> Actual Results:  
> solfege freezes with the message "TypeError: integer argument expected, got
> float"
> 
> Expected Results:  
> solfege should run without errors
> 
> After emerge -vauND world I also let python-updater and revdep-rebuild run.

I forgot:
On my system python2.7 is set as main active python interpreter.
also python3.1 is installed
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-12 23:00:18 UTC
Please post your `emerge --info' output too.
Comment 3 Porcupine of the Moon 2011-05-13 16:06:41 UTC
(In reply to comment #2)
> Please post your `emerge --info' output too.

Here you go:

Portage 2.1.9.42 (default/linux/x86/10.0, gcc-4.4.5, libc-0-r0, 2.6.38-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.38-gentoo-r5-i686-Intel-R-_Atom-TM-_CPU_N280_@_1.66GHz-with-gentoo-2.0.2
Timestamp of tree: Thu, 12 May 2011 15:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -msse3 -march=core2 -mfpmath=sse -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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="-O2 -msse3 -march=core2 -mfpmath=sse -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/foo-overlay /var/lib/layman/nuteater /var/lib/layman/sunrise /var/lib/layman/pro-audio /var/lib/layman/java-overlay /var/lib/layman/sonstiges /var/lib/layman/kde-sunset"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dfx 3dnow X aac acl acpi alsa altenburgcards anthy apng applet artworkextra asn aspell audio avahi berkdb bluetooth branding bzip2 cairo cddb cjk cli config-file consolekit cpudetection cracklib crypt cups cvs cxx dbus device-mapper disk-partition djvu dns dri dtmf dvd dvi dvipdfm emerald encode extensions extra extras fbcon ffmpeg fftw flac fluidsynth fortran ftp fts3 fuse gconf gd gdbm gdu gedit gif gimp git glitz gnome gnome-keyring gnutls gphoto2 gpm graphics gs gstreamer gtk h323 hddtemp hpcups hpijs http http-forms http-server httpd iconv id3tag imagemagick immqt-bc inkjar ipv6 jabber jack jackmidi jadetex java jingle jpeg jpeg2k kpathsea ladspa laptop latex latex3 lcms libnotify libsamplerate libv4l2 lm_sensors lv2 m17n-lib mad mail mdnsresponder-compat memoryview midi mikmod mmx modules mono moonlight mp3 mp4 mpeg mudflap musepack musicbrainz nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl php pipechan plotutils pmu png policykit ppds pppd pulseaudio python qos qt3 qt3support qt4 rar raw readline remote ruby samba sasl science scim sdl session shmvideo sip slp smb smbsharemodes sndfile snmp soap socks spell sqlite sse sse2 sse3 ssl stream stun subversion svg svga symlink sysfs t1lib tcpd theora tiff timidity tk toolbar tools tordns truetype unicode unsupported upnp url usb utils v4l v4l2 vamp vdpau video video-file vim-syntax vorbis vxml wav win32codecs wma wxwidgets x86 xcb xinerama xml xmlrpc xmprpc xorg xulrunner xv zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 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" 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="synaptics evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="intel" 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
Comment 4 Porcupine of the Moon 2011-05-17 17:36:19 UTC
Same problem with solfege-3.19.8.

I did a python downgrade to python-2.6.6-r2. With this version solfege is running fine.
Comment 5 Tim Harder gentoo-dev 2011-05-17 20:40:05 UTC
(In reply to comment #4)
> Same problem with solfege-3.19.8.
> 
> I did a python downgrade to python-2.6.6-r2. With this version solfege is
> running fine.

I'm not able to reproduce this on my system with python-2.7.1-r1 as the active interpreter. However, it sounds like the problem may be with an external package such as pygtk.

This probably isn't the problem but did you run python-updater after python2.7 was set as the main interpreter?
Comment 6 Porcupine of the Moon 2011-05-17 21:23:19 UTC
> This probably isn't the problem but did you run python-updater after python2.7
> was set as the main interpreter?

Yes. After setting python2.7 as main active python interpreter with eselect I run python-updater.

Additionally I tried to solve the problem with revdep-rebuild but unfortunately this was without success.
Comment 7 Porcupine of the Moon 2011-05-17 21:28:46 UTC
This link is no big help, but you can see some guy has the same problem with archlinux:

http://www.solfege.org/SITS-Incoming/SolfegeFailsToStartOnFreshArchlinuxInstall
Comment 8 Tim Harder gentoo-dev 2011-05-18 20:58:27 UTC
(In reply to comment #7)
> This link is no big help, but you can see some guy has the same problem with
> archlinux:
> 
> http://www.solfege.org/SITS-Incoming/SolfegeFailsToStartOnFreshArchlinuxInstall

Yeah, I found that too. You may find it useful to report this bug to upstream and see what they make of it as well.
Comment 9 Porcupine of the Moon 2011-05-18 22:00:00 UTC
> Yeah, I found that too. You may find it useful to report this bug to upstream
> and see what they make of it as well.

Maybe this is a stupid question, but who do you mean with upstream? The solfege developers?
Comment 10 Tim Harder gentoo-dev 2011-05-19 00:44:58 UTC
(In reply to comment #9)
> Maybe this is a stupid question, but who do you mean with upstream? The solfege
> developers?

Yep, the solfege developers. You can see if anyone has run into your issue before at [1] and if not submit a new one.

[1]: http://code.google.com/p/solfege/issues/list
Comment 11 Tim Harder gentoo-dev 2011-05-27 10:49:10 UTC
Thanks for reporting the bug upstream. Apparently it should now be fixed in 3.19.9 which I just added to CVS.
Comment 12 Porcupine of the Moon 2011-05-29 16:58:06 UTC
(In reply to comment #11)
> Thanks for reporting the bug upstream. Apparently it should now be fixed in
> 3.19.9 which I just added to CVS.

Sorry for the late response. I did not have the time for an update in the last days.

I can confirm that the problem is solved with solfege-3.19.9. It is now running fine with python 2.7.

Thank you for the support.