Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636460 - net-analyzer/fail2ban-0.9.7 : ImportError: No module named StringIO
Summary: net-analyzer/fail2ban-0.9.7 : ImportError: No module named StringIO
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-11-03 18:18 UTC by Toralf Förster
Modified: 2019-03-27 10:32 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.65 KB, text/plain)
2017-11-03 18:18 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,114.45 KB, text/plain)
2017-11-03 18:18 UTC, Toralf Förster
Details
environment (environment,142.64 KB, text/plain)
2017-11-03 18:18 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,14.23 KB, application/x-bzip)
2017-11-03 18:18 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,3.60 KB, application/x-bzip)
2017-11-03 18:18 UTC, Toralf Förster
Details
net-analyzer:fail2ban-0.9.7:20171103-181235.log (net-analyzer:fail2ban-0.9.7:20171103-181235.log,34.48 KB, text/plain)
2017-11-03 18:18 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,32.70 KB, application/x-bzip)
2017-11-03 18:18 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-11-03 18:18:08 UTC
  File "./fail2ban/tests/utils.py", line 34, in <module>
    from StringIO import StringIO
ImportError: No module named 'StringIO'
 * ERROR: net-analyzer/fail2ban-0.9.7::gentoo failed (test phase):
 *   tests failed with python3.4
 * 

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-systemd_test_20171031-164654

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

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

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




emerge -qpv net-analyzer/fail2ban
[ebuild  N    ] net-analyzer/fail2ban-0.9.7  USE="systemd (-selinux)" PYTHON_SINGLE_TARGET="python3_4 -pypy -python2_7 -python3_5" PYTHON_TARGETS="python2_7 python3_4 -pypy -python3_5"
Comment 1 Toralf Förster gentoo-dev 2017-11-03 18:18:11 UTC
Created attachment 502362 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-11-03 18:18:14 UTC
Created attachment 502364 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-11-03 18:18:17 UTC
Created attachment 502366 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-11-03 18:18:20 UTC
Created attachment 502368 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-11-03 18:18:23 UTC
Created attachment 502370 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-11-03 18:18:27 UTC
Created attachment 502372 [details]
net-analyzer:fail2ban-0.9.7:20171103-181235.log
Comment 7 Toralf Förster gentoo-dev 2017-11-03 18:18:30 UTC
Created attachment 502374 [details]
temp.tbz2
Comment 8 Rolf Eike Beer archtester 2018-01-23 21:21:01 UTC
Happens also in 0.9.6.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2019-03-27 10:32:17 UTC
commit bdf68cec78f2dc54e255677c16785cd778fcd5c0
Author: Jeroen Roovers <jer@gentoo.org>
Date:   Wed Dec 27 12:28:07 2017 +0100

    net-analyzer/fail2ban: Version bump (bug #627870 by Joe, patch by floppym).

    Package-Manager: Portage-2.3.19, Repoman-2.3.6


I think the addition of 

+python_compile() {
+	if python_is_python3; then
+		./fail2ban-2to3 || die
+	fi
+	distutils-r1_python_compile
+}
+

might have fixed this.