<86>May 16 07:57:59 userdel[4115417]: delete user 'rooter' <86>May 16 07:57:59 userdel[4115417]: removed group 'rooter' owned by 'rooter' <86>May 16 07:57:59 userdel[4115417]: removed shadow group 'rooter' owned by 'rooter' <86>May 16 07:57:59 groupadd[4115433]: group added to /etc/group: name=rooter, GID=699 <86>May 16 07:57:59 groupadd[4115433]: group added to /etc/gshadow: name=rooter <86>May 16 07:57:59 groupadd[4115433]: new group: name=rooter, GID=699 <86>May 16 07:57:59 useradd[4115446]: new user: name=rooter, UID=699, GID=699, home=/root, shell=/bin/bash <86>May 16 07:57:59 userdel[4115473]: delete user 'builder' <86>May 16 07:57:59 userdel[4115473]: removed group 'builder' owned by 'builder' <86>May 16 07:57:59 userdel[4115473]: removed shadow group 'builder' owned by 'builder' <86>May 16 07:57:59 groupadd[4115501]: group added to /etc/group: name=builder, GID=700 <86>May 16 07:57:59 groupadd[4115501]: group added to /etc/gshadow: name=builder <86>May 16 07:57:59 groupadd[4115501]: new group: name=builder, GID=700 <86>May 16 07:57:59 useradd[4115515]: new user: name=builder, UID=700, GID=700, home=/usr/src, shell=/bin/bash <13>May 16 07:58:01 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>May 16 07:58:01 rpmi: libexpat-2.2.10-alt1 p9+261554.100.1.1 1605103337 installed <13>May 16 07:58:01 rpmi: libp11-kit-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>May 16 07:58:01 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>May 16 07:58:01 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>May 16 07:58:01 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>May 16 07:58:01 rpmi: ca-certificates-2020.06.29-alt1 p9+258899.100.3.1 1601998604 installed <13>May 16 07:58:01 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>May 16 07:58:01 rpmi: p11-kit-trust-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>May 16 07:58:01 rpmi: libcrypto1.1-1.1.1k-alt1 p9+268376.100.3.1 1616721011 installed <13>May 16 07:58:01 rpmi: libssl1.1-1.1.1k-alt1 p9+268376.100.3.1 1616721011 installed <13>May 16 07:58:01 rpmi: python3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>May 16 07:58:02 rpmi: libpython3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>May 16 07:58:02 rpmi: python3-base-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>May 16 07:58:02 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>May 16 07:58:02 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>May 16 07:58:05 rpmi: python-modules-curses-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>May 16 07:58:05 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>May 16 07:58:05 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>May 16 07:58:05 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>May 16 07:58:05 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>May 16 07:58:05 groupadd[4127896]: group added to /etc/group: name=_keytab, GID=499 <86>May 16 07:58:05 groupadd[4127896]: group added to /etc/gshadow: name=_keytab <86>May 16 07:58:05 groupadd[4127896]: new group: name=_keytab, GID=499 <13>May 16 07:58:05 rpmi: libkrb5-1.17.2-alt1 p9+262110.100.3.1 1606242416 installed <13>May 16 07:58:05 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>May 16 07:58:05 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>May 16 07:58:05 rpmi: python-modules-compiler-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-modules-email-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-modules-unittest-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-modules-encodings-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-modules-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-modules-nis-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-modules-xml-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-modules-hotshot-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-modules-bsddb-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-modules-logging-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-modules-distutils-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>May 16 07:58:05 rpmi: python-dev-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>May 16 07:58:05 rpmi: python-tools-2to3-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python-module-facebook-ads-api-0.3.0-alt1.nosrc.rpm (w1.gzdio) <13>May 16 07:58:07 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>May 16 07:58:07 rpmi: python3-dev-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>May 16 07:58:07 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>May 16 07:58:07 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>May 16 07:58:07 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed Installing python-module-facebook-ads-api-0.3.0-alt1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.20199 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf facebook-ads-api-0.3.0 + echo 'Source #0 (facebook-ads-api-0.3.0.tar.gz):' Source #0 (facebook-ads-api-0.3.0.tar.gz): + /bin/gzip -dc /usr/src/RPM/SOURCES/facebook-ads-api-0.3.0.tar.gz + /bin/tar -xf - + cd facebook-ads-api-0.3.0 + /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/facebook.py --- ../python3/facebook.py (original) +++ ../python3/facebook.py (refactored) @@ -6,8 +6,8 @@ import logging import mimetypes import sys -import urllib -import urllib2 +import urllib.request, urllib.parse, urllib.error +import urllib.request, urllib.error, urllib.parse import uuid FACEBOOK_API = 'https://graph.facebook.com' @@ -37,7 +37,7 @@ Yield body's chunk as bytes """ encoder = codecs.getencoder('utf-8') - for key, value in fields.iteritems(): + for key, value in fields.items(): key = self.u(key) yield encoder('--{}\r\n'.format(self.boundary)) yield encoder(self.u( @@ -47,7 +47,7 @@ value = str(value) yield encoder(self.u(value)) yield encoder('\r\n') - for key, value in files.iteritems(): + for key, value in files.items(): key = self.u(key) filename = self.u(value.name) yield encoder('--{}\r\n'.format(self.boundary)) @@ -118,48 +118,48 @@ def make_request(self, path, method, args=None, files=None, batch=False, raw_path=False): """Makes a request against the Facebook Ads API endpoint.""" args = dict(args or {}) - args = {k.encode('utf-8'): unicode(v).encode('utf-8') - for k, v in args.items()} + args = {k.encode('utf-8'): str(v).encode('utf-8') + for k, v in list(args.items())} if batch: # Then just return a dict for the batch request return { 'method': method, - 'relative_url': '%s?%s' % (path, urllib.urlencode(args)) + 'relative_url': '%s?%s' % (path, urllib.parse.urlencode(args)) } logger.info('Making a %s request at %s/%s with %s' % (method, self.api_root, path, args)) if 'access_token' not in args: args['access_token'] = self.access_token try: if method == 'GET': - url = path if raw_path else '%s/%s?%s' % (self.api_root, path, urllib.urlencode(args)) - f = urllib2.urlopen(url) + url = path if raw_path else '%s/%s?%s' % (self.api_root, path, urllib.parse.urlencode(args)) + f = urllib.request.urlopen(url) elif method == 'POST': url = path if raw_path else '%s/%s' % (self.api_root, path) if files: encoder = MultipartFormdataEncoder() content_type, body = encoder.encode(args, files) - req = urllib2.Request(url, data=body) + req = urllib.request.Request(url, data=body) req.add_header('Content-Type', content_type) - f = urllib2.urlopen(req) + f = urllib.request.urlopen(req) else: - f = urllib2.urlopen(url, urllib.urlencode(args)) + f = urllib.request.urlopen(url, urllib.parse.urlencode(args)) elif method == 'DELETE': - url = path if raw_path else '%s/%s?%s' % (self.api_root, path, urllib.urlencode(args)) - req = urllib2.Request(url) + url = path if raw_path else '%s/%s?%s' % (self.api_root, path, urllib.parse.urlencode(args)) + req = urllib.request.Request(url) req.get_method = lambda: 'DELETE' - f = urllib2.urlopen(req) + f = urllib.request.urlopen(req) else: raise return json.load(f) - except urllib2.HTTPError as e: + except urllib.error.HTTPError as e: err = AdsAPIError(e) # Info, not warning or error, because these often happen as an expected result because of user input # and well formed requests that facebook rejects. - logger.info(u'API Error: {}'.format(err.message)) + logger.info('API Error: {}'.format(err.message)) raise err - except urllib2.URLError as e: - RefactoringTool: Files that were modified: RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/facebook.py logger.warn(u'URLError: %s' % e.reason) + except urllib.error.URLError as e: + logger.warn('URLError: %s' % e.reason) raise def make_batch_request(self, batch): @@ -167,37 +167,37 @@ args = {} args['access_token'] = self.access_token args['batch'] = json.dumps(batch) - args = {k.encode('utf-8'): unicode(v).encode('utf-8') - for k, v in args.items()} + args = {k.encode('utf-8'): str(v).encode('utf-8') + for k, v in list(args.items())} logger.info('Making a batched request with %s' % args) try: - f = urllib2.urlopen(self.api_root, urllib.urlencode(args)) + f = urllib.request.urlopen(self.api_root, urllib.parse.urlencode(args)) data = json.load(f) # For debugging self.data = data for idx, val in enumerate(data): data[idx] = json.loads(val['body']) return data - except urllib2.HTTPError as e: + except urllib.error.HTTPError as e: logger.info('%s' % e) return json.load(e) - except urllib2.URLError as e: + except urllib.error.URLError as e: logger.warn('URLError: %s' % e.reason) def make_labeled_batch_request(self, batch): """Makes a batched request with label against the Facebook Ads API.""" try: - labels = batch.keys() - queries = batch.values() + labels = list(batch.keys()) + queries = list(batch.values()) data = self.make_batch_request(queries) # For debugging self.data = data - return dict(zip(labels, data)) - except urllib2.HTTPError as e: - print '%s' % e + return dict(list(zip(labels, data))) + except urllib.error.HTTPError as e: + print('%s' % e) return json.load(e) - except urllib2.URLError as e: - print 'URLError: %s' % e.reason + except urllib.error.URLError as e: + print('URLError: %s' % e.reason) def debug_token(self, token): """Returns debug information about the given token.""" @@ -1149,7 +1149,7 @@ next_page = response.get('paging', {}).get('next', '') if not next_page: break - response = json.load(urllib2.urlopen(next_page)) + response = json.load(urllib.request.urlopen(next_page)) def iterate_by_item(response): @@ -1174,4 +1174,4 @@ next_page = response.get('paging', {}).get('next', '') if not next_page: break - response = json.load(urllib2.urlopen(next_page)) + response = json.load(urllib.request.urlopen(next_page)) + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.33119 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd facebook-ads-api-0.3.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python setup.py build --debug running build running build_py creating build creating build/lib copying facebook.py -> build/lib + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/facebook-ads-api-0.3.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib copying facebook.py -> build/lib + popd ~/RPM/BUILD/facebook-ads-api-0.3.0 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.92658 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-facebook-ads-api-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-facebook-ads-api-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd facebook-ads-api-0.3.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-facebook-ads-api-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-facebook-ads-api-buildroot creating /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr creating /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib creating /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python2.7/site-packages copying build/lib/facebook.py -> /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python2.7/site-packages byte-compiling /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python2.7/site-packages/facebook.py to facebook.pyc running install_egg_info Writing /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python2.7/site-packages/facebook_ads_api-0.3.0-py2.7.egg-info + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/facebook-ads-api-0.3.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-facebook-ads-api-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages copying build/lib/facebook.py -> /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages byte-compiling /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages/facebook.py to facebook.cpython-37.pyc running install_egg_info Writing /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages/facebook_ads_api-0.3.0-py3.7.egg-info File "/usr/lib/python3/site-packages/facebook.py", line 444 filters=None, async=False, batch=False, offset=None, ^ SyntaxError: invalid syntax + popd ~/RPM/BUILD/facebook-ads-api-0.3.0 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-facebook-ads-api-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-facebook-ads-api-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python-module-facebook-ads-api-buildroot/ (default) Compressing files in /usr/src/tmp/python-module-facebook-ads-api-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-facebook-ads-api-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-facebook-ads-api-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-facebook-ads-api-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python2.7/site-packages/facebook.pyc compile /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python2.7/site-packages/facebook.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-facebook-ads-api-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python2.7/site-packages/facebook.py Bytecompiling python3 modules in /usr/src/tmp/python-module-facebook-ads-api-buildroot using /usr/bin/python3 compile /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages/facebook.py /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages/facebook.py can't be compiled : File "/usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages/facebook.py", line 444 filters=None, async=False, batch=False, offset=None, ^ SyntaxError: invalid syntax Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-facebook-ads-api-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages/facebook.py /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages/facebook.py can't be compiled : File "/usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages/facebook.py", line 444 filters=None, async=False, batch=False, offset=None, ^ SyntaxError: invalid syntax Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-facebook-ads-api-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages/facebook.py /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages/facebook.py can't be compiled : File "/usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages/facebook.py", line 444 filters=None, async=False, batch=False, offset=None, ^ SyntaxError: invalid syntax Hardlinking identical .pyc and .opt-?.pyc files Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/facebook.pyo' => './usr/lib/python2.7/site-packages/facebook.pyc' Processing files: python-module-facebook-ads-api-0.3.0-alt1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.59177 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd facebook-ads-api-0.3.0 + DOCDIR=/usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/share/doc/python-module-facebook-ads-api-0.3.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/share/doc/python-module-facebook-ads-api-0.3.0 + /bin/mkdir -p /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/share/doc/python-module-facebook-ads-api-0.3.0 + cp -prL README.md /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/share/doc/python-module-facebook-ads-api-0.3.0 + chmod -R go-w /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/share/doc/python-module-facebook-ads-api-0.3.0 + chmod -R a+rX /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/share/doc/python-module-facebook-ads-api-0.3.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.5WKJQV find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.gJ5SuX find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) python.req: /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python2.7/site-packages/facebook.py: skipping sys Provides: python2.7(facebook) Requires: /usr/lib/python2.7/site-packages, python-modules, python2.7(json), python2.7(logging), python2.7(mimetypes) Processing files: python3-module-facebook-ads-api-0.3.0-alt1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.31758 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd facebook-ads-api-0.3.0 + DOCDIR=/usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/share/doc/python3-module-facebook-ads-api-0.3.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/share/doc/python3-module-facebook-ads-api-0.3.0 + /bin/mkdir -p /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/share/doc/python3-module-facebook-ads-api-0.3.0 + cp -prL README.md /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/share/doc/python3-module-facebook-ads-api-0.3.0 + chmod -R go-w /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/share/doc/python3-module-facebook-ads-api-0.3.0 + chmod -R a+rX /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/share/doc/python3-module-facebook-ads-api-0.3.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Ia5QWM find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.YqkreN find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) python3.req: ERROR: /usr/src/tmp/python-module-facebook-ads-api-buildroot/usr/lib/python3/site-packages/facebook.py: invalid syntax (, line 444) Traceback (most recent call last): File "/usr/lib/rpm/python3.req.py", line 286, in lis = parser.suite('\n'.join(lines)+'\n').tolist(line_info=1) File "", line 444 filters=None, async=False, batch=False, offset=None, ^ SyntaxError: invalid syntax find-requires: ERROR: /usr/lib/rpm/python3.req failed error: /bin/sh failed error: Failed to find Requires RPM build errors: /bin/sh failed Failed to find Requires Command exited with non-zero status 1 6.08user 0.55system 0:10.01elapsed 66%CPU (0avgtext+0avgdata 20480maxresident)k 0inputs+0outputs (0major+173461minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-facebook-ads-api-0.3.0-alt1.src.rpm' failed. Command exited with non-zero status 1 13.62user 3.21system 0:20.66elapsed 81%CPU (0avgtext+0avgdata 115112maxresident)k 0inputs+0outputs (0major+582438minor)pagefaults 0swaps