Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-gispython.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1686496015.352525/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-gispython.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-GISPython-59.2-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-gispython.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1686496015.352525/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-gispython.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-GISPython-59.2-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-gispython.spec'], chrootPath='/var/lib/mock/openeuler-22.03_LTS_SP1-aarch64-1686496015.352525/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-gispython.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.cseQWa + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf GISPython-59.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/GISPython-59.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd GISPython-59.2 + /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.KnTFW1 + umask 022 + cd /builddir/build/BUILD + cd GISPython-59.2 + 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' /usr/lib/python3.9/site-packages/setuptools/dist.py:487: UserWarning: Normalizing '59.0002' to '59.2' warnings.warn(tmpl.format(**locals())) running build running build_py creating build creating build/lib creating build/lib/GISPython copying GISPython/AGServerHelperToken.py -> build/lib/GISPython copying GISPython/MyError.py -> build/lib/GISPython copying GISPython/GDBHelper.py -> build/lib/GISPython copying GISPython/GISPythonToolBase.py -> build/lib/GISPython copying GISPython/GISPythonModule.py -> build/lib/GISPython copying GISPython/xmlParamsHealper.py -> build/lib/GISPython copying GISPython/CachingHelper.py -> build/lib/GISPython copying GISPython/PublisherHealper.py -> build/lib/GISPython copying GISPython/SFTPHelper.py -> build/lib/GISPython copying GISPython/ZipHelper.py -> build/lib/GISPython copying GISPython/GDPSyncroniserHelper.py -> build/lib/GISPython copying GISPython/SysGISTools.py -> build/lib/GISPython copying GISPython/SimpleFileOps.py -> build/lib/GISPython copying GISPython/SimpleFileOpsSafe.py -> build/lib/GISPython copying GISPython/GISPythonTool.py -> build/lib/GISPython copying GISPython/FTPHleper.py -> build/lib/GISPython copying GISPython/AGServerHelper.py -> build/lib/GISPython copying GISPython/SysGISToolsSysParams.py -> build/lib/GISPython copying GISPython/GDPSyncroniserHelper2.py -> build/lib/GISPython copying GISPython/RarHelper.py -> build/lib/GISPython copying GISPython/MXDHelper.py -> build/lib/GISPython copying GISPython/JsonParamsHelper.py -> build/lib/GISPython copying GISPython/SysTools_unittest.py -> build/lib/GISPython copying GISPython/MailHelper.py -> build/lib/GISPython copying GISPython/AGServerHelperNTLM.py -> build/lib/GISPython copying GISPython/__init__.py -> build/lib/GISPython copying GISPython/TimerHelper.py -> build/lib/GISPython running egg_info writing GISPython.egg-info/PKG-INFO writing dependency_links to GISPython.egg-info/dependency_links.txt writing requirements to GISPython.egg-info/requires.txt writing top-level names to GISPython.egg-info/top_level.txt reading manifest file 'GISPython.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching 'img/*' warning: no previously-included files found matching 'docs/*' warning: no previously-included files found matching 'GISPython/*.pyc' warning: no previously-included files found matching 'GISPython/GEOToolBoxSetup.isproj' warning: no previously-included files found matching 'GISPython/GISPython.pyproj' warning: no previously-included files found matching 'GISPython/GISPython.pyproj.vspscc' warning: no previously-included files found matching 'GISPython/SetupDefaultEnvironment.py' adding license file 'LICENSE' writing manifest file 'GISPython.egg-info/SOURCES.txt' creating build/lib/GISPython/PShell copying GISPython/PShell/BackupOldFiles.ps1 -> build/lib/GISPython/PShell copying GISPython/PShell/ClearDir.ps1 -> build/lib/GISPython/PShell copying GISPython/PShell/GetLog.ps1 -> build/lib/GISPython/PShell + sleep 1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.sNs1BZ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64 ++ dirname /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64 + cd GISPython-59.2 + 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-GISPython-59.2-1.aarch64 /usr/lib/python3.9/site-packages/setuptools/dist.py:487: UserWarning: Normalizing '59.0002' to '59.2' warnings.warn(tmpl.format(**locals())) running install /usr/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr creating /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib creating /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9 creating /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages creating /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/AGServerHelperToken.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/MyError.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/GDBHelper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/GISPythonToolBase.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/GISPythonModule.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/xmlParamsHealper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/CachingHelper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/PublisherHealper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/SFTPHelper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython creating /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/PShell copying build/lib/GISPython/PShell/GetLog.ps1 -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/PShell copying build/lib/GISPython/PShell/BackupOldFiles.ps1 -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/PShell copying build/lib/GISPython/PShell/ClearDir.ps1 -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/PShell copying build/lib/GISPython/ZipHelper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/GDPSyncroniserHelper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/SysGISTools.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/SimpleFileOps.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/SimpleFileOpsSafe.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/GISPythonTool.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/FTPHleper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/AGServerHelper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/SysGISToolsSysParams.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/GDPSyncroniserHelper2.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/RarHelper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/MXDHelper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/JsonParamsHelper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/SysTools_unittest.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/MailHelper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/AGServerHelperNTLM.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/__init__.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython copying build/lib/GISPython/TimerHelper.py -> /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/AGServerHelperToken.py to AGServerHelperToken.cpython-39.pyc File "/usr/lib/python3.9/site-packages/GISPython/AGServerHelperToken.py", line 200 except urllib2.URLError, exception: ^ SyntaxError: invalid syntax byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/MyError.py to MyError.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/GDBHelper.py to GDBHelper.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/GISPythonToolBase.py to GISPythonToolBase.cpython-39.pyc File "/usr/lib/python3.9/site-packages/GISPython/GISPythonToolBase.py", line 70 print strMessage ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(strMessage)? byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/GISPythonModule.py to GISPythonModule.cpython-39.pyc File "/usr/lib/python3.9/site-packages/GISPython/GISPythonModule.py", line 142 except Exception, e: ^ SyntaxError: invalid syntax byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/xmlParamsHealper.py to xmlParamsHealper.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/CachingHelper.py to CachingHelper.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/PublisherHealper.py to PublisherHealper.cpython-39.pyc File "/usr/lib/python3.9/site-packages/GISPython/PublisherHealper.py", line 76 print u'... start publish for {}'.format(config.moduleName) ^ SyntaxError: invalid syntax byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/SFTPHelper.py to SFTPHelper.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/ZipHelper.py to ZipHelper.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/GDPSyncroniserHelper.py to GDPSyncroniserHelper.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/SysGISTools.py to SysGISTools.cpython-39.pyc File "/usr/lib/python3.9/site-packages/GISPython/SysGISTools.py", line 61 except Exception, err: ^ SyntaxError: invalid syntax byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/SimpleFileOps.py to SimpleFileOps.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/SimpleFileOpsSafe.py to SimpleFileOpsSafe.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/GISPythonTool.py to GISPythonTool.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/FTPHleper.py to FTPHleper.cpython-39.pyc File "/usr/lib/python3.9/site-packages/GISPython/FTPHleper.py", line 48 except Exception, e: ^ SyntaxError: invalid syntax byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/AGServerHelper.py to AGServerHelper.cpython-39.pyc File "/usr/lib/python3.9/site-packages/GISPython/AGServerHelper.py", line 136 except urllib2.URLError, e: ^ SyntaxError: invalid syntax byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/SysGISToolsSysParams.py to SysGISToolsSysParams.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/GDPSyncroniserHelper2.py to GDPSyncroniserHelper2.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/RarHelper.py to RarHelper.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/MXDHelper.py to MXDHelper.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/JsonParamsHelper.py to JsonParamsHelper.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/SysTools_unittest.py to SysTools_unittest.cpython-39.pyc File "/usr/lib/python3.9/site-packages/GISPython/SysTools_unittest.py", line 23 print u"Preparing for tests..." ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(u"Preparing for tests...")? byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/MailHelper.py to MailHelper.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/AGServerHelperNTLM.py to AGServerHelperNTLM.cpython-39.pyc File "/usr/lib/python3.9/site-packages/GISPython/AGServerHelperNTLM.py", line 212 except urllib2.URLError, exception: ^ SyntaxError: invalid syntax byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/__init__.py to __init__.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/TimerHelper.py to TimerHelper.cpython-39.pyc writing byte-compilation script '/tmp/tmp0m0cuo1l.py' /usr/bin/python3 /tmp/tmp0m0cuo1l.py File "/usr/lib/python3.9/site-packages/GISPython/AGServerHelperToken.py", line 200 except urllib2.URLError, exception: ^ SyntaxError: invalid syntax File "/usr/lib/python3.9/site-packages/GISPython/GISPythonToolBase.py", line 70 print strMessage ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(strMessage)? File "/usr/lib/python3.9/site-packages/GISPython/GISPythonModule.py", line 142 except Exception, e: ^ SyntaxError: invalid syntax File "/usr/lib/python3.9/site-packages/GISPython/PublisherHealper.py", line 76 print u'... start publish for {}'.format(config.moduleName) ^ SyntaxError: invalid syntax File "/usr/lib/python3.9/site-packages/GISPython/SysGISTools.py", line 61 except Exception, err: ^ SyntaxError: invalid syntax File "/usr/lib/python3.9/site-packages/GISPython/FTPHleper.py", line 48 except Exception, e: ^ SyntaxError: invalid syntax File "/usr/lib/python3.9/site-packages/GISPython/AGServerHelper.py", line 136 except urllib2.URLError, e: ^ SyntaxError: invalid syntax File "/usr/lib/python3.9/site-packages/GISPython/SysTools_unittest.py", line 23 print u"Preparing for tests..." ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(u"Preparing for tests...")? File "/usr/lib/python3.9/site-packages/GISPython/AGServerHelperNTLM.py", line 212 except urllib2.URLError, exception: ^ SyntaxError: invalid syntax removing /tmp/tmp0m0cuo1l.py running install_egg_info running egg_info writing GISPython.egg-info/PKG-INFO writing dependency_links to GISPython.egg-info/dependency_links.txt writing requirements to GISPython.egg-info/requires.txt writing top-level names to GISPython.egg-info/top_level.txt reading manifest file 'GISPython.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching 'img/*' warning: no previously-included files found matching 'docs/*' warning: no previously-included files found matching 'GISPython/*.pyc' warning: no previously-included files found matching 'GISPython/GEOToolBoxSetup.isproj' warning: no previously-included files found matching 'GISPython/GISPython.pyproj' warning: no previously-included files found matching 'GISPython/GISPython.pyproj.vspscc' warning: no previously-included files found matching 'GISPython/SetupDefaultEnvironment.py' adding license file 'LICENSE' writing manifest file 'GISPython.egg-info/SOURCES.txt' Copying GISPython.egg-info to /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython-59.2-py3.9.egg-info running install_scripts + install -d -m755 /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64//usr/share/doc/python-GISPython + '[' -d doc ']' ~/build/BUILDROOT/python-GISPython-59.2-1.aarch64 ~/build/BUILD/GISPython-59.2 + '[' -d docs ']' + '[' -d example ']' + '[' -d examples ']' + pushd /builddir/build/BUILDROOT/python-GISPython-59.2-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/GISPython-59.2 + popd + mv /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/filelist.lst . + mv /builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/doclist.lst . + /usr/bin/find-debuginfo -j4 --strict-build-id -i --build-id-seed 59.2-1 --unique-debug-suffix -59.2-1.aarch64 --unique-debug-src-base python-GISPython-59.2-1.aarch64 -S debugsourcefiles.list /builddir/build/BUILD/GISPython-59.2 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-GISPython-59.2-1.aarch64/usr/lib/python3.9 using /usr/bin/python3.9 *** Error compiling '/builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/AGServerHelper.py'... File "/usr/lib/python3.9/site-packages/GISPython/AGServerHelper.py", line 136 except urllib2.URLError, e: ^ SyntaxError: invalid syntax *** Error compiling '/builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/AGServerHelperNTLM.py'... File "/usr/lib/python3.9/site-packages/GISPython/AGServerHelperNTLM.py", line 212 except urllib2.URLError, exception: ^ SyntaxError: invalid syntax *** Error compiling '/builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/AGServerHelperToken.py'... File "/usr/lib/python3.9/site-packages/GISPython/AGServerHelperToken.py", line 200 except urllib2.URLError, exception: ^ SyntaxError: invalid syntax *** Error compiling '/builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/FTPHleper.py'... File "/usr/lib/python3.9/site-packages/GISPython/FTPHleper.py", line 48 except Exception, e: ^ SyntaxError: invalid syntax *** Error compiling '/builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/GISPythonModule.py'... File "/usr/lib/python3.9/site-packages/GISPython/GISPythonModule.py", line 142 except Exception, e: ^ SyntaxError: invalid syntax *** Error compiling '/builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/GISPythonToolBase.py'... File "/usr/lib/python3.9/site-packages/GISPython/GISPythonToolBase.py", line 70 print strMessage ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(strMessage)? *** Error compiling '/builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/PublisherHealper.py'... File "/usr/lib/python3.9/site-packages/GISPython/PublisherHealper.py", line 76 print u'... start publish for {}'.format(config.moduleName) ^ SyntaxError: invalid syntax *** Error compiling '/builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/SysGISTools.py'... File "/usr/lib/python3.9/site-packages/GISPython/SysGISTools.py", line 61 except Exception, err: ^ SyntaxError: invalid syntax *** Error compiling '/builddir/build/BUILDROOT/python-GISPython-59.2-1.aarch64/usr/lib/python3.9/site-packages/GISPython/SysTools_unittest.py'... File "/usr/lib/python3.9/site-packages/GISPython/SysTools_unittest.py", line 23 print u"Preparing for tests..." ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(u"Preparing for tests...")? error: Bad exit status from /var/tmp/rpm-tmp.sNs1BZ (%install) Bad exit status from /var/tmp/rpm-tmp.sNs1BZ (%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-gispython.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-gispython.spec