<86>Apr 21 00:49:26 userdel[90451]: delete user 'rooter' <86>Apr 21 00:49:26 userdel[90451]: removed shadow group 'rooter' owned by 'rooter' <86>Apr 21 00:49:26 groupadd[90513]: group added to /etc/group: name=rooter, GID=681 <86>Apr 21 00:49:26 groupadd[90513]: group added to /etc/gshadow: name=rooter <86>Apr 21 00:49:26 groupadd[90513]: new group: name=rooter, GID=681 <86>Apr 21 00:49:26 useradd[90521]: new user: name=rooter, UID=681, GID=681, home=/root, shell=/bin/bash <86>Apr 21 00:49:26 userdel[90566]: delete user 'builder' <86>Apr 21 00:49:26 userdel[90566]: removed group 'builder' owned by 'builder' <86>Apr 21 00:49:26 userdel[90566]: removed shadow group 'builder' owned by 'builder' <86>Apr 21 00:49:26 groupadd[90588]: group added to /etc/group: name=builder, GID=682 <86>Apr 21 00:49:26 groupadd[90588]: group added to /etc/gshadow: name=builder <86>Apr 21 00:49:26 groupadd[90588]: new group: name=builder, GID=682 <86>Apr 21 00:49:26 useradd[90663]: new user: name=builder, UID=682, GID=682, home=/usr/src, shell=/bin/bash <13>Apr 21 00:49:29 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 21 00:49:29 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 21 00:49:29 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 21 00:49:29 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 21 00:49:29 rpmi: python-module-ndg-0.4.0-alt2.1.1 1460404734 installed <13>Apr 21 00:49:29 rpmi: python-module-enum34-1.0.4-alt1.1.1 1457942288 installed <13>Apr 21 00:49:29 rpmi: libtinfo-devel-5.9-alt8 1456756459 installed <13>Apr 21 00:49:29 rpmi: libncurses-devel-5.9-alt8 1456756459 installed <13>Apr 21 00:49:29 rpmi: python-modules-curses-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:29 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 21 00:49:29 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 21 00:49:29 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 21 00:49:29 groupadd[105260]: group added to /etc/group: name=_keytab, GID=499 <86>Apr 21 00:49:29 groupadd[105260]: group added to /etc/gshadow: name=_keytab <86>Apr 21 00:49:29 groupadd[105260]: new group: name=_keytab, GID=499 <13>Apr 21 00:49:29 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 21 00:49:30 rpmi: python3-base-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:49:30 rpmi: python-modules-compiler-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:30 rpmi: python3-module-chardet-3.0.4-alt1 1506613818 installed <13>Apr 21 00:49:30 rpmi: python3-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 00:49:30 rpmi: python-modules-email-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:30 rpmi: python3-3.5.4-alt2.M80P.1 1527753911 installed <13>Apr 21 00:49:30 rpmi: python3-module-pycrypto-2.7-alt3.a1.git20140620.1 1459652085 installed <13>Apr 21 00:49:30 rpmi: python3-module-oauthlib-0.7.2-alt1.1.1 1458002317 installed <13>Apr 21 00:49:30 rpmi: rpm-build-python3-0.1.10.10-alt1.M80P.1 1530521451 installed <13>Apr 21 00:49:30 rpmi: python3-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 00:49:30 rpmi: python3-module-yieldfrom-0.1.2-alt4.git20141229 1461857760 installed <13>Apr 21 00:49:30 rpmi: python-modules-unittest-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:30 rpmi: python3-module-yieldfrom.http-0.1.2-alt2.git20150311 1461873106 installed <13>Apr 21 00:49:30 rpmi: python3-module-yieldfrom.http.client-0.1.2-alt2.git20150311 1461873106 installed <13>Apr 21 00:49:30 rpmi: python3-module-yieldfrom.urllib3-0.1.2-alt4.git20141229 1461857760 installed <13>Apr 21 00:49:30 rpmi: python3-module-yieldfrom.requests-0.1.1-alt1.git20141019.1 1458117679 installed <13>Apr 21 00:49:30 rpmi: python3-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 00:49:30 rpmi: python3-module-requests-oauthlib-0.4.1-alt1.git20140606.1.1 1458102679 installed <13>Apr 21 00:49:30 rpmi: python-modules-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:30 rpmi: python-modules-ctypes-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:30 rpmi: python-modules-encodings-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:30 rpmi: python-modules-json-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:30 rpmi: python-module-six-1.10.0-alt7 1496087616 installed <13>Apr 21 00:49:30 rpmi: python-module-pycrypto-2.7-alt3.a1.git20140620.1 1459652085 installed <13>Apr 21 00:49:30 rpmi: python-modules-multiprocessing-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:30 rpmi: python-modules-logging-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:31 rpmi: python-module-chardet-3.0.4-alt1 1506613818 installed <13>Apr 21 00:49:31 rpmi: python-tools-2to3-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:31 rpmi: python-module-oauthlib-0.7.2-alt1.1.1 1458002317 installed <13>Apr 21 00:49:31 rpmi: python-modules-xml-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:31 rpmi: python-modules-hotshot-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:31 rpmi: python-modules-bsddb-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:31 rpmi: python-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:31 rpmi: python-strict-2.7.11-alt6.M80P.1 1527682534 installed <13>Apr 21 00:49:31 rpmi: python-module-idna-2.5-alt0.M80P.1 1501735172 installed <13>Apr 21 00:49:31 rpmi: python-module-pycparser-2.14-alt1.1 1458071180 installed <13>Apr 21 00:49:31 rpmi: python-module-cffi-1.10.0-alt0.M80P.1 1501702481 installed <13>Apr 21 00:49:31 rpmi: python-module-asn1crypto-0.22.0-alt0.M80P.1 1501735102 installed <13>Apr 21 00:49:31 rpmi: python-dev-2.7.11-alt6.M80P.1 1527682470 installed <13>Apr 21 00:49:31 rpmi: python-module-ipaddress-1.0.18-alt0.M80P.1 1525452992 installed <13>Apr 21 00:49:31 rpmi: python-module-cryptography-2.0.0-alt0.M80P.1 1501702598 installed <13>Apr 21 00:49:31 rpmi: python-module-OpenSSL-16.2.0-alt0.M80P.1 1505402609 installed <13>Apr 21 00:49:31 rpmi: python-module-backports-3.5.0.1-alt0.M80P.1 1525453027 installed <13>Apr 21 00:49:31 rpmi: python-module-backports.ssl_match_hostname-3.5.0.1-alt0.M80P.1 1525453027 installed <13>Apr 21 00:49:31 rpmi: python-module-py-1.4.34-alt0.M80P.1 1503506764 installed <13>Apr 21 00:49:31 rpmi: python-module-setuptools-1:18.5-alt0.M80P.1 1497527461 installed <13>Apr 21 00:49:31 rpmi: python-module-ndg-httpsclient-0.4.0-alt2.1.1 1460404734 installed <13>Apr 21 00:49:31 rpmi: python-module-ntlm-1.1.0-alt1.1.1.1 1460405346 installed <13>Apr 21 00:49:31 rpmi: python-module-urllib3-2:1.21.1-alt1 1506613994 installed <13>Apr 21 00:49:31 rpmi: python-module-requests-2.18.4-alt1 1506613877 installed <13>Apr 21 00:49:31 rpmi: python-module-pytest-3.2.1-alt0.M80P.1 1503499784 installed <13>Apr 21 00:49:31 rpmi: python-module-requests-oauthlib-0.4.1-alt1.git20140606.1.1 1458102679 installed Installing python-module-linkedin-4.2-alt1.git20150625.1.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.17348 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-linkedin-4.2 + echo 'Source #0 (python-module-linkedin-4.2.tar):' Source #0 (python-module-linkedin-4.2.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-linkedin-4.2.tar + cd python-module-linkedin-4.2 + /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: No changes to ../python3/setup.py RefactoringTool: Refactored ../python3/linkedin/utils.py RefactoringTool: Refactored ../python3/linkedin/server.py RefactoringTool: No changes to ../python3/linkedin/models.py RefactoringTool: Refactored ../python3/linkedin/linkedin.py RefactoringTool: No changes to ../python3/linkedin/__init__.py RefactoringTool: Refactored ../python3/examples/http_api.py --- ../python3/linkedin/utils.py (original) +++ ../python3/linkedin/utils.py (refactored) @@ -15,10 +15,10 @@ if sys.version_info < (3,): - import __builtin__ + import builtins def to_utf8(x): - return __builtin__.unicode(x) + return builtins.str(x) def to_string(x): return str(x) @@ -45,7 +45,7 @@ methods = {} base_classes = base_classes + (object,) - for k, v in methods.items(): + for k, v in list(methods.items()): methods[k] = classmethod(v) attrs['enums'] = attrs.copy() --- ../python3/linkedin/server.py (original) +++ ../python3/linkedin/server.py (refactored) @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -import BaseHTTPServer -import urlparse +import http.server +import urllib.parse from .linkedin import LinkedInApplication, LinkedInAuthentication, PERMISSIONS @@ -19,22 +19,22 @@ object. """ auth = LinkedInAuthentication(api_key, secret_key, 'http://localhost:8000/', - PERMISSIONS.enums.values()) + list(PERMISSIONS.enums.values())) app = LinkedInApplication(authentication=auth) - print auth.authorization_url + print(auth.authorization_url) _wait_for_user_to_enter_browser(app, port) return app def _wait_for_user_to_enter_browser(app, port): - class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler): + class MyHandler(http.server.BaseHTTPRequestHandler): def do_GET(self): p = self.path.split('?') if len(p) > 1: - params = urlparse.parse_qs(p[1], True, True) + params = urllib.parse.parse_qs(p[1], True, True) app.authentication.authorization_code = params['code'][0] app.authentication.get_access_token() server_address = ('', port) - httpd = BaseHTTPServer.HTTPServer(server_address, MyHandler) + httpd = http.server.HTTPServer(server_address, MyHandler) httpd.handle_request() --- ../python3/linkedin/linkedin.py (original) +++ ../python3/linkedin/linkedin.py (refactored) @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import unicode_literals + import contextlib import hashlib import random @@ -7,7 +7,7 @@ try: from urllib.parse import quote, quote_plus except ImportError: - from urllib import quote, quote_plus + from urllib.parse import quote, quote_plus import requests from requests_oauthlib import OAuth1 @@ -98,7 +98,7 @@ 'redirect_uri': self.redirect_uri} # urlencode uses quote_plus when encoding the query string so, # we ought to be encoding the qs by on our own. - qsl = ['%s=%s' % (quote(k), quote(v)) for k, v in qd.items()] + qsl = ['%s=%s' % (quote(k), quote(v)) for k, v in list(qd.items())] return '%s?%s' % (self.AUTHORIZATION_URL, '&'.join(qsl)) @property @@ -129,7 +129,7 @@ def parse(cls, selector): with contextlib.closing(StringIO()) as result: if type(selector) == dict: - for k, v in selector.items(): + for k, v in list(selector.items()): result.write('%s:(%s)' % (to_utf8(k), cls.parse(v))) elif type(selector) in (list, tuple): result.write(','.join(map(cls.parse, selector))) @@ -342,7 +342,7 @@ identifiers = [] url = ENDPOINTS.COMPANIES if company_ids: - identifiers += map(str, company_ids) + identifiers += list(map(str, company_ids)) if universal_names: identifiers += ['universal-name=%s' % un for un in universal_names] --- ../python3/examples/http_api.py (original) +++ ../python3/examples/http_api.py (refactored) @@ -4,7 +4,7 @@ try: from urllib.parse import urlparse except ImportError: - from urlparse import urlparse + from urllib.parse import urlparse from socketserver import ThreadingTCPServer from http.server import SimpleHTTPRequestHandler @@ -24,14 +24,14 @@ API_KEY = environ.get('LINKEDIN_API_KEY') RefactoringTool: Refactored ../python3/examples/authentication.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/linkedin/utils.py RefactoringTool: ../python3/linkedin/server.py RefactoringTool: ../python3/linkedin/models.py RefactoringTool: ../python3/linkedin/linkedin.py RefactoringTool: ../python3/linkedin/__init__.py RefactoringTool: ../python3/examples/http_api.py RefactoringTool: ../python3/examples/authentication.py API_SECRET = environ.get('LINKEDIN_API_SECRET') RETURN_URL = 'http://localhost:{0}/code'.format(globals()['PORT']) - authentication = LinkedInAuthentication(API_KEY, API_SECRET, RETURN_URL, PERMISSIONS.enums.values()) + authentication = LinkedInAuthentication(API_KEY, API_SECRET, RETURN_URL, list(PERMISSIONS.enums.values())) application = LinkedInApplication(authentication) liw = LinkedInWrapper() run_already = False params_to_d = lambda params: { - l[0]: l[1] for l in map(lambda j: j.split('='), urlparse(params).query.split('&')) + l[0]: l[1] for l in [j.split('=') for j in urlparse(params).query.split('&')] } @@ -50,11 +50,11 @@ liw.authentication.authorization_code = params_to_d(self.path).get('code') self.wfile.write(dumps({'access_token': liw.authentication.get_access_token(), - 'routes': list(filter(lambda d: not d.startswith('_'), dir(liw.application)))}).encode('utf8')) + 'routes': list([d for d in dir(liw.application) if not d.startswith('_')])}).encode('utf8')) elif parsedurl.path == '/routes': self.json_headers() - self.wfile.write(dumps({'routes': list(filter(lambda d: not d.startswith('_'), dir(liw.application)))}).encode('utf8')) + self.wfile.write(dumps({'routes': list([d for d in dir(liw.application) if not d.startswith('_')])}).encode('utf8')) elif not authed: self.json_headers() @@ -73,5 +73,5 @@ if __name__ == '__main__': httpd = ThreadingTCPServer(('localhost', PORT), CustomHandler) - print('Server started on port:{}'.format(PORT)) + print(('Server started on port:{}'.format(PORT))) httpd.serve_forever() --- ../python3/examples/authentication.py (original) +++ ../python3/examples/authentication.py (refactored) @@ -7,6 +7,6 @@ API_SECRET = 'daJDa6_8UcnGMw1yuq9TjoO_PMKukXMo8vEMo7Qv5J-G3SPgrAV0FqFCd0TNjQyG' RETURN_URL = 'http://localhost:8000' authentication = LinkedInAuthentication(API_KEY, API_SECRET, RETURN_URL, - PERMISSIONS.enums.values()) - print authentication.authorization_url + list(PERMISSIONS.enums.values())) + print(authentication.authorization_url) application = LinkedInApplication(authentication) + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.74312 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-linkedin-4.2 + 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/linkedin copying linkedin/utils.py -> build/lib/linkedin copying linkedin/server.py -> build/lib/linkedin copying linkedin/models.py -> build/lib/linkedin copying linkedin/linkedin.py -> build/lib/linkedin copying linkedin/exceptions.py -> build/lib/linkedin copying linkedin/__init__.py -> build/lib/linkedin + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-linkedin-4.2 + 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/linkedin copying linkedin/utils.py -> build/lib/linkedin copying linkedin/server.py -> build/lib/linkedin copying linkedin/models.py -> build/lib/linkedin copying linkedin/linkedin.py -> build/lib/linkedin copying linkedin/exceptions.py -> build/lib/linkedin copying linkedin/__init__.py -> build/lib/linkedin + popd ~/RPM/BUILD/python-module-linkedin-4.2 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.62323 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-linkedin-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-linkedin-buildroot + cd python-module-linkedin-4.2 + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-linkedin-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-linkedin-buildroot creating /usr/src/tmp/python-module-linkedin-buildroot/usr creating /usr/src/tmp/python-module-linkedin-buildroot/usr/lib creating /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin copying build/lib/linkedin/__init__.py -> /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin copying build/lib/linkedin/exceptions.py -> /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin copying build/lib/linkedin/linkedin.py -> /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin copying build/lib/linkedin/models.py -> /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin copying build/lib/linkedin/server.py -> /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin copying build/lib/linkedin/utils.py -> /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin byte-compiling /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/exceptions.py to exceptions.pyc byte-compiling /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/linkedin.py to linkedin.pyc byte-compiling /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/models.py to models.pyc byte-compiling /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/server.py to server.pyc byte-compiling /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/utils.py to utils.pyc running install_egg_info running egg_info creating python_linkedin.egg-info writing requirements to python_linkedin.egg-info/requires.txt writing python_linkedin.egg-info/PKG-INFO writing top-level names to python_linkedin.egg-info/top_level.txt writing dependency_links to python_linkedin.egg-info/dependency_links.txt writing manifest file 'python_linkedin.egg-info/SOURCES.txt' reading manifest file 'python_linkedin.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'python_linkedin.egg-info/SOURCES.txt' Copying python_linkedin.egg-info to /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/python_linkedin-4.2-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-linkedin-4.2 + python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-linkedin-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin copying build/lib/linkedin/__init__.py -> /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin copying build/lib/linkedin/exceptions.py -> /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin copying build/lib/linkedin/linkedin.py -> /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin copying build/lib/linkedin/models.py -> /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin copying build/lib/linkedin/server.py -> /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin copying build/lib/linkedin/utils.py -> /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin byte-compiling /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/__init__.py to __init__.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/exceptions.py to exceptions.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/linkedin.py to linkedin.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/models.py to models.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/server.py to server.cpython-35.pyc byte-compiling /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/utils.py to utils.cpython-35.pyc running install_egg_info running egg_info creating python_linkedin.egg-info writing requirements to python_linkedin.egg-info/requires.txt writing top-level names to python_linkedin.egg-info/top_level.txt writing python_linkedin.egg-info/PKG-INFO writing dependency_links to python_linkedin.egg-info/dependency_links.txt writing manifest file 'python_linkedin.egg-info/SOURCES.txt' reading manifest file 'python_linkedin.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'python_linkedin.egg-info/SOURCES.txt' Copying python_linkedin.egg-info to /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/python_linkedin-4.2-py3.5.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-linkedin-4.2 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-linkedin-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-linkedin-buildroot (binconfig,pkgconfig,libtool,desktop) Compressing files in /usr/src/tmp/python-module-linkedin-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-linkedin-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-linkedin-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-linkedin-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/__init__.pyc unlink /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/exceptions.pyc unlink /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/linkedin.pyc unlink /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/models.pyc unlink /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/server.pyc unlink /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/utils.pyc compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/__init__.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/exceptions.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/linkedin.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/models.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/server.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/utils.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-linkedin-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/__init__.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/exceptions.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/linkedin.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/models.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/server.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python2.7/site-packages/linkedin/utils.py Bytecompiling python3 modules in /usr/src/tmp/python-module-linkedin-buildroot using python3 unlink /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/__pycache__/__init__.cpython-35.pyc unlink /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/__pycache__/exceptions.cpython-35.pyc unlink /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/__pycache__/linkedin.cpython-35.pyc unlink /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/__pycache__/models.cpython-35.pyc unlink /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/__pycache__/server.cpython-35.pyc unlink /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/__pycache__/utils.cpython-35.pyc compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/__init__.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/exceptions.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/linkedin.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/models.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/server.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/utils.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-linkedin-buildroot using python3 -O compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/__init__.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/exceptions.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/linkedin.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/models.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/server.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/utils.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-linkedin-buildroot using python3 -OO compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/__init__.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/exceptions.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/linkedin.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/models.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/server.py compile /usr/src/tmp/python-module-linkedin-buildroot/usr/lib/python3/site-packages/linkedin/utils.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/linkedin/__pycache__/utils.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/linkedin/__pycache__/utils.cpython-35.pyc' './usr/lib/python3/site-packages/linkedin/__pycache__/server.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/linkedin/__pycache__/server.cpython-35.pyc' './usr/lib/python3/site-packages/linkedin/__pycache__/models.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/linkedin/__pycache__/models.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/linkedin/__pycache__/exceptions.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/linkedin/__pycache__/exceptions.cpython-35.pyc' './usr/lib/python3/site-packages/linkedin/__pycache__/exceptions.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/linkedin/__pycache__/exceptions.cpython-35.opt-1.pyc' './usr/lib/python3/site-packages/linkedin/__pycache__/__init__.cpython-35.opt-1.pyc' => './usr/lib/python3/site-packages/linkedin/__pycache__/__init__.cpython-35.pyc' './usr/lib/python3/site-packages/linkedin/__pycache__/__init__.cpython-35.opt-2.pyc' => './usr/lib/python3/site-packages/linkedin/__pycache__/__init__.cpython-35.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/linkedin/utils.pyo' => './usr/lib/python2.7/site-packages/linkedin/utils.pyc' './usr/lib/python2.7/site-packages/linkedin/server.pyo' => './usr/lib/python2.7/site-packages/linkedin/server.pyc' './usr/lib/python2.7/site-packages/linkedin/exceptions.pyo' => './usr/lib/python2.7/site-packages/linkedin/exceptions.pyc' './usr/lib/python2.7/site-packages/linkedin/__init__.pyo' => './usr/lib/python2.7/site-packages/linkedin/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.56350 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-linkedin-4.2 + python setup.py test running test running egg_info deleting python_linkedin.egg-info/requires.txt writing python_linkedin.egg-info/PKG-INFO writing top-level names to python_linkedin.egg-info/top_level.txt writing dependency_links to python_linkedin.egg-info/dependency_links.txt reading manifest file 'python_linkedin.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'python_linkedin.egg-info/SOURCES.txt' running build_ext ---------------------------------------------------------------------- Ran 0 tests in 0.000s OK + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-linkedin-4.2 + python3 setup.py test running test running egg_info writing top-level names to python_linkedin.egg-info/top_level.txt writing dependency_links to python_linkedin.egg-info/dependency_links.txt writing python_linkedin.egg-info/PKG-INFO deleting python_linkedin.egg-info/requires.txt reading manifest file 'python_linkedin.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'python_linkedin.egg-info/SOURCES.txt' running build_ext Traceback (most recent call last): File "setup.py", line 39, in zip_safe=False 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/examples/http_api.py", line 17, in from linkedin.linkedin import LinkedInAuthentication, LinkedInApplication, PERMISSIONS File "/usr/src/RPM/BUILD/python3/linkedin/linkedin.py", line 13, in from requests_oauthlib import OAuth1 File "/usr/lib/python3/site-packages/requests_oauthlib/__init__.py", line 12, in raise Warning(msg % requests.__version__) Warning: You are using requests version 0.1.1, which is older than requests-oauthlib expects, please upgrade to 2.0.0 or later. error: Bad exit status from /usr/src/tmp/rpm-tmp.56350 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.56350 (%check) Command exited with non-zero status 1 2.87user 0.35system 0:04.47elapsed 72%CPU (0avgtext+0avgdata 30180maxresident)k 0inputs+0outputs (0major+126725minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-linkedin-4.2-alt1.git20150625.1.1.src.rpm' failed. Command exited with non-zero status 1 7.64user 2.41system 0:12.59elapsed 79%CPU (0avgtext+0avgdata 122100maxresident)k 1168inputs+0outputs (0major+321819minor)pagefaults 0swaps