<86>Apr 21 00:47:08 userdel[36080]: delete user 'rooter' <86>Apr 21 00:47:08 groupadd[36376]: group added to /etc/group: name=rooter, GID=687 <86>Apr 21 00:47:08 groupadd[36376]: group added to /etc/gshadow: name=rooter <86>Apr 21 00:47:08 groupadd[36376]: new group: name=rooter, GID=687 <86>Apr 21 00:47:08 useradd[36504]: new user: name=rooter, UID=687, GID=687, home=/root, shell=/bin/bash <86>Apr 21 00:47:08 userdel[36840]: delete user 'builder' <86>Apr 21 00:47:08 userdel[36840]: removed group 'builder' owned by 'builder' <86>Apr 21 00:47:08 userdel[36840]: removed shadow group 'builder' owned by 'builder' <86>Apr 21 00:47:08 groupadd[36922]: group added to /etc/group: name=builder, GID=688 <86>Apr 21 00:47:08 groupadd[36922]: group added to /etc/gshadow: name=builder <86>Apr 21 00:47:08 groupadd[36922]: new group: name=builder, GID=688 <86>Apr 21 00:47:08 useradd[37020]: new user: name=builder, UID=688, GID=688, home=/usr/src, shell=/bin/bash <13>Apr 21 00:47:13 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 00:47:13 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 21 00:47:13 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 21 00:47:13 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 21 00:47:13 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:13 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 21 00:47:13 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 21 00:47:13 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 21 00:47:13 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 21 00:47:13 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 00:47:13 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 21 00:47:13 groupadd[52576]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 21 00:47:13 groupadd[52576]: new group: name=_keytab, GID=499 <13>Apr 21 00:47:13 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 21 00:47:14 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:47:14 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:47:14 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:14 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 21 00:47:14 rpmi: libpython3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:47:14 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 00:47:14 rpmi: python3-dev-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:47:14 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:14 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 00:47:14 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 00:47:14 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 00:47:15 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:47:15 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 00:47:15 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed Installing python-module-skimpyGimpy-1.4-alt1.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.73118 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-skimpyGimpy-1.4 + echo 'Source #0 (python-module-skimpyGimpy-1.4.tar):' Source #0 (python-module-skimpyGimpy-1.4.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-skimpyGimpy-1.4.tar + cd python-module-skimpyGimpy-1.4 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ../python3/skimpyGimpy/waveTools.py --- ../python3/skimpyGimpy/waveTools.py (original) +++ ../python3/skimpyGimpy/waveTools.py (refactored) @@ -80,7 +80,7 @@ #print samplesPerSecond, amplitude, delta,"
" #print delta*samplesPerSecond, 2*pi*frequency result = [ amplitude*sin(delta*i) - for i in xrange(nSamples) ] + for i in range(nSamples) ] return result def attenuate(samples, tailFraction=0.5, downToFraction=0.3): @@ -90,7 +90,7 @@ startIndex = nsamples-nchange scaleDelta = - (1.0-downToFraction)/nchange scaleFactor = 1.0 - scaleDelta - for index in xrange(startIndex, nsamples): + for index in range(startIndex, nsamples): scaleFactor += scaleDelta samples[index] = samples[index]*scaleFactor return samples @@ -104,7 +104,7 @@ reductionFraction = 1.0-downToFraction radians = 0.0 deltaRadians = pi/nchange - for index in xrange(startIndex, nsamples): + for index in range(startIndex, nsamples): radians += deltaRadians reduction = 0.5*cos(radians) scaleFactor = downToFraction + reduction*reductionFraction @@ -116,7 +116,7 @@ ls = len(samples) D = {0:1, ls-1:1} tendancy = (1,1) - for i in xrange(window, ls-window): + for i in range(window, ls-window): tb = 1 ta = 1 s = samples[i] @@ -126,24 +126,24 @@ if t!=tendancy: D[i] = i tendancy = t - keys = D.keys() + keys = list(D.keys()) keys.sort() return (keys, D) def interpolationChoices(samples, window=30, fraction=0.11): (ip, D) = inflectionIndices(samples, window) - for i in xrange(len(ip)-1): + for i in range(len(ip)-1): i1 = ip[i] i2 = ip[i+1] if i2attstart: reductionfraction = (xstop-x)/xdiff @@ -266,12 +266,12 @@ outerpoints[p]=1 else: innerxs[x] = 1 - xs = innerxs.keys() + xs = list(innerxs.keys()) xs.sort() thisys = this.yValues(xs) shiftys = otherShifted.yValues(xs) innerpoints = [ (x, y1+y2) for (x,y1,y2) in zip(xs, thisys, shiftys) ] - points = innerpoints + outerpoints.keys() + points = innerpoints + list(outerpoints.keys()) points.sort() return LinearInterpolation(points, False) def sum(this, other): @@ -281,7 +281,7 @@ allxD[x] = 1 for (x,y) in other.points: allxD[x] = 1 - allx = allxD.keys() + allx = list(allxD.keys()) allx.sort() myys = this.yValues(allx) oys = other.yValues(allx) @@ -295,7 +295,7 @@ result = list(xValues) pindex = None lr = len(result) - for i in xrange(lr): + for i in range(lr): xi = xValues[i] if xi>=xstart and xi<=xstop: if pindex is None: @@ -331,7 +331,7 @@ s1start = lens1-nchange #result = list(samples1) result = samples1 - for i in xrange(nchange): + for i in range(nchange): s1i = s1start+i result[s1i] = samples1[s1i] + samples2[i] result = result + samples2[nchange:] @@ -342,14 +342,14 @@ deletes = {} slen = len(samples) ndeletes = int(uniform(atleast, atmost)*slen) - for i in xrange(ndeletes): + for i in range(ndeletes): choice = int(uniform(1,slen-1)) deletes[choice] = choice outlen = slen-len(deletes) - result = range(outlen) + result = list(range(outlen)) sindex = 0 for i in result: - while deletes.has_key(sindex): + while sindex in deletes: sindex+=1 result[i] = samples[sindex] sindex+=1 @@ -370,7 +370,7 @@ nSamples = int(samplesPerSecond) samplesPerSecond = float(samplesPerSecond) amplitude = (maximum-minimum)/2.0 - result = r = range(nSamples) + result = r = list(range(nSamples)) x = 0.0 f = uniform(lowfrequency, highfrequency) for i in r: @@ -390,7 +390,7 @@ for (samples, weight) in zip(otherSamples, otherWeights): extra = fit(samples, -weight, weight) le = len(extra) - for i in xrange(nsamples): + for i in range(nsamples): result[i] += extra[i%le] return result @@ -400,7 +400,7 @@ samples = foreground samples = mix(foreground, 100, [background], [25]) samples = fit(samples, 0,254) - print samplesToDivs(samples, 300) + print(samplesToDivs(samples, 300)) return samplesToFile(filename, samples, sampwidth=1) def walkFile(filename="walk.wav", low=-990, high=880): @@ -435,7 +435,7 @@ s1 = attenuate(s1, 0.7, 0) s2 = attenuate(s2, 1.0, 0) samples = overlap(s1, s2) - print samples + print(samples) return samplesToFile(filename, samples) def samplesFromFile(filename="wave/underscore.wav"): @@ -444,14 +444,14 @@ nframes = f.getnframes() sampwidth = f.getsampwidth() if sampwidth not in (1,2): - raise ValueError, "can't work with sampwidth %s" % sampwidth + raise ValueError("can't work with sampwidth %s" % sampwidth) frames = [None]*nframes for i in range(nframes): frames[i] = f.readframes(1) if sampwidth==1: - samples = map(ord, frames) + samples = list(map(ord, frames)) else: - samples = map(wave16, frames) + samples = list(map(wave16, frames)) #print samples[:3000] mins = min(samples) maxs = max(samples) @@ -474,11 +474,11 @@ def fit16(samples): result = fit(samples, MIN16, MAX16) - return map(int, result) + return list(map(int, result)) def fit8(samples): result = fit(samples, MIN8, MAX8) - return map(int, result) + return list(map(int, result)) def samplesToFile(filename, samples, sampwidth=2): f = file(filename, "w") @@ -488,8 +488,8 @@ f.close() def samplesToString(samples, sampwidth=2): - import cStringIO, wave - f0 = cStringIO.StringIO() + import io, wave + f0 = io.StringIO() f = wave.open(f0, "wb") samplesToFileObject(f, samples, sampwidth) result = f0.getvalue() @@ -510,9 +510,9 @@ f.setsampwidth(sampwidth) f.setframerate(framerate) if sampwidth==2: - outframes = map(toWave16frame, samples) + outframes = list(map(toWave16frame, samples)) elif sampwidth==1: - outframes = map(chr, map(int, map(round, samples))) + outframes = list(map(chr, list(map(int, list(map(round, samples)))))) framestring = "".join(outframes) #print samples[:100] #print repr(framestring[:100]) @@ -544,11 +544,11 @@ import marshal, zlib outfile = file(zipFileName, "wb") # force load all files... - for x in this.keys(): + for x in list(this.keys()): test = this.getAppx(x) D = {} appx = this.lettersToAppx - for letter in appx.keys(): + for letter in list(appx.keys()): li = appx[letter] D[letter] = li.points rp = marshal.dumps(D) @@ -563,7 +563,7 @@ rpz = infile.read() rp = zlib.decompress(rpz) D = marshal.loads(rp) - for (letter, points) in D.items(): + for (letter, points) in list(D.items()): this.lettersToAppx[letter] = LinearInterpolation(points) def addLetter(this, letter, sequence): this.lettersToAppx[letter] = sampleInterpolation(sequence) @@ -571,20 +571,20 @@ this.lettersToPath[letter] = filename def getAppx(this, letter): ls = this.lettersToAppx - if ls.has_key(letter): + if letter in ls: return ls[letter] lp = this.lettersToPath - if lp.has_key(letter): + if letter in lp: path = lp[letter] samples = samplesFromFile(filename=path) this.addLetter(letter, samples) return this.lettersToAppx[letter] - raise ValueError, "no mapping found for "+repr(letter) + raise ValueError("no mapping found for "+repr(letter)) def keys(this): d = {} d.update(this.lettersToAppx) d.update(this.lettersToPath) - return d.keys() + return list(d.keys()) def clean(this, s): s = s.lower() r = [] @@ -592,7 +592,7 @@ d.update(this.lettersToAppx) d.update(this.lettersToPath) for c in s: - if d.has_key(c): + if c in d: r.append(c) result = "".join(r) if not result: result = " " @@ -763,7 +763,7 @@ try: v = L[i+1] except IndexError: - raise ValueError, "parameter %s requires a value" % repr(name) + raise ValueError("parameter %s requires a value" % repr(name)) del L[i+1] del L[i] return v @@ -809,22 +809,22 @@ filename = getparm(parms, "--filename") stdout = getparm(parms, "--stdout", getValue=False) if len(parms)<1: - raise ValueError, "please provide string to encode" + raise ValueError("please provide string to encode") if len(parms)>1: - raise ValueError, "unknown parameters "+repr(parms) + raise ValueError("unknown parameters "+repr(parms)) instring = parms[0] if not filename and not stdout: raise "must specify --filename or --stdout option" if filename and stdout: raise "--filename and --stdout parameters cannot be used at the same time" except: - print usage + print(usage) raise else: if not compiled: indexFile = None if indexFile: if filename: - print "using index file path", repr(indexFile) + print("using index file path", repr(indexFile)) index = LettersIndex() index.loadRefactoringTool: Refactored ../python3/skimpyGimpy/skimpyGimpy.py Zip(indexFile) else: --- ../python3/skimpyGimpy/skimpyGimpy.py (original) +++ ../python3/skimpyGimpy/skimpyGimpy.py (refactored) @@ -26,7 +26,7 @@ def mixSequence(size): "return sequence weights (a,b,c,d) for mixing control points" if size<3: - raise ValueError, "size too small" + raise ValueError("size too small") result = [] delta = (math.pi/2.0)/(size-1) for i in range(size): @@ -52,7 +52,7 @@ this.integer = integer def plot(this, delta, scale=1.0): if delta<-0.1 or delta>1.1: - raise ValueError, "delta should be between 0 and 1" + raise ValueError("delta should be between 0 and 1") mix = this.mix nmix = len(mix) index = int(round( nmix*delta )) @@ -87,7 +87,7 @@ for p in points: for x in p: if x<0 or x>size: - raise ValueError, "point coords must be within 0 to "+repr(size)+"::"+repr(x) + raise ValueError("point coords must be within 0 to "+repr(size)+"::"+repr(x)) samples = size*3 t = mixSequence(samples) D = {} @@ -119,7 +119,7 @@ L.append("") for j in range(sizep1): color = bgcolor - if D.has_key( (i,j) ): + if (i,j) in D: color = fgcolor oc = onclick % (i,j) L.append('' % (color, width, width, oc)) @@ -137,7 +137,7 @@ L = ["letterPoints( {"] a = L.append D = this.letterToPoints - keys = D.keys() + keys = list(D.keys()) keys.sort() for letter in keys: a("%s: [" % repr(letter)) @@ -165,7 +165,7 @@ if len(letter)>2 and letter[0]==letter[-1]=='"': letter = letter[1:-1] if len(letter)!=1: - raise ValueError, "bad letter: "+repr(letter) + raise ValueError("bad letter: "+repr(letter)) # skip ws point = "" while not point and not done: @@ -174,7 +174,7 @@ done = True point = line.strip() if done: - raise ValueError, "found letter %s with no points" % repr(letter) + raise ValueError("found letter %s with no points" % repr(letter)) # collect all points to next white line pointsdata = point while point: @@ -209,8 +209,8 @@ this.string = string l2p = points.letterToPoints for ch in string: - if not l2p.has_key(ch): - raise ValueError, "no point sequence defined for character: "+repr(ch) + if ch not in l2p: + raise ValueError("no point sequence defined for character: "+repr(ch)) this.pointSequences = [ l2p[ch] for ch in string ] this.joinedPoints = None this.maxX = this.maxY = None @@ -246,7 +246,7 @@ this.joined = True def shift(this): if not this.joined: - raise ValueError, "must join first" + raise ValueError("must join first") j = this.joinedPoints (minX, minY) = j[0] for (x,y) in j: @@ -257,7 +257,7 @@ this.shifted = True def pixelize(this): if not this.shifted: - raise ValueError, "must shift first" + raise ValueError("must shift first") scale = this.scale samples = this.samples t = mixSequence(samples) @@ -291,7 +291,7 @@ pd = this.pixelDict sf = this.scatterFactor npd = {} - for (x,y) in pd.keys(): + for (x,y) in list(pd.keys()): x = int(random.uniform(0, sf)+x) y = int(random.uniform(0, sf)+y) npd[(x,y)] = 1 @@ -300,7 +300,7 @@ limit = this.smearLimit radius = this.smearRadius pd = this.pixelDict - for (x,y) in pd.keys(): + for (x,y) in list(pd.keys()): for i in range(int(random.uniform(0,limit))): x1 = int(random.uniform(0, radius)+x) y1 = int(random.uniform(0, radius)+y) @@ -310,7 +310,7 @@ lpd = len(pd) nspeckle = int(lpd*this.speckleFactor) maxX = maxY = 0 - for (x,y) in pd.keys(): + for (x,y) in list(pd.keys()): maxX = max(x, maxX) maxY = max(y, maxY) for i in range(nspeckle): @@ -323,19 +323,19 @@ fs = this.fontSize color = this.color if not pixelDict: - raise ValueError, "must pixelize" + raise ValueError("must pixelize") L = ['
' %(
             fs,color,fs, "generated by skimpyGimpy, created by Aaron Watters")]
         a = L.append
         maxX = maxY = 0
-        for (x,y) in pixelDict.keys():
+        for (x,y) in list(pixelDict.keys()):
             maxX = max(x, maxX)
             maxY = max(y, maxY)
-        rY = range(maxY)
+        rY = list(range(maxY))
         for x in range(maxX+1):
             lineList = [" "] * maxY
             for y in rY:
-                if pixelDict.has_key( (x,y) ):
+                if (x,y) in pixelDict:
                     lineList[y] = mark
             a("".join(lineList))
         a("
") @@ -350,11 +350,11 @@ this.smear() this.speckle() def formatPNG(this, filename, color=(0x77, 0x77, 0x77), scale=2): - import KiPNG + from . import KiPNG this.prepare() pD = this.pixelDict D = {} - for (y,x) in this.pixelDict.keys(): + for (y,x) in list(this.pixelDict.keys()): p = (x,-y) D[p] = 1 KiPNG.DictToPNG(D, filename, color, scale) @@ -367,10 +367,10 @@ #g = gimpyString(string.lowercase) g = gimpyString(string) if png is not None: - print "writing png format to", png + print("writing png format to", png) g.formatPNG(png) else: - print g.formatAll() + print(g.formatAll()) def clean(s, points=None): if points is None: @@ -378,7 +378,7 @@ s = s.lower() L = [] for c in s: - if points.letterToPoints.has_key(c): + if c in points.letterToPoints: L.append(c) return "".join(L) @@ -393,7 +393,7 @@ (20,30), (0,0), ] - print curveTable(points) + print(curveTable(points)) pagetemplate = r""" @@ -458,16 +458,16 @@ (20,30), (0,0), ] - print makePage("action", points, "false") + print(makePage("action", points, "false")) def test0(): msize = 30 - print "" - print + print(test) + print("") + print("") + print("") + print("-->") + print() csize = 300 - print '
' % ( - csize, csize) - print "hello" + print('
' % ( + csize, csize)) + print("hello") csize = 300 t = mixSequence(csize) c = curve( (0,0), (0,csize), (RefactoringTool: Refactored ../python3/skimpyGimpy/skimpyAPI.py csize/2,csize/2), (csize,csize), t, integer=True) @@ -502,17 +502,17 @@ x = i/float(csize) p = c.plot(x) D[p] = i - for p in D.keys(): + for p in list(D.keys()): (px, py) = p - print ('
' %(px, py) ) - print '
' + 'top:%spx;left:%spx">
' %(px, py) )) + print('') def dumpPoints(): lp = letterPoints() lp.readFromFile() - print lp + print(lp) return "" basicPoints = letterPoints( { @@ -1691,7 +1691,7 @@ try: v = L[i+1] except IndexError: - raise ValueError, "parameter %s requires a value" % repr(name) + raise ValueError("parameter %s requires a value" % repr(name)) del L[i+1] del L[i] return v @@ -1701,7 +1701,7 @@ args = sys.argv png = getparm(args, "--png") if len(args)<2: - print "please provide a word to encode" + print("please provide a word to encode") else: testg(args[1].lower(), png) --- ../python3/skimpyGimpy/skimpyAPI.py (original) +++ ../python3/skimpyGimpy/skimpyAPI.py (refactored) @@ -17,7 +17,7 @@ this.indexFile = indexFile def data(this, toFilePath=None): "return the wave representation for the word, write it to the path if provided" - import waveTools + from . import waveTools index = waveTools.LettersIndex() index.loadZip(this.indexFile) instring = this.word.lower() @@ -35,7 +35,7 @@ if s.startswith("0x"): s = s[2:] if len(s)!=6: - raise ValueError, "hex color specifications must have 6 hex digits: "+repr(s) + raise ValueError("hex color specifications must have 6 hex digits: "+repr(s)) d1 = s[0:2] d2 = s[2:4] d3 = s[4:6] @@ -60,13 +60,13 @@ this.fontpath = fontpath this.hcolor = hexColorTupleFromString(this.color) def data(this, toFilePath=None): - import bdf + from . import bdf "return the PNG representation for the word, write it to the path if provided" if this.fontpath is not None: fn = bdf.font() fn.loadFilePath(this.fontpath) else: - import cursive # this is an expensive import + from . import cursive # this is an expensive import fn = cursive.CursiveFont p = bdf.pixelation(fn, this.word) #pr "hcolor is", this.hcolor @@ -87,7 +87,7 @@ this.color = color def data(this, toFilePath=None): - import skimpyGimpy + from . import skimpyGimpy g = skimpyGimpy.gimpyString(this.word) g.scale = this.scale g.speckleFactor = this.speckle @@ -143,14 +143,14 @@ def getword(args): if len(args)>1: - raise ValueError, "some arguments not understood "+repr(args) + raise ValueError("some arguments not understood "+repr(args)) if len(args)<1: - raise ValueError, "no word found" + raise ValueError("no word found") return args[0] def run(args): cargs = list(args) - from getparm import getparm + from .getparm import getparm done = False try: isPre = getparm(args, "--pre", False, False) @@ -159,9 +159,9 @@ fileName = getparm(args, "--filename") stdout = getparm(args, "--stdout", False, False) if not fileName and not stdout: - raise ValueError, "must specify --filename OUTFILE or --stdout or both" + raise ValueError("must specify --filename OUTFILE or --stdout or both") if [isPre, isPng, isWave].count(True)!=1: - raise ValueError, "must specify exactly one of --pre, --png, or --wave" + raise ValueError("must specify exactly one of RefactoringTool: Refactored ../python3/skimpyGimpy/pngPieChart.py RefactoringTool: Refactored ../python3/skimpyGimpy/pngBarChart.py RefactoringTool: Refactored ../python3/skimpyGimpy/httpTempFile.py RefactoringTool: Refactored ../python3/skimpyGimpy/getparm.py --pre, --png, or --wave") if isPre: speckle = getparm(args, "--speckle") scale = getparm(args, "--scale") @@ -179,7 +179,7 @@ indexFile = getparm(args, "--indexfile") word = getword(args) if not indexFile: - raise ValueError, "--indexfile FILENAME is required to generate WAVE files" + raise ValueError("--indexfile FILENAME is required to generate WAVE files") generator = Wave(word, indexFile) result = generator.data(fileName) if stdout: @@ -187,9 +187,9 @@ done = True finally: if not done: - print "CAPTCHA generation failed for", cargs - print - print USAGE + print("CAPTCHA generation failed for", cargs) + print() + print(USAGE) if __name__=="__main__": run(sys.argv[1:]) --- ../python3/skimpyGimpy/pngPieChart.py (original) +++ ../python3/skimpyGimpy/pngPieChart.py (refactored) @@ -6,7 +6,7 @@ RSHADES = [0,64,122] NRSHADES = len(RSHADES) -SHADES = range(0,256,64) +SHADES = list(range(0,256,64)) NSHADES = len(SHADES) class PieChart: @@ -77,7 +77,7 @@ return canvas def drawTo(this, filename, jsfilename=None, htmlfilename=None, canvasLocation="canvas.js"): - from canvas import Canvas + from .canvas import Canvas c = Canvas() this.drawOn(c) c.dumpToPNG(filename) @@ -91,8 +91,8 @@ def wedgePoints(startRadians, endRadians, radius, delta=math.pi/180): result = [ (0,0) ] if (endRadians=maxx or miny>=maxy: - raise ValueError, "bad bounds: "+repr((minx, miny, maxx, maxy)) + raise ValueError("bad bounds: "+repr((minx, miny, maxx, maxy))) this.minx = minx this.miny = miny this.maxx = maxx @@ -395,15 +395,15 @@ def addFont(this, name, path): import os if not os.path.exists(path): - raise ValueError, "no such file "+repr(path) + raise ValueError("no such file "+repr(path)) this.fontNameToPath[name] = path if this.fontName is None: this.setFont(name) def getFont(this, name): - import bdf + from . import bdf fontpath = this.fontNameToPath.get(name, None) if fontpath is None: - raise ValueError, "no such font name added "+repr(name) + raise ValueError("no such font name added "+repr(name)) font = this.fontNameToFont.get(name, None) if font is None: font = bdf.font() @@ -413,9 +413,9 @@ def setFont(this, name, scale=1.0, radius=None): fontpath = this.fontNameToPath.get(name, None) if fontpath is None: - raise ValueError, "no such font name added "+repr(name) + raise ValueError("no such font name added "+repr(name)) if scale<=0: - raise ValueError, "too small scale "+repr(scale) + raise ValueError("too small scale "+repr(scale)) if radius is None: radius = scale/2.0 + this.fontRadiusEnhancement this.fontRadius = radius @@ -434,7 +434,7 @@ this.stateStack.append(state) def restoreState(this): if not this.stateStack: - raise ValueError, "no state saved on state stack" + raise ValueError("no state saved on state stack") state = this.stateStack[-1] del this.stateStack[-1] this.paintColor = state["paintColor"] @@ -471,25 +471,25 @@ #print "setColorV", rgb for i in rgb: if i!=int(i): - raise ValueError, "color component must be int: "+repr(i) + raise ValueError("color component must be int: "+repr(i)) if i<0 or i>255: - raise ValueError, "bad color component "+repr(i) - if this.rcolors.has_key(rgb): + raise ValueError("bad color component "+repr(i)) + if rgb in this.rcolors: colorIndex = this.rcolors[rgb] else: colorIndex = len(this.colors) if colorIndex>255: - raise ValueError, "too many colors at "+repr(rgb) + raise ValueError("too many colors at "+repr(rgb)) this.rcolors[rgb] = colorIndex this.colors[colorIndex] = rgb this.paintColor = colorIndex def setCap(this, lineCap): if lineCap<0: - raise ValueError, "lineCap cannot be negative "+repr(lineCap) + raise ValueError("lineCap cannot be negative "+repr(lineCap)) this.lineCap = lineCap def setWidth(this, width): if width<0: - raise ValueError, "width cannot be negative "+repr(width) + raise ValueError("width cannot be negative "+repr(width)) this.lineWidth = width def addLine(this, startPoint, endPoint): width = this.lineWidth @@ -545,9 +545,9 @@ if x1>x2: #(firstx, lastx) = (lastx, firstx) increment = -1 - xs = xrange(lastx, firstx) + xs = range(lastx, firstx) else: - xs = xrange(firstx, lastx) + xs = range(firstx, lastx) for x in xs: ys = borders.get(x) if ys is None: @@ -564,12 +564,12 @@ # plot pixels between border points D = {} color = this.paintColor - xs = borders.keys() + xs = list(borders.keys()) xs.sort() for x in xs: xborders = borders[x] - debugitems = xborders.items() - ys = xborders.keys() + debugitems = list(xborders.items()) + ys = list(xborders.keys()) #ys.sort() # since polygon is clockwise, first point should always be #p "plotting", x#, ys @@ -584,13 +584,13 @@ #raise ValueError, "negative summation? at "+ repr((x,y)) #p "WARNING: negative summation? at "+ repr((x,y, summation)) summation += xborders.get(y, 0) - if xborders.has_key(y) or summation>0: + if y in xborders or summation>0: point = (x,y) D[ point ] = color #p "point", point, summation if summation: #p "for", x, "final sum is", summation - items = xborders.items() + items = list(xborders.items()) items.sort() #p "bad summation %s %s"%(summation,items) raise "bad summation %s %s"%(summation,items) @@ -604,7 +604,7 @@ C = Circle((cx,cy), radius) this.plot(C) def addText(this, x, y, text, shiftWidth=0.0): - import bdf + from . import bdf fontName = this.fontName fontScale = this.fontScale radius = this.fontRadius @@ -621,7 +621,7 @@ T = this.transformShape(shape) color = this.paintColor if color is None: - raise ValueError, "canvas color not set" + raise ValueError("canvas color not set") d = T.points(color) this.updatePixels(d) def updatePixels(this, d): @@ -631,16 +631,16 @@ # record callback info if set. if fc is not None: cb = this.callbacks - for point in d.keys(): + for point in list(d.keys()): cb[point] = fc def plotDict(this, startx, starty, D, radius, scaleFactor): "plot the (x,y) key points of a dictionary as circles (for pixelized font rendering, for example)" C = Circle((0,0), radius) - pts = C.points(1).keys() + pts = list(C.points(1).keys()) color = this.paintColor #pixels = this.pixels newpixels = {} - for (x,y) in D.keys(): + for (x,y) in list(D.keys()): sx = startx+scaleFactor*x sy = starty+scaleFactor*y (dx,dy) = this.convert( (sx,sy) ) @@ -656,10 +656,10 @@ fillColorIndex = this.paintColor stopIndex = None if stopColorRGB: - if this.rcolors.has_key(stopColorRGB): + if stopColorRGB in this.rcolors: stopIndex = this.rcolors[stopColorRGB] else: - raise ValueError, "stop color has not yet been used "+repr(rgb) + raise ValueError("stop color has not yet been used "+repr(rgb)) (cx,cy) = this.convert( (x,y) ) minx = this.minx maxx = this.maxx @@ -677,10 +677,10 @@ while stack: count += 1 if countLimit and countLimit[ (xstart, xend, callbackstring), ... ] for defined callbacks" # KISS, probably could be made faster for large images cb = this.callbacks - points = cb.keys() - allpoints = this.pixels.keys() + points = list(cb.keys()) + allpoints = list(this.pixels.keys()) #points.sort() xs = [x for (x,y) in allpoints] ys = [y for (x,y) in allpoints] @@ -754,8 +754,8 @@ #print this.minx, this.maxx, this.miny, this.maxy, this.maxx-this.minx, this.maxy-this.miny bcb = this.backgroundCallback result = {} - rx = range(minx, maxx+1) - ry = range(miny, maxy+1) + rx = list(range(minx, maxx+1)) + ry = list(range(miny, maxy+1)) for y in ry: startx = minx lastcallback = None @@ -783,7 +783,7 @@ return result def jsRunLengths(this): D = this.getCallbackRunLengthDictionary() - ys = D.keys() + ys = list(D.keys()) ys.sort() ys.reverse() L = [] @@ -830,15 +830,15 @@ c.addRect(0,0,2,2) c.addRect(xmax-xmin-2,ymax-ymin-2,2,2) c.setColor(0, 0xff, 0) - for y in D.keys(): + for y in list(D.keys()): for (xstart, xend, dummy) in D[y]: c.addCircle(xstart,y,1) c.setColor(0xff, 0, 0) - for y in D.keys(): + for y in list(D.keys()): for (xstart, xend, dummy) in D[y]: c.addCircle(xend,y,1) c.dumpToPNG("runlengths.png") - print "wrote runlengths.png" + print("wrote runlengths.png") HTMLTEMPLATE = """ @@ -971,7 +971,7 @@ radius = 20 steps = 10 delta = 8*math.pi/steps - poly = [ ( (radius-i*delta)*math.cos(i*delta), (radius-i*delta)*math.sin(i*delta) ) for i in xrange(steps) ] + poly = [ ( (radius-i*delta)*math.cos(i*delta), (radius-i*delta)*math.sin(i*delta) ) for i in range(steps) ] c = Canvas() c.lineWidth = 1 c.setColor(0,77,77) @@ -981,7 +981,7 @@ c.setColor(77,77,77) c.addLines(poly, closed=True) c.setColor(0,0,77) - rr = range(-radius/2,radius/2) + rr = list(range(-radius/2,radius/2)) for i in rr: for j in rr: c.addRect(i*2,j*2,0,0) @@ -992,7 +992,7 @@ c.dumpToPNG(outfile) def fillTest(outfile="fill.png", doStopColor=False): - print "writing", outfile + print("writing", outfile) c = Canvas() c.lineWidth = 4 c.setColor(0xff,77,77) @@ -1008,7 +1008,7 @@ c.dumpToPNG(outfile) def fillTest0(outfile="fill0.png", doStopColor=True): - print "writing", outfile + print("writing", outfile) c = Canvas() c.lineWidth = 1 c.setColor(77,77,77) @@ -1022,7 +1022,7 @@ c.dumpToPNG(outfile) def test1(fn="test1.png"): - print "writing", fn + print("writing", fn) c = Canvas() c.lineCap = 20 for (lw,closed,color) in [(12,False,(0xff,0,0)), (4,True,(0,0xff,0xff))]: @@ -1032,7 +1032,7 @@ c.dumpToPNG(fn) def test0(fn="test0.png", fontdir="../fonts/"): - print "writing", fn + print("writing", fn) c = Canvas() c.setBackgroundColor(10,50,99) c.setWidth(10) @@ -1068,7 +1068,7 @@ c.dumpToPNGRefactoringTool: Refactored ../python3/skimpyGimpy/bdf.py (fn) def ctest(fn="ctest.png"): - print "writing", fn + print("writing", fn) c = Canvas() c.setColor(77,88,22) c.addCircle( 10, 0, 5) @@ -1085,7 +1085,7 @@ c.dumpToPNG(fn) def ctest2(fn="ctest2.png"): - print "writing", fn + print("writing", fn) c = Canvas() c.setColor(77,88,22) c.addCircle(0, 0, 50) @@ -1098,8 +1098,8 @@ c.dumpToPNG(fn) def fonttest000(filename="fonttest000.png", fontdir="../fonts/"): - import bdf - print "writing", filename + from . import bdf + print("writing", filename) fn = bdf.font() fn.loadFilePath(fontdir+"cursive.bdf") p = bdf.pixelation(fn, "100,100") @@ -1122,7 +1122,7 @@ c.dumpToPNG(fn) def fontsTest(filename="fontsTest.png", fontdir="../fonts/"): - print "writing", filename, "SSLLOOWWWLLLLYYYYYY" + print("writing", filename, "SSLLOOWWWLLLLYYYYYY") fontnames = [#"atari-small.bdf", "cursive.bdf", "radon-wide.bdf", @@ -1136,10 +1136,10 @@ c.setColor(77,88,22) scale = 1.44 for fn in fontnames: - print "adding font", fn + print("adding font", fn) c.addFont(fn, fontdir+fn) for (rotate, fradius) in ((0,0.8), (90,0.8), (135, 0.8)): - print "rotating", rotate + print("rotating", rotate) y = 0 radius = scale*fradius c.rotate(rotate) @@ -1147,7 +1147,7 @@ c.setFont(fn, scale, radius) y-=30 c.addText(0,scale*y, "abcdefghijklmnop01234567: "+fn) - print "now dumping" + print("now dumping") c.crop(-400,-400,400,400) c.dumpToPNG(filename) --- ../python3/skimpyGimpy/bdf.py (original) +++ ../python3/skimpyGimpy/bdf.py (refactored) @@ -31,7 +31,7 @@ for c in hexLine: imap = bitIndexMap.get(c, None) if imap is None: - raise ValueError, "no mapping for "+repr(c) + raise ValueError("no mapping for "+repr(c)) for b in imap: result[b+offset] = c offset += 4 @@ -62,7 +62,7 @@ this.dheight = dwy def addBits(this, hexLine): "add bits but put line at the first position (x=0 position)" - theBits = bits(hexLine).keys() + theBits = list(bits(hexLine).keys()) this.lines.insert(0, theBits) this.shifter = None def shiftDict(this): @@ -98,10 +98,10 @@ mline = max(line) for x in range(mline+1): if x in line: - print "#", + print("#", end=' ') else: - print " ", - print "\t", line + print(" ", end=' ') + print("\t", line) class pixelation: def __init__(this, font, s): @@ -121,12 +121,12 @@ return result def width(this): PD = this.pixelDict() - xs = [x for (x,y) in PD.keys()] + xs = [x for (x,y) in list(PD.keys())] width = max(xs) return width def drawToCanvas0(this, startx, starty, canvas, radius, scaleFactor=1.0): D = this.pixelDict() - for (x,y) in D.keys(): + for (x,y) in list(D.keys()): sx = startx+scaleFactor*x sy = starty+scaleFactor*y canvas.addCircle(sx, sy, radius) @@ -135,7 +135,7 @@ canvas.plotDict(startx, starty, D, radius, scaleFactor) def display(this, mark="#", blank=" "): D = this.pixelDict() - setPixels = D.keys() + setPixels = list(D.keys()) xs = [x for (x,y) in setPixels] ys = [y for (x,y) in setPixels] maxx = max(xs) @@ -143,13 +143,13 @@ maxy = max(ys) miny = min(ys) resultList = [] - xr = range(minx, maxx+1) - for y in xrange(miny, maxy+1): + xr = list(range(minx, maxx+1)) + for y in range(miny, maxy+1): yline = list(xr) i = 0 for x in xr: c = blank - if D.has_key( (x,y) ): + if (x,y) in D: c = mark yline[i] = c i+=1 @@ -157,7 +157,7 @@ resultList.insert(0, ystring) return "\n".join(resultList) def toPNG(this, filename, color=(0x0f,0x11,0xaf), scale=2, speckle=0.3): - import KiPNG + from . import KiPNG D = this.pixelDict() return KiPNG.DictToPNG(D, filename, color, scale, speckle) @@ -173,7 +173,7 @@ def getGlyph(this, c): return this.charMap[c] def newGlyph(this, name, ordinal): - char = unichr(ordinal) + char = chr(ordinal) result = this.charMap[char] = glyph(name, this.xwidth, this.yheight, this.dx, this.dy) return result def loadFilePath(this, path): @@ -199,7 +199,7 @@ if method: index = method(lines, index) else: - if this.verbose: print "warning: no handler %s" % methodname + if this.verbose: print("warning: no handler %s" % methodname) index+=1 def doSTARTFONT(this, lines, index): return index+1 @@ -210,13 +210,13 @@ def doSIZE(this, lines, index): line = lines[index] sstrings = line.split()[1:] - sizes = map(int, sstrings) + sizes = list(map(int, sstrings)) (this.points, this.xres, this.yres) = sizes return index+1 def doFONTBOUNDINGBOX(this, lines, index): line = lines[index] bboxstrings = line.split()[1:] - bbox = map(int, bboxstrings) + bbox = list(map(int, bboxstrings)) (xwidth, yheight, dx, dy) = bbox this.bounds(xwidth, yheight, dx, dy) return index+1 @@ -247,21 +247,21 @@ encoding = int( sline[1] ) index += 1 elif indicator=="SWIDTH": - swidth = map( int, sline[1:] ) + swidth = list(map( int, sline[1:] )) index += 1 elif indicator=="DWIDTH": - dwidth = map( int, sline[1:] ) + dwidth = list(map( int, sline[1:] )) index += 1 elif indicator=="BBX": - bbx = map( int, sline[1:] ) + bbx = list(map( int, sline[1:] )) index += 1 elif indicator=="BITMAP": if encoding is None: - raise ValueError, "no encoding for "+repr(charname) + raise ValueError("no encoding for "+repr(charname)) if bbx is None: - raise ValueError, "no bbx for "+repr(charname) + raise ValueError("no bbx for "+repr(charname)) if dwidth is None: - raise ValueError, "no dwidth for "+repr(charname) + raise ValueError("no dwidth for "+repr(charname)) g = this.newGlyph(charname, encoding) (xwidth, yheight, dx, dy) = bbx g.bounds(xwidth, yheight, dx, dy) @@ -275,26 +275,26 @@ line = lines[index].strip().upper() else: if this.verbose: - print "don't understand charline", repr(line) + print("don't understand charline", repr(line)) index += 1 if g is None: - raise ValueError, "STARTCHAR failed to generate a glyph: "+repr(charname) + raise ValueError("STARTCHAR failed to generate a glyph: "+repr(charname)) return index+1 def doENDFONT(this, lines, index): return index+1 def test1(): - ks = bitIndexMap.keys() + ks = list(bitIndexMap.keys()) ks.sort() for k in ks: - print bitIndexMap[k] + print(bitIndexMap[k]) fn = font() fn.loadFilePath("cursive.bdf") g = fn.getGlyph("w") g.display() def test0(): - from getparm import getparm + from .getparm import getparm import sys args = sys.argv png = getparm(args, "--png") @@ -306,7 +306,7 @@ if png: p.toPNG(png) else: - print p.display() + RefactoringTool: No changes to ../python3/skimpyGimpy/__init__.py RefactoringTool: Refactored ../python3/skimpyGimpy/KiPNG.py print(p.display()) if __name__=="__main__": test0() --- ../python3/skimpyGimpy/KiPNG.py (original) +++ ../python3/skimpyGimpy/KiPNG.py (refactored) @@ -22,32 +22,32 @@ c = n for k in range(8): if c&1: - c = 0xedb88320L ^ (c >> 1) + c = 0xedb88320 ^ (c >> 1) else: c = c >> 1 PNGCRCTABLE[n] = c def pngCRC(buf): - c = 0xffffffffL + c = 0xffffffff for char in buf: bufn = ord(char) index = (c ^ bufn) & 0xff c = PNGCRCTABLE[index]^(c >> 8) - return c ^ 0xffffffffL + return c ^ 0xffffffff def networkIntToString(integer, nbytes=4): #print hex(integer) i = integer L = [] - for j in xrange(nbytes): + for j in range(nbytes): b = i&0xff i = i>>8 #print hex(b), hex(i) L.append(b) if i and i!=-1: - raise ValueError, "%s too large number %s for %s bytes" % (i, integer, nbytes) + raise ValueError("%s too large number %s for %s bytes" % (i, integer, nbytes)) L.reverse() - Cs = map(chr, L) + Cs = list(map(chr, L)) return "".join(Cs) def stringToNetworkInt(s): @@ -68,7 +68,7 @@ siglen = len(PNGSIGSTRING) sig = s[0:siglen] if sig!=PNGSIGSTRING: - raise ValueError, "bad sig "+repr(sig) + raise ValueError("bad sig "+repr(sig)) index = siglen slen = len(s) while index=256: - raise ValueError, "max color index too large "+repr(maxindex) + raise ValueError("max color index too large "+repr(maxindex)) palette = [ (0,0,0) ] * (maxindex+1) for index in indices: palette[index] = colorDict[index] filterFlag = chr(NOFILTER) - points = D.keys() + points = list(D.keys()) if scale>1: - rscale = range(int(round(scale))) + rscale = list(range(int(round(scale)))) newpoints = {} for p in points: (x,y) = p for j in rscale: for i in rscale: newpoints[ (x*scale+i, y*scale+j) ] = p - points = newpoints.keys() + points = list(newpoints.keys()) else: newpoints = {} for p in points: @@ -375,14 +375,14 @@ ID[(ix,iy)] = D[p0] if speckle: nspecks = int(speckle*len(ID)) - for k in xrange(nspecks): + for k in range(nspecks): x = int(random.uniform(minx, maxx)) y = int(random.uniform(miny, maxy)) ID[ (x,y) ] = speckIndex c0 = chr(0) c1 = chr(1) - ry = range(miny,maxy+1) - rx = range(minx,maxx+1) + ry = list(range(miny,maxy+1)) + rx = list(range(minx,maxx+1)) L = [] rowtemplate = [filterFlag]+list(rx) for y in ry: @@ -391,7 +391,7 @@ for x in rx: p = (x,y) cc = c0 - if ID.has_key(p): + if p in ID: #print p if colorDict: ci = ID[p] @@ -437,7 +437,7 @@ x = math.sin(theta)*factor y = math.cos(theta)*factor D[ (x,y) ] = i%3+1 - print "creating", fn + print("creating", fn) colorD = {1: (0,0,0xff), 2: (0,0xff,0), 3:(0xff,0,0)} DictToPNG(D, fn, colorDict=colorD, scale=4) @@ -447,7 +447,7 @@ png.readString(s) img = IndexedImage() img.parseData(png) - print img + print(img) def readWhite(): fn = "white.png" @@ -458,15 +458,15 @@ s2 = png.OutputString() outfile.write(s2) if s!=s2: - print "input doesn't match output" - for (i, a, b) in zip(range(len(s)), s, s2): + print("input doesn't match output") + for (i, a, b) in zip(list(range(len(s))), s, s2): if a!=b: - print "first diff at", (i, a, b) + print("first diff at", (i, a, b)) return - print "lengths differ", len(s), len(s2) + print("lengths differ", len(s), len(s2)) img = IndexedImage() img.parseData(png) - print img + print(img) RefactoringTool: No changes to ../python3/setup.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/skimpyGimpy/waveTools.py RefactoringTool: ../python3/skimpyGimpy/skimpyGimpy.py RefactoringTool: ../python3/skimpyGimpy/skimpyAPI.py RefactoringTool: ../python3/skimpyGimpy/pngPieChart.py RefactoringTool: ../python3/skimpyGimpy/pngBarChart.py RefactoringTool: ../python3/skimpyGimpy/httpTempFile.py RefactoringTool: ../python3/skimpyGimpy/getparm.py RefactoringTool: ../python3/skimpyGimpy/cursive.py RefactoringTool: ../python3/skimpyGimpy/canvas.py RefactoringTool: ../python3/skimpyGimpy/bdf.py RefactoringTool: ../python3/skimpyGimpy/__init__.py RefactoringTool: ../python3/skimpyGimpy/KiPNG.py RefactoringTool: ../python3/setup.py RefactoringTool: Warnings/messages while refactoring: RefactoringTool: ### In file ../python3/skimpyGimpy/waveTools.py ### RefactoringTool: Line 817: could not convert: raise "must specify --filename or --stdout option" RefactoringTool: Python 3 does not support string exceptions RefactoringTool: Line 819: could not convert: raise "--filename and --stdout parameters cannot be used at the same time" RefactoringTool: Python 3 does not support string exceptions return png if __name__=="__main__": + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.14973 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-skimpyGimpy-1.4 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + /usr/bin/python setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/skimpyGimpy copying skimpyGimpy/waveTools.py -> build/lib/skimpyGimpy copying skimpyGimpy/skimpyGimpy.py -> build/lib/skimpyGimpy copying skimpyGimpy/skimpyAPI.py -> build/lib/skimpyGimpy copying skimpyGimpy/pngPieChart.py -> build/lib/skimpyGimpy copying skimpyGimpy/pngBarChart.py -> build/lib/skimpyGimpy copying skimpyGimpy/httpTempFile.py -> build/lib/skimpyGimpy copying skimpyGimpy/getparm.py -> build/lib/skimpyGimpy copying skimpyGimpy/cursive.py -> build/lib/skimpyGimpy copying skimpyGimpy/canvas.py -> build/lib/skimpyGimpy copying skimpyGimpy/bdf.py -> build/lib/skimpyGimpy copying skimpyGimpy/__init__.py -> build/lib/skimpyGimpy copying skimpyGimpy/KiPNG.py -> build/lib/skimpyGimpy + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-skimpyGimpy-1.4 + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/skimpyGimpy copying skimpyGimpy/waveTools.py -> build/lib/skimpyGimpy copying skimpyGimpy/skimpyGimpy.py -> build/lib/skimpyGimpy copying skimpyGimpy/skimpyAPI.py -> build/lib/skimpyGimpy copying skimpyGimpy/pngPieChart.py -> build/lib/skimpyGimpy copying skimpyGimpy/pngBarChart.py -> build/lib/skimpyGimpy copying skimpyGimpy/httpTempFile.py -> build/lib/skimpyGimpy copying skimpyGimpy/getparm.py -> build/lib/skimpyGimpy copying skimpyGimpy/cursive.py -> build/lib/skimpyGimpy copying skimpyGimpy/canvas.py -> build/lib/skimpyGimpy copying skimpyGimpy/bdf.py -> build/lib/skimpyGimpy copying skimpyGimpy/__init__.py -> build/lib/skimpyGimpy copying skimpyGimpy/KiPNG.py -> build/lib/skimpyGimpy + popd ~/RPM/BUILD/python-module-skimpyGimpy-1.4 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.78078 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-skimpyGimpy-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-skimpyGimpy-buildroot + cd python-module-skimpyGimpy-1.4 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-skimpyGimpy-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-skimpyGimpy-buildroot creating /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr creating /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib creating /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/KiPNG.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/__init__.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/bdf.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/canvas.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/cursive.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/getparm.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/httpTempFile.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/pngBarChart.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/pngPieChart.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/skimpyAPI.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/skimpyGimpy.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/waveTools.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/KiPNG.py to KiPNG.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/bdf.py to bdf.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/canvas.py to canvas.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/cursive.py to cursive.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/getparm.py to getparm.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/httpTempFile.py to httpTempFile.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/pngBarChart.py to pngBarChart.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/pngPieChart.py to pngPieChart.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/skimpyAPI.py to skimpyAPI.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/skimpyGimpy.py to skimpyGimpy.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/waveTools.py to waveTools.pyc running install_egg_info running egg_info writing skimpyGimpy.egg-info/PKG-INFO writing top-level names to skimpyGimpy.egg-info/top_level.txt writing dependency_links to skimpyGimpy.egg-info/dependency_links.txt reading manifest file 'skimpyGimpy.egg-info/SOURCES.txt' writing manifest file 'skimpyGimpy.egg-info/SOURCES.txt' Copying skimpyGimpy.egg-info to /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy-1.4-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-skimpyGimpy-1.4 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-skimpyGimpy-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/KiPNG.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/__init__.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/bdf.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/canvas.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/cursive.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/getparm.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/httpTempFile.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/pngBarChart.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/pngPieChart.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/skimpyAPI.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/skimpyGimpy.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy copying build/lib/skimpyGimpy/waveTools.py -> /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/KiPNG.py to KiPNG.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/bdf.py to bdf.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/canvas.py to canvas.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/cursive.py to cursive.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/getparm.py to getparm.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/httpTempFile.py to httpTempFile.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/pngBarChart.py to pngBarChart.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/pngPieChart.py to pngPieChart.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/skimpyAPI.py to skimpyAPI.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/skimpyGimpy.py to skimpyGimpy.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/waveTools.py to waveTools.cpython-35.pyc running install_egg_info running egg_info writing top-level names to skimpyGimpy.egg-info/top_level.txt writing skimpyGimpy.egg-info/PKG-INFO writing dependency_links to skimpyGimpy.egg-info/dependency_links.txt reading manifest file 'skimpyGimpy.egg-info/SOURCES.txt' writing manifest file 'skimpyGimpy.egg-info/SOURCES.txt' Copying skimpyGimpy.egg-info to /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy-1.4-py3.5.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-skimpyGimpy-1.4 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-skimpyGimpy-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-skimpyGimpy-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-skimpyGimpy-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-skimpyGimpy-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-skimpyGimpy-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-skimpyGimpy-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/KiPNG.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/__init__.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/bdf.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/canvas.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/cursive.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/getparm.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/httpTempFile.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/pngBarChart.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/pngPieChart.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/skimpyAPI.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/skimpyGimpy.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/waveTools.pyc compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/KiPNG.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/__init__.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/bdf.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/canvas.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/cursive.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/getparm.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/httpTempFile.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/pngBarChart.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/pngPieChart.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/skimpyAPI.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/skimpyGimpy.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/waveTools.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-skimpyGimpy-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/KiPNG.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/__init__.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/bdf.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/canvas.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/cursive.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/getparm.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/httpTempFile.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/pngBarChart.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/pngPieChart.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/skimpyAPI.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/skimpyGimpy.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python2.7/site-packages/skimpyGimpy/waveTools.py Bytecompiling python3 modules in /usr/src/tmp/python-module-skimpyGimpy-buildroot using python3 unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__pycache__/KiPNG.cpython-35.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__pycache__/bdf.cpython-35.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__pycache__/canvas.cpython-35.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__pycache__/cursive.cpython-35.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__pycache__/getparm.cpython-35.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__pycache__/httpTempFile.cpython-35.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__pycache__/pngBarChart.cpython-35.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__pycache__/pngPieChart.cpython-35.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__pycache__/skimpyAPI.cpython-35.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__pycache__/skimpyGimpy.cpython-35.pyc unlink /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__pycache__/waveTools.cpython-35.pyc compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/KiPNG.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__init__.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/bdf.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/canvas.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/cursive.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/getparm.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/httpTempFile.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/pngBarChart.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/pngPieChart.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/skimpyAPI.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/skimpyGimpy.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/waveTools.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-skimpyGimpy-buildroot using python3 -O compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/KiPNG.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__init__.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/bdf.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/canvas.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/cursive.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/getparm.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/httpTempFile.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/pngBarChart.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/pngPieChart.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/skimpyAPI.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/skimpyGimpy.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/waveTools.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-skimpyGimpy-buildroot using python3 -OO compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/KiPNG.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/__init__.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/bdf.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/canvas.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/cursive.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/getparm.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/httpTempFile.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/pngBarChart.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/pngPieChart.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/skimpyAPI.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/skimpyGimpy.py compile /usr/src/tmp/python-module-skimpyGimpy-buildroot/usr/lib/python3/site-packages/skimpyGimpy/waveTools.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/waveTools.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/waveTools.cpython-35.pyc' './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/skimpyGimpy.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/skimpyGimpy.cpython-35.pyc' './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/skimpyAPI.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/skimpyAPI.cpython-35.pyc' './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/pngPieChart.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/pngPieChart.cpython-35.pyc' './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/pngBarChart.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/pngBarChart.cpython-35.pyc' './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/httpTempFile.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/httpTempFile.cpython-35.pyc' './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/getparm.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/getparm.cpython-35.pyc' './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/cursive.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/cursive.cpython-35.pyc' './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/canvas.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/canvas.cpython-35.pyc' './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/bdf.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/bdf.cpython-35.pyc' './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/KiPNG.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/skimpyGimpy/__pycache__/KiPNG.cpython-35.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/skimpyGimpy/waveTools.pyo' => './usr/lib/python2.7/site-packages/skimpyGimpy/waveTools.pyc' './usr/lib/python2.7/site-packages/skimpyGimpy/skimpyGimpy.pyo' => './usr/lib/python2.7/site-packages/skimpyGimpy/skimpyGimpy.pyc' './usr/lib/python2.7/site-packages/skimpyGimpy/skimpyAPI.pyo' => './usr/lib/python2.7/site-packages/skimpyGimpy/skimpyAPI.pyc' './usr/lib/python2.7/site-packages/skimpyGimpy/pngPieChart.pyo' => './usr/lib/python2.7/site-packages/skimpyGimpy/pngPieChart.pyc' './usr/lib/python2.7/site-packages/skimpyGimpy/pngBarChart.pyo' => './usr/lib/python2.7/site-packages/skimpyGimpy/pngBarChart.pyc' './usr/lib/python2.7/site-packages/skimpyGimpy/httpTempFile.pyo' => './usr/lib/python2.7/site-packages/skimpyGimpy/httpTempFile.pyc' './usr/lib/python2.7/site-packages/skimpyGimpy/getparm.pyo' => './usr/lib/python2.7/site-packages/skimpyGimpy/getparm.pyc' './usr/lib/python2.7/site-packages/skimpyGimpy/cursive.pyo' => './usr/lib/python2.7/site-packages/skimpyGimpy/cursive.pyc' './usr/lib/python2.7/site-packages/skimpyGimpy/canvas.pyo' => './usr/lib/python2.7/site-packages/skimpyGimpy/canvas.pyc' './usr/lib/python2.7/site-packages/skimpyGimpy/bdf.pyo' => './usr/lib/python2.7/site-packages/skimpyGimpy/bdf.pyc' './usr/lib/python2.7/site-packages/skimpyGimpy/__init__.pyo' => './usr/lib/python2.7/site-packages/skimpyGimpy/__init__.pyc' './usr/lib/python2.7/site-packages/skimpyGimpy/KiPNG.pyo' => './usr/lib/python2.7/site-packages/skimpyGimpy/KiPNG.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.1264 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-skimpyGimpy-1.4 + python setup.py test running test running egg_info writing skimpyGimpy.egg-info/PKG-INFO writing top-level names to skimpyGimpy.egg-info/top_level.txt writing dependency_links to skimpyGimpy.egg-info/dependency_links.txt reading manifest file 'skimpyGimpy.egg-info/SOURCES.txt' writing manifest file 'skimpyGimpy.egg-info/SOURCES.txt' running build_ext ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-skimpyGimpy-1.4 + python3 setup.py test running test running egg_info writing dependency_links to skimpyGimpy.egg-info/dependency_links.txt writing skimpyGimpy.egg-info/PKG-INFO writing top-level names to skimpyGimpy.egg-info/top_level.txt reading manifest file 'skimpyGimpy.egg-info/SOURCES.txt' writing manifest file 'skimpyGimpy.egg-info/SOURCES.txt' running build_ext Traceback (most recent call last): File "setup.py", line 31, in "Topic :: Multimedia :: Sound/Audio :: Speech", File "/usr/lib64/python3.5/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib64/python3.5/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/usr/lib64/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 151, in run self.with_project_on_sys_path(self.run_tests) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 127, in with_project_on_sys_path func() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 172, in run_tests testRunner=self._resolve_as_ep(self.test_runner), File "/usr/lib64/python3.5/unittest/main.py", line 94, in __init__ self.parseArgs(argv) File "/usr/lib64/python3.5/unittest/main.py", line 124, in parseArgs self._do_discovery([]) File "/usr/lib64/python3.5/unittest/main.py", line 229, in _do_discovery self.test = loader.discover(self.start, self.pattern, self.top) File "/usr/lib64/python3.5/unittest/loader.py", line 341, in discover tests = list(self._find_tests(start_dir, pattern)) File "/usr/lib64/python3.5/unittest/loader.py", line 398, in _find_tests full_path, pattern, namespace) File "/usr/lib64/python3.5/unittest/loader.py", line 475, in _find_test_path tests = self.loadTestsFromModule(package, pattern=pattern) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 36, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib64/python3.5/unittest/loader.py", line 153, in loadTestsFromName module = __import__(module_name) File "/usr/src/RPM/BUILD/python3/skimpyGimpy/pngPieChart.py", line 12, in class PieChart: File "/usr/src/RPM/BUILD/python3/skimpyGimpy/pngPieChart.py", line 16, in PieChart for i in range(25) ] File "/usr/src/RPM/BUILD/python3/skimpyGimpy/pngPieChart.py", line 16, in for i in range(25) ] TypeError: list indices must be integers or slices, not float error: Bad exit status from /usr/src/tmp/rpm-tmp.1264 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.1264 (%check) Command exited with non-zero status 1 4.75user 0.31system 0:07.52elapsed 67%CPU (0avgtext+0avgdata 58644maxresident)k 0inputs+0outputs (0major+150272minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-skimpyGimpy-1.4-alt1.1.src.rpm' failed. Command exited with non-zero status 1 9.85user 1.83system 0:16.99elapsed 68%CPU (0avgtext+0avgdata 121980maxresident)k 0inputs+0outputs (0major+348696minor)pagefaults 0swaps