Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639294 - dev-python/ujson-1.35: tests: ImportError: No module named unittest2
Summary: dev-python/ujson-1.35: tests: ImportError: No module named unittest2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 639114
  Show dependency tree
 
Reported: 2017-11-30 15:36 UTC by Thomas Deutschmann (RETIRED)
Modified: 2017-11-30 17:50 UTC (History)
1 user (show)

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 Thomas Deutschmann (RETIRED) gentoo-dev 2017-11-30 15:36:21 UTC
[...]
/usr/bin/python3.5 setup.py build                                                                               [37/419]
running build
running build_ext
building 'ujson' extension
creating /var/tmp/portage/dev-python/ujson-1.35/work/ujson-1.35-python3_5/temp.linux-i686-3.5
creating /var/tmp/portage/dev-python/ujson-1.35/work/ujson-1.35-python3_5/temp.linux-i686-3.5/python
creating /var/tmp/portage/dev-python/ujson-1.35/work/ujson-1.35-python3_5/temp.linux-i686-3.5/lib
i686-pc-linux-gnu-gcc -O2 -pipe -march=pentium4m -mtune=pentium4m -fPIC -I./python -I./lib -I/usr/include/python3.5m -c ./python/ujson.c -o /var/tmp/portage/dev-python/ujson-1.35/work/ujson-1.35-python3_5/temp.linux-i686-3.5/./python/ujson.
o -D_GNU_SOURCE
i686-pc-linux-gnu-gcc -O2 -pipe -march=pentium4m -mtune=pentium4m -fPIC -I./python -I./lib -I/usr/include/python3.5m -c
./python/objToJSON.c -o /var/tmp/portage/dev-python/ujson-1.35/work/ujson-1.35-python3_5/temp.linux-i686-3.5/./python/ob
jToJSON.o -D_GNU_SOURCE
i686-pc-linux-gnu-gcc -O2 -pipe -march=pentium4m -mtune=pentium4m -fPIC -I./python -I./lib -I/usr/include/python3.5m -c
./python/JSONtoObj.c -o /var/tmp/portage/dev-python/ujson-1.35/work/ujson-1.35-python3_5/temp.linux-i686-3.5/./python/JS
ONtoObj.o -D_GNU_SOURCE
i686-pc-linux-gnu-gcc -O2 -pipe -march=pentium4m -mtune=pentium4m -fPIC -I./python -I./lib -I/usr/include/python3.5m -c
./lib/ultrajsonenc.c -o /var/tmp/portage/dev-python/ujson-1.35/work/ujson-1.35-python3_5/temp.linux-i686-3.5/./lib/ultra
jsonenc.o -D_GNU_SOURCE
i686-pc-linux-gnu-gcc -O2 -pipe -march=pentium4m -mtune=pentium4m -fPIC -I./python -I./lib -I/usr/include/python3.5m -c
./lib/ultrajsondec.c -o /var/tmp/portage/dev-python/ujson-1.35/work/ujson-1.35-python3_5/temp.linux-i686-3.5/./lib/ultra
jsondec.o -D_GNU_SOURCE
i686-pc-linux-gnu-gcc -shared -Wl,-O1 -Wl,--as-needed -O2 -pipe -march=pentium4m -mtune=pentium4m /var/tmp/portage/dev-p
ython/ujson-1.35/work/ujson-1.35-python3_5/temp.linux-i686-3.5/./python/ujson.o /var/tmp/portage/dev-python/ujson-1.35/w
ork/ujson-1.35-python3_5/temp.linux-i686-3.5/./python/objToJSON.o /var/tmp/portage/dev-python/ujson-1.35/work/ujson-1.35
-python3_5/temp.linux-i686-3.5/./python/JSONtoObj.o /var/tmp/portage/dev-python/ujson-1.35/work/ujson-1.35-python3_5/tem
p.linux-i686-3.5/./lib/ultrajsonenc.o /var/tmp/portage/dev-python/ujson-1.35/work/ujson-1.35-python3_5/temp.linux-i686-3
.5/./lib/ultrajsondec.o -L/usr/lib -lpython3.5m -o /var/tmp/portage/dev-python/ujson-1.35/work/ujson-1.35-python3_5/lib/
ujson.cpython-35m-i386-linux-gnu.so
>>> Source compiled.
>>> Test phase: dev-python/ujson-1.35
 * python2_7: running distutils-r1_run_phase python_test
Traceback (most recent call last):
  File "tests/tests.py", line 17, in <module>
    import unittest2 as unittest
ImportError: No module named unittest2
 * ERROR: dev-python/ujson-1.35::gentoo failed (test phase):
 *   (no error message)



Looks like ujson is missing dev-python/unittest2 dependency.
Comment 1 Larry the Git Cow gentoo-dev 2017-11-30 17:50:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47cd3142d51f53febd659f3b6c58eec9c1714742

commit 47cd3142d51f53febd659f3b6c58eec9c1714742
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2017-11-30 17:50:07 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2017-11-30 17:50:07 +0000

    dev-python/ujson: depend on unittest2
    
    Closes: https://bugs.gentoo.org/639294
    Package-Manager: Portage-2.3.15, Repoman-2.3.6_p7

 dev-python/ujson/Manifest          | 2 +-
 dev-python/ujson/ujson-1.35.ebuild | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)