Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-wscore.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1687310242.011821/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-wscore.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-WsCore-0.10.20-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-wscore.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1687310242.011821/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-wscore.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-WsCore-0.10.20-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-wscore.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1687310242.011821/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-wscore.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tJcfvS + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf WsCore-0.10.20 + /usr/bin/gzip -dc /builddir/build/SOURCES/WsCore-0.10.20.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd WsCore-0.10.20 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.rQBtUo + umask 022 + cd /builddir/build/BUILD + cd WsCore-0.10.20 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/WsCore copying WsCore/orm.py -> build/lib/WsCore copying WsCore/Paginator.py -> build/lib/WsCore copying WsCore/__init__.py -> build/lib/WsCore creating build/lib/WsCore/db copying WsCore/db/MySQLHelper.py -> build/lib/WsCore/db copying WsCore/db/db_pool.py -> build/lib/WsCore/db copying WsCore/db/__init__.py -> build/lib/WsCore/db copying WsCore/db/Make.py -> build/lib/WsCore/db creating build/lib/WsCore/kenel copying WsCore/kenel/IO.py -> build/lib/WsCore/kenel copying WsCore/kenel/JSON.py -> build/lib/WsCore/kenel copying WsCore/kenel/__init__.py -> build/lib/WsCore/kenel copying WsCore/kenel/XML.py -> build/lib/WsCore/kenel + sleep 1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.jCLLDF + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64 ++ dirname /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64 + cd WsCore-0.10.20 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64 running install running install_lib creating /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr creating /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib creating /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9 creating /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages creating /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore copying build/lib/WsCore/orm.py -> /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore creating /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/db copying build/lib/WsCore/db/MySQLHelper.py -> /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/db copying build/lib/WsCore/db/db_pool.py -> /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/db copying build/lib/WsCore/db/__init__.py -> /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/db copying build/lib/WsCore/db/Make.py -> /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/db copying build/lib/WsCore/Paginator.py -> /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore creating /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/kenel copying build/lib/WsCore/kenel/IO.py -> /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/kenel copying build/lib/WsCore/kenel/JSON.py -> /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/kenel copying build/lib/WsCore/kenel/__init__.py -> /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/kenel copying build/lib/WsCore/kenel/XML.py -> /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/kenel copying build/lib/WsCore/__init__.py -> /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore byte-compiling /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/orm.py to orm.cpython-39.pyc File "/usr/lib/python3.9/site-packages/WsCore/orm.py", line 325 print sql_str ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(sql_str)? byte-compiling /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/db/MySQLHelper.py to MySQLHelper.cpython-39.pyc File "/usr/lib/python3.9/site-packages/WsCore/db/MySQLHelper.py", line 58 except MySQLdb.Error, e: ^ SyntaxError: invalid syntax byte-compiling /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/db/db_pool.py to db_pool.cpython-39.pyc File "/usr/lib/python3.9/site-packages/WsCore/db/db_pool.py", line 38 except Exception, e: ^ SyntaxError: invalid syntax byte-compiling /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/db/__init__.py to __init__.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/db/Make.py to Make.cpython-39.pyc File "/usr/lib/python3.9/site-packages/WsCore/db/Make.py", line 40 print content ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(content)? byte-compiling /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/Paginator.py to Paginator.cpython-39.pyc File "/usr/lib/python3.9/site-packages/WsCore/Paginator.py", line 57 print p.current ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(p.current)? byte-compiling /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/kenel/IO.py to IO.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/kenel/JSON.py to JSON.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/kenel/__init__.py to __init__.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/kenel/XML.py to XML.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/__init__.py to __init__.cpython-39.pyc writing byte-compilation script '/tmp/tmpowjbzzsq.py' /usr/bin/python3 /tmp/tmpowjbzzsq.py File "/usr/lib/python3.9/site-packages/WsCore/orm.py", line 325 print sql_str ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(sql_str)? File "/usr/lib/python3.9/site-packages/WsCore/db/MySQLHelper.py", line 58 except MySQLdb.Error, e: ^ SyntaxError: invalid syntax File "/usr/lib/python3.9/site-packages/WsCore/db/db_pool.py", line 38 except Exception, e: ^ SyntaxError: invalid syntax File "/usr/lib/python3.9/site-packages/WsCore/db/Make.py", line 40 print content ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(content)? File "/usr/lib/python3.9/site-packages/WsCore/Paginator.py", line 57 print p.current ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(p.current)? removing /tmp/tmpowjbzzsq.py running install_egg_info Writing /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore-0.10.20-py3.9.egg-info + install -d -m755 /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64//usr/share/doc/python-WsCore + '[' -d doc ']' ~/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64 ~/build/BUILD/WsCore-0.10.20 + '[' -d docs ']' + '[' -d example ']' + '[' -d examples ']' + pushd /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64 + '[' -d usr/lib ']' + find usr/lib -type f -printf '"/%h/%f"\n' + '[' -d usr/lib64 ']' + '[' -d usr/bin ']' + '[' -d usr/sbin ']' + touch doclist.lst + '[' -d usr/share/man ']' ~/build/BUILD/WsCore-0.10.20 + popd + mv /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/filelist.lst . + mv /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/doclist.lst . + /usr/bin/find-debuginfo -j4 --strict-build-id -i --build-id-seed 0.10.20-1 --unique-debug-suffix -0.10.20-1.aarch64 --unique-debug-src-base python-WsCore-0.10.20-1.aarch64 -S debugsourcefiles.list /builddir/build/BUILD/WsCore-0.10.20 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9 using /usr/bin/python3.9 *** Error compiling '/builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/Paginator.py'... File "/usr/lib/python3.9/site-packages/WsCore/Paginator.py", line 57 print p.current ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(p.current)? *** Error compiling '/builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/db/Make.py'... File "/usr/lib/python3.9/site-packages/WsCore/db/Make.py", line 40 print content ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(content)? *** Error compiling '/builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/db/MySQLHelper.py'... File "/usr/lib/python3.9/site-packages/WsCore/db/MySQLHelper.py", line 58 except MySQLdb.Error, e: ^ SyntaxError: invalid syntax *** Error compiling '/builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/db/db_pool.py'... File "/usr/lib/python3.9/site-packages/WsCore/db/db_pool.py", line 38 except Exception, e: ^ SyntaxError: invalid syntax *** Error compiling '/builddir/build/BUILDROOT/python-WsCore-0.10.20-1.aarch64/usr/lib/python3.9/site-packages/WsCore/orm.py'... File "/usr/lib/python3.9/site-packages/WsCore/orm.py", line 325 print sql_str ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(sql_str)? error: Bad exit status from /var/tmp/rpm-tmp.jCLLDF (%install) Bad exit status from /var/tmp/rpm-tmp.jCLLDF (%install) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-wscore.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-wscore.spec