Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 404441 - dev-python/pytest-2.0.3 fails tests with python:3.2
Summary: dev-python/pytest-2.0.3 fails tests with python:3.2
Status: RESOLVED DUPLICATE of bug 407039
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-18 20:04 UTC by Dustin Polke
Modified: 2012-04-04 08:04 UTC (History)
0 users

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


Attachments
build.log (build.log,23.66 KB, text/plain)
2012-02-18 20:06 UTC, Dustin Polke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin Polke 2012-02-18 20:04:43 UTC
testing/test_terminal.py .......s............Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/main.py", line 65, in pytest_cmdline_main
    config.hook.pytest_runtestloop(session=session)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 412, in __call__
    return self._docall(methods, kwargs)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 423, in _docall
    res = mc.execute()
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 341, in execute
    res = method(**kwargs)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/main.py", line 97, in pytest_runtestloop
    item.config.hook.pytest_runtest_protocol(item=item)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 412, in __call__
    return self._docall(methods, kwargs)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 423, in _docall
    res = mc.execute()
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 341, in execute
    res = method(**kwargs)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/runner.py", line 37, in pytest_runtest_protocol
    runtestprotocol(item)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/runner.py", line 44, in runtestprotocol
    reports.append(call_and_report(item, "call", log))
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/runner.py", line 84, in call_and_report
    hook.pytest_runtest_logreport(report=report)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/main.py", line 119, in call_matching_hooks
    return hookmethod.pcall(plugins, **kwargs)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 416, in pcall
    return self._docall(methods, kwargs)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 423, in _docall
    res = mc.execute()
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 341, in execute
    res = method(**kwargs)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/terminal.py", line 191, in pytest_runtest_logreport
    self.write_fspath_result(rep.fspath, letter)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/terminal.py", line 120, in write_fspath_result
    self._tw.write(res)
  File "/usr/lib64/python3.2/site-packages/py/_io/terminalwriter.py", line 165, in write
    s = self._getbytestring(s)
  File "/usr/lib64/python3.2/site-packages/py/_io/terminalwriter.py", line 173, in _getbytestring
    if self.encoding and sys.version_info[0] < 3 and isinstance(s, unicode):
NameError: global name 'unicode' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "build-3.2/lib/pytest.py", line 11, in <module>
    raise SystemExit(main())
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 458, in main
    exitstatus = hook.pytest_cmdline_main(config=config)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 412, in __call__
    return self._docall(methods, kwargs)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 423, in _docall
    res = mc.execute()
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 341, in execute
    res = method(**kwargs)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/main.py", line 74, in pytest_cmdline_main
    config.pluginmanager.notify_exception(excinfo, config.option)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 277, in notify_exception
    res = self.hook.pytest_internalerror(excrepr=excrepr)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 412, in __call__
    return self._docall(methods, kwargs)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 423, in _docall
    res = mc.execute()
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/core.py", line 341, in execute
    res = method(**kwargs)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/terminal.py", line 154, in pytest_internalerror
    self.write_line("INTERNALERROR> " + line)
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/terminal.py", line 141, in write_line
    self.ensure_newline()
  File "/var/tmp/portage/dev-python/pytest-2.0.3/work/pytest-2.0.3/build-3.2/lib/_pytest/terminal.py", line 133, in ensure_newline
    self._tw.line()
  File "/usr/lib64/python3.2/site-packages/py/_io/terminalwriter.py", line 184, in line
    self.write('\n')
  File "/usr/lib64/python3.2/site-packages/py/_io/terminalwriter.py", line 165, in write
    s = self._getbytestring(s)
  File "/usr/lib64/python3.2/site-packages/py/_io/terminalwriter.py", line 173, in _getbytestring
    if self.encoding and sys.version_info[0] < 3 and isinstance(s, unicode):
NameError: global name 'unicode' is not defined
 * ERROR: dev-python/pytest-2.0.3 failed (test phase):
 *   Testing failed with CPython 3.2 in testing() function


Portage 2.1.10.44 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.1.10-gentoo-r1-nouveau x86_64)
=================================================================
System uname: Linux-3.1.10-gentoo-r1-nouveau-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 18 Feb 2012 17:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo DuPol alon-barlev science sunrise modified-ebuilds private-ebuilds betagarden
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL cadsoft skype-eula AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32     --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/bin/mygenkernel /usr/sbin/run-crons /usr/share/cairo-dock/plug-ins/wifi/wifi /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=core2 -msse4.1 --param l1-cache-size=32     --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--ask --autounmask=n --quiet-build=n"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/     ftp://de-mirror.org/distro/gentoo/     ftp://mirror.netcologne.de/gentoo/     ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo     ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now"
LINGUAS="en de"
MAKEOPTS="-j5"
PKGDIR="/var/lib/portage/binpkg"
PORTAGE_COMPRESS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
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/DuPol /var/lib/layman/alon-barlev /var/lib/layman/science /var/lib/layman/sunrise /usr/local/portage/modified /usr/local/portage/own /var/lib/layman/betagarden"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X X509 Xaw3d a52 aac aalib accessibility acl acpi alsa amd64 amr apm audacious audiofile bash-completion berkdb bindist bl bluetooth branding bzip2 cairo cdda cdinstall cjk cli consolekit cracklib crypt css ctype cups curl cxx dbus devil dga directfb dri dts dv dvd dvdr eds encode evo exchange exif fam fbcon fbcondecor fbsplash ffmpeg flac fontforge foomaticdb fortran ftp fuse gd gdbm gif gimp git glade gmp gphoto2 gs gsm gstreamer gtk gtkhtml gtkstyle guile hddtemp hdf5 iconv icq icu idn ieee1394 imagemagick imap imlib iproute2 jack java javascript jpeg jpeg2k kerberos keyscrub kino kpathsea lame lapack laptop latex lcms libcaca libnotify libsamplerate libsexy libv4l2 libwww live lm_sensors logrotate loop-aes lzma lzo mad memlimit mikmod mime mjpeg mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib musepack ncurses nls nntp nowin nptl nptlonly nsplugin ntp nuv nvidia ods ogg opengl openmp opensslcrypt pam pch pcmcia pcre pda pdf pdfimport pgo plotutils png posix ppds pppd qt3support quicktime readline rtsp rubytests samba sasl schroedinger sdl server session simplexml slang sndfile soap sockets sou speex spell sse sse2 sse3 sse4.1 ssl ssse3 startup-notification stream subversion svg swat sysfs syslog system-sqlite tcpd tga theora threads tiff tordns truetype unicode usb userlocales v4l vcd vdpau vim-syntax vorbis wcwidth wifi winbind wma wmf wxwindows x264 xanim xcomposite xinetd xls xml xmp xorg xpm xsl xulrunner xv xvfb xvid xvmc zlib" ALSA_CARDS="hda-intel mpu401" 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="fuji 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia dummy" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS
Comment 1 Dustin Polke 2012-02-18 20:06:36 UTC
Created attachment 302433 [details]
build.log
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2012-02-22 19:05:02 UTC
that looks like a system locale setting is wrong. Saw it some time ago, some of the settings of LC_ from memory need to be unset
Comment 3 Dustin Polke 2012-02-23 18:59:59 UTC
(In reply to comment #2)
> that looks like a system locale setting is wrong. Saw it some time ago, some of
> the settings of LC_ from memory need to be unset
Does it help if I attach  the evironment to track which setting is wrong?
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2012-02-27 15:08:37 UTC
well post your locale content as in


archtester build # locale
LANG=en_AU.UTF-8
LC_CTYPE="en_AU.UTF-8"
etc
Comment 5 Dustin Polke 2012-02-27 16:42:48 UTC
(In reply to comment #4)
> well post your locale content as in
> 
> 
> archtester build # locale
> LANG=en_AU.UTF-8
> LC_CTYPE="en_AU.UTF-8"
> etc
Here you are:

 $ locale
LANG=en_US.utf8
LC_CTYPE=de_DE.utf8
LC_NUMERIC=en_US.utf8
LC_TIME="en_US.utf8"
LC_COLLATE=en_US.utf8
LC_MONETARY=de_DE.utf8
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2012-02-29 12:47:36 UTC
This
NameError: global name 'unicode' is not defined
is the line that looks like that source.  I shall have to ask another again what the right and wrong settings are, from a bug from months ago, can't remember.
Watch this space.
Comment 7 Ian Delaney (RETIRED) gentoo-dev 2012-03-02 06:34:35 UTC
I knew it.  See Bug 403681
Comment 8 Ian Delaney (RETIRED) gentoo-dev 2012-04-04 08:04:36 UTC

*** This bug has been marked as a duplicate of bug 407039 ***