Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 636460

Summary: net-analyzer/fail2ban-0.9.7 : ImportError: No module named StringIO
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal Keywords: TESTFAILURE
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=627870
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-analyzer:fail2ban-0.9.7:20171103-181235.log
temp.tbz2

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.