Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640726 - dev-python/botocore-1.8.6 : [TEST] ImportError: No module named botocore.session
Summary: dev-python/botocore-1.8.6 : [TEST] ImportError: No module named botocore.session
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andriy Utkin (RETIRED)
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-12-11 18:12 UTC by Toralf Förster
Modified: 2017-12-15 16:30 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.15 KB, text/plain)
2017-12-11 18:12 UTC, Toralf Förster
Details
dev-python:botocore-1.8.6:20171211-090548.log.bz2 (dev-python:botocore-1.8.6:20171211-090548.log.bz2,196.73 KB, application/x-bzip)
2017-12-11 18:12 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,124.40 KB, text/plain)
2017-12-11 18:12 UTC, Toralf Förster
Details
environment (environment,111.98 KB, text/plain)
2017-12-11 18:13 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.37 KB, application/x-bzip)
2017-12-11 18:13 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,415.14 KB, application/x-bzip)
2017-12-11 18:13 UTC, Toralf Förster
Details
tests.tbz2 (tests.tbz2,253.53 KB, application/x-bzip)
2017-12-11 18:13 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-12-11 18:12:47 UTC
  File "/var/tmp/portage/dev-python/botocore-1.8.6/work/botocore-1.8.6/tests/cmd-runner", line 72, in <module>
    import botocore.session
ImportError: No module named botocore.session
ERROR
ERROR
test_create_memory_paginators_in_loop (tests.functional.leak.test_resource_leaks.TestDoesNotLeakMemory) ... Traceback (most recent call last):

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib-hardened_libressl-test_20171208-170410

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv dev-python/botocore
[ebuild  N    ] dev-python/botocore-1.8.6  USE="-doc {-test}" PYTHON_TARGETS="python2_7 python3_5 -python3_4 -python3_6"
Comment 1 Toralf Förster gentoo-dev 2017-12-11 18:12:50 UTC
Created attachment 509418 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-12-11 18:12:53 UTC
Created attachment 509420 [details]
dev-python:botocore-1.8.6:20171211-090548.log.bz2
Comment 3 Toralf Förster gentoo-dev 2017-12-11 18:12:57 UTC
Created attachment 509422 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-12-11 18:13:00 UTC
Created attachment 509424 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-12-11 18:13:04 UTC
Created attachment 509426 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-12-11 18:13:07 UTC
Created attachment 509428 [details]
temp.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-12-11 18:13:10 UTC
Created attachment 509430 [details]
tests.tbz2
Comment 8 Andriy Utkin (RETIRED) gentoo-dev 2017-12-12 00:28:18 UTC
Oops. Apparently caused by my recent commit https://github.com/gentoo/gentoo/commit/e1fabdbdb95dc3870e2a9a9b6e7492ee10385789 .

Looking into reproducing and resolving this. Thanks for reporting.
Comment 9 Andriy Utkin (RETIRED) gentoo-dev 2017-12-12 15:08:57 UTC
Reproduces only if botocore was not previously installed (with FEATURES=-test), that's how I missed it.
Comment 10 Larry the Git Cow gentoo-dev 2017-12-15 10:10:31 UTC
The bug has been referenced in the following commit(s):

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

commit e580cd8f1440cd5e12d42017cc6c645ab7be71b1
Author:     Andrey Utkin <andrey_utkin@gentoo.org>
AuthorDate: 2017-12-15 01:16:44 +0000
Commit:     Andrey Utkin <andrey_utkin@gentoo.org>
CommitDate: 2017-12-15 10:09:08 +0000

    dev-python/botocore: fix running tests
    
    Functional tests suite, recently added to src_test phase, ended up using
    library files already installed, and not what is to be installed.
    
    This is handled now by passing custom PYTHONPATH, and patching tests
    suite to not discard custom PYTHONPATH when launching child processes.
    
    "nosetests" invocation for unit and functional test suites was split
    into two as it doesn't work correctly when given two directory paths. It
    looks like PYTHONPATH is not properly passed in that case. The reason is
    unknown.
    
    Fixes: e1fabdbdb95d ("dev-python/botocore: run also functional tests")
    Bug: https://bugs.gentoo.org/640726
    Package-Manager: Portage-2.3.17, Repoman-2.3.6

 dev-python/botocore/botocore-1.8.6.ebuild          |  5 +++-
 ...8.6-tests-pass-all-env-vars-to-cmd-runner.patch | 32 ++++++++++++++++++++++
 2 files changed, 36 insertions(+), 1 deletion(-)}
Comment 11 Andriy Utkin (RETIRED) gentoo-dev 2017-12-15 10:12:27 UTC
Toralf, could you please retest and close the bug if solved?
Comment 12 Andriy Utkin (RETIRED) gentoo-dev 2017-12-15 16:30:24 UTC
Closing per agreement with Toralf. I hope the fix is working.