create local repo failed, 升级时报python脚本语法错误

nohup: ignoring input

pid of the process:136406

[ INFO ] - [centos2openEuler] - [Retry]: =================== Retry Stage ==================

[ INFO ] - [centos2openEuler]: deleted_rpm is:git-1.8.3.1-23.el7_8.x86_64,ivtv-firmware-20080701-26.el7.noarch,iwl7265-firmware-22.0.7.0-72.el7.noarch,perl-5.16.3-294.el7_6.x86_64,perl-Git-1.8.3.1-23.el7_8.noarch,perl-Time-HiRes-1.9725-3.el7.x86_64,sg3_utils-libs-1.37-18.el7_7.1.x86_64,sysvinit-tools-2.88-14.dsf.el7.x86_64,centos-release-7-7.1908.0.el7.centos.x86_64,python-backports-1.0-8.el7.x86_64,centos-logos-70.0.6-3.el7.centos.noarch,hunspell-en-US-0.20121024-6.el7.noarch;cleaned_rpm is:aether-connector-wagon-1.13.1-13.el7.noarch,aic94xx-firmware-30-6.el7.noarch,centos-indexhtml-7-9.el7.centos.noarch,containerd.io-1.2.10-3.2.el7.x86_64,docker-ce-19.03.5-3.el7.x86_64,docker-ce-cli-19.03.5-3.el7.x86_64,easymock2-2.5.2-12.el7.noarch,efibootmgr-17-2.el7.x86_64,epel-release-7-12.noarch,gedit-3.28.1-3.el7.x86_64,geoipupdate-2.5.0-1.el7.x86_64,gitlab-ce-11.11.0-ce.0.el7.x86_64,google-chrome-stable-95.0.4638.69-1.x86_64,gpg-pubkey-352c64e5-52ae6884,gpg-pubkey-442df0f8-4783f24a,gpg-pubkey-5072e1f5-58a70520,gpg-pubkey-6026dfca-573adfde,gpg-pubkey-621e9f35-58adea78,gpg-pubkey-7fac5991-4615767f,gpg-pubkey-d38b4796-570c8cd3,gpg-pubkey-e15e78f4-55310c0e,gpg-pubkey-f27eab47-5cc36020,gpg-pubkey-f4a80eb5-53a7ff4b,iwl105-firmware-18.168.6.1-72.el7.noarch,iwl135-firmware-18.168.6.1-72.el7.noarch,iwl2000-firmware-18.168.6.1-72.el7.noarch,iwl2030-firmware-18.168.6.1-72.el7.noarch,jasper-libs-1.900.1-33.el7.x86_64,jboss-ejb-3.1-api-1.0.2-10.el7.noarch,jboss-jaxrpc-1.1-api-1.0.1-7.el7.noarch,jboss-transaction-1.1-api-1.0.1-8.el7.noarch,kernel-3.10.0-1062.9.1.el7.x86_64,kernel-3.10.0-862.el7.x86_64,libmodman-2.0.1-8.el7.x86_64,libselinux-utils-2.5-14.1.el7.x86_64,llvm-private-7.0.1-1.el7.x86_64,mdadm-4.1-6.el7.x86_64,microcode_ctl-2.1-53.7.el7_7.x86_64,mozjs17-17.0.0-20.el7.x86_64,ncdu-1.15.1-1.el7.x86_64,openssh-8.6p1-1.el7.x86_64,openssh-clients-8.6p1-1.el7.x86_64,openssh-server-8.6p1-1.el7.x86_64,perl-PlRPC-0.2020-14.el7.noarch,pgdg-redhat-repo-42.0-6.noarch,policycoreutils-python-2.5-33.el7.x86_64,postgresql10-10.11-2PGDG.rhel7.x86_64,postgresql10-libs-10.11-2PGDG.rhel7.x86_64,postgresql10-server-10.11-2PGDG.rhel7.x86_64,pth-2.0.7-23.el7.x86_64,pygpgme-0.3-9.el7.x86_64,python-2.7.5-86.el7.x86_64,python-babel-0.9.6-8.el7.noarch,python-chardet-2.2.1-3.el7.noarch,python-gobject-3.22.0-1.el7_4.1.x86_64,python-gobject-base-3.22.0-1.el7_4.1.x86_64,python-pyudev-0.15-9.el7.noarch,python-slip-0.4.0-4.el7.noarch,python-slip-dbus-0.4.0-4.el7.noarch,python-urllib3-1.10.2-7.el7.noarch,redhat-lsb-core-4.1-27.el7.centos.1.x86_64,redhat-lsb-submod-security-4.1-27.el7.centos.1.x86_64,sisu-inject-bean-2.3.0-11.el7.noarch,sisu-inject-plexus-2.3.0-11.el7.noarch,sshpass-1.06-2.el7.x86_64,systemd-sysv-219-78.el7.x86_64,tigervnc-icons-1.8.0-21.el7.noarch,tigervnc-license-1.8.0-21.el7.noarch,tomcat-servlet-3.0-api-7.0.76-16.el7_9.noarch,tuned-2.11.0-5.el7_7.1.noarch,vulkan-1.1.97.0-1.el7.x86_64,vulkan-filesystem-1.1.97.0-1.el7.noarch,x2openEuler-client-2.0.0-2.noarch,x2openEuler-upgrade-3.0.0-20240125.x86_64,yum-metadata-parser-1.1.4-10.el7.x86_64,yum-plugin-fastestmirror-1.1.31-52.el7.noarch,yum-plugin-priorities-1.1.31-54.el7_8.noarch

File “/usr/share/createrepo/genpkgmetadata.py”, line 207

except EnvironmentError, e:

^

SyntaxError: invalid syntax

[ ERROR ] - [centos2openEuler]: create local repo failed

[ ERROR ] - [centos2openEuler]: config local repo failed

6

##THE END##

createrepo命令是不是有问题,测试下

1 Like

我默认的python是3.9,createrepo不支持python高一点的版本,改成python2.7就可以了