<86>Apr 14 00:47:25 userdel[16082]: delete user 'rooter' <86>Apr 14 00:47:25 userdel[16082]: removed group 'rooter' owned by 'rooter' <86>Apr 14 00:47:25 userdel[16082]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 14 00:47:25 groupadd[16098]: group added to /etc/group: name=rooter, GID=597 <86>Apr 14 00:47:25 groupadd[16098]: group added to /etc/gshadow: name=rooter <86>Apr 14 00:47:25 groupadd[16098]: new group: name=rooter, GID=597 <86>Apr 14 00:47:25 useradd[16114]: new user: name=rooter, UID=597, GID=597, home=/root, shell=/bin/bash <86>Apr 14 00:47:25 userdel[16138]: delete user 'builder' <86>Apr 14 00:47:25 userdel[16138]: removed group 'builder' owned by 'builder' <86>Apr 14 00:47:25 userdel[16138]: removed shadow group 'builder' owned by 'builder' <86>Apr 14 00:47:25 groupadd[16149]: group added to /etc/group: name=builder, GID=598 <86>Apr 14 00:47:25 groupadd[16149]: group added to /etc/gshadow: name=builder <86>Apr 14 00:47:25 groupadd[16149]: new group: name=builder, GID=598 <86>Apr 14 00:47:25 useradd[16157]: new user: name=builder, UID=598, GID=598, home=/usr/src, shell=/bin/bash <13>Apr 14 00:47:28 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 14 00:47:28 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 14 00:47:28 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 14 00:47:28 rpmi: libgpg-error-1.31-alt1.M80P.1 1529024730 installed <13>Apr 14 00:47:28 rpmi: libgcrypt20-1.8.3-alt4 p8+219793.200.6.1 1551112986 installed <13>Apr 14 00:47:28 rpmi: libxslt-1.1.28-alt4 1448210404 installed <13>Apr 14 00:47:28 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 14 00:47:28 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 14 00:47:28 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 14 00:47:28 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 14 00:47:29 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 14 00:47:29 groupadd[18941]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 14 00:47:29 groupadd[18941]: group added to /etc/gshadow: name=_keytab <86>Apr 14 00:47:29 groupadd[18941]: new group: name=_keytab, GID=499 <13>Apr 14 00:47:29 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 14 00:47:29 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 00:47:29 rpmi: python3-module-six-1.10.0-alt7 1496087616 installed <13>Apr 14 00:47:29 rpmi: python3-module-pycparser-2.14-alt1.1 1458071180 installed <13>Apr 14 00:47:29 rpmi: python3-module-asn1crypto-0.22.0-alt0.M80P.1 1501735102 installed <13>Apr 14 00:47:29 rpmi: python3-module-idna-2.5-alt0.M80P.1 1501735172 installed <13>Apr 14 00:47:29 rpmi: python3-module-cssselect-0.9.1-alt1.1 1457858257 installed <13>Apr 14 00:47:29 rpmi: python3-module-webencodings-0.5.1-alt0.M80P.1 1507185481 installed <13>Apr 14 00:47:29 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 14 00:47:30 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:47:30 rpmi: python3-module-redis-py-2.10.3-alt2.1.1 1458094267 installed <13>Apr 14 00:47:30 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 14 00:47:30 rpmi: python3-module-cffi-1.10.0-alt0.M80P.1 1501702481 installed <13>Apr 14 00:47:30 rpmi: python3-module-cryptography-2.0.0-alt0.M80P.1 1501702598 installed <13>Apr 14 00:47:30 rpmi: python3-module-OpenSSL-16.2.0-alt0.M80P.1 1505402609 installed <13>Apr 14 00:47:30 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 14 00:47:30 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:47:30 rpmi: python3-module-ujson-1.34-alt1.git20140416.1 1459621176 installed <13>Apr 14 00:47:30 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 14 00:47:30 rpmi: python3-module-lxml-4.0.0-alt0.M80P.1 1507163741 installed <13>Apr 14 00:47:30 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:47:30 rpmi: python3-module-ntlm-1.1.0-alt1.1.1.1 1460405346 installed <13>Apr 14 00:47:30 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 14 00:47:30 rpmi: python3-module-html5lib-1:0.999999999-alt1.M80P.2 1507185603 installed <13>Apr 14 00:47:30 rpmi: python3-module-pip-10.0.1-alt1.M80P.1 1528316057 installed <13>Apr 14 00:47:31 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:47:31 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:47:31 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:47:31 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:47:31 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 14 00:47:31 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed Installing python-module-redis_structures-0.0.1-alt1.a0.git20150318.1.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.52858 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-redis_structures-0.0.1 + echo 'Source #0 (python-module-redis_structures-0.0.1.tar):' Source #0 (python-module-redis_structures-0.0.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-redis_structures-0.0.1.tar + cd python-module-redis_structures-0.0.1 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.52858 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-redis_structures-0.0.1 + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-redis_structures-0.0.1 + 2to3 -w -n redis_structures/__init__.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored redis_structures/__init__.py --- redis_structures/__init__.py (original) +++ redis_structures/__init__.py (refactored) @@ -17,7 +17,7 @@ except: from json import dumps from json import loads - print(RuntimeWarning("`ujson` not found, using `json` instead")) + print((RuntimeWarning("`ujson` not found, using `json` instead"))) import hashlib import functools @@ -26,7 +26,7 @@ from collections import OrderedDict from collections import UserList -from vital.debug.debug2 import * +from .vital.debug.debug2 import * __all__ = ( @@ -146,7 +146,7 @@ return self._conn.decrby(self._redis_key(key), 1) def mget(self, *keys): - keys = map(self._redis_key, keys) + keys = list(map(self._redis_key, keys)) return list(map(self.loads, self._conn.mget(*keys))) def update(self, data): @@ -155,7 +155,7 @@ _rk, _dumps = self._redis_key, self.dumps data = self._conn.mset({ _rk(key): _dumps(value) - for key, value in data.items() }) + for key, value in list(data.items()) }) return data def pttl(self, key): return self._conn.pttl(self._redis_key(key)) @@ -185,7 +185,7 @@ keys = iter def values(self): - for key, val in self.items(): + for key, val in list(self.items()): yield val def items(self): @@ -305,7 +305,7 @@ self[key] = value def mget(self, *keys): - keys = map(self._redis_key, keys) + keys = list(map(self._redis_key, keys)) return list(map(self.loads, self._conn.mget(*keys))) def incr(self, key, by): @@ -326,7 +326,7 @@ keys = iter def values(self): - for key, val in self.items(): + for key, val in list(self.items()): yield val def remove(self, *keys): @@ -356,14 +356,14 @@ if data: pipe = self._conn.pipeline(transaction=False) _exists = pipe.exists - for k in data.keys(): + for k in list(data.keys()): _exists(k) exists = pipe.execute().count(True) print(exists) _rk, _dumps = self._redis_key, self.dumps data = { _rk(key): _dumps(value) - for key, value in data.items() } + for key, value in list(data.items()) } pipe.mset(data) pipe.hincrby(self._bucket_key, self._key, len(data)-exists) result = pipe.execute()[0] @@ -482,9 +482,9 @@ for field in self._conn.hkeys(self._key): yield field - def fields(self): return iter(self.keys()) + def fields(self): return iter(list(self.keys())) def values(self): - for key, val in self.items(): + for key, val in list(self.items()): yield val def items(self, match="*", count=10000): @@ -506,7 +506,7 @@ _rk, _dumps = self._redis_key, self.dumps data = { _rk(key): _dumps(value) - for key, value in data.items() } + for key, value in list(data.items()) } result = self._conn.hmset(self._key, data) return result @@ -633,7 +633,7 @@ def append(self, *items): #: LRPUSH if self._serialized: - items = map(self.dumps, items) + items = list(map(self.dumps, items)) self._conn.rpush(self._key, *items) def push(self, *items): @@ -735,7 +735,7 @@ #: SADD - Adds multiple members members = self._typesafe_members(members) if self._serialized: - members = map(self.dumps, members) + members = list(map(self.dumps, members)) if members: return self._conn.sadd(self._key, *members) @@ -807,7 +807,7 @@ def remove(self, *members): if self._serialized: - members = map(self.dumps, members) + members = list(map(self.dumps, members)) return self._conn.srem(self._key, *members) @property @@ -910,7 +910,7 @@ # kwargs fRefactoringTool: Files that were modified: RefactoringTool: redis_structures/__init__.py ormat: key=value, key=value zargs+=[ _dumps(x) if (i == 1 and self._serialized) else x - for y in kwargs.items() for i, x in enumerate(reversed(y)) ] + for y in list(kwargs.items()) for i, x in enumerate(reversed(y)) ] return self._conn.zadd(self._key, *zargs) def remove(self, *members): @@ -972,8 +972,8 @@ k/v's retrieved are one-offs """ if self._serialized: _loads = lambda x: (self.loads[0], x[1]) - return map(_loads, - self._conn.zscan_iter(self._key, match=match, count=count)) + return list(map(_loads, + self._conn.zscan_iter(self._key, match=match, count=count))) else: return iter(self._conn.zscan_iter( self._key, match=match, count=count)) @@ -982,8 +982,8 @@ #: SSCAN if self._serialized: _loads = lambda x: (self.loads[0], x[1]) - return map(_loads, self._conn.zscan( - self._key, cursor=cursor, match=match, count=count)) + return list(map(_loads, self._conn.zscan( + self._key, cursor=cursor, match=match, count=count))) else: return self._conn.zscan( self._key, cursor=cursor, match=match, count=count) + 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 Traceback (most recent call last): File "setup.py", line 5, in from pip.req import parse_requirements ImportError: No module named 'pip.req' error: Bad exit status from /usr/src/tmp/rpm-tmp.52858 (%build) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.52858 (%build) Command exited with non-zero status 1 2.77user 0.21system 0:03.07elapsed 97%CPU (0avgtext+0avgdata 31640maxresident)k 0inputs+0outputs (0major+33300minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-redis_structures-0.0.1-alt1.a0.git20150318.1.1.src.rpm' failed. Command exited with non-zero status 1 8.78user 3.95system 0:12.53elapsed 101%CPU (0avgtext+0avgdata 122040maxresident)k 5880inputs+0outputs (0major+219697minor)pagefaults 0swaps