Thanks Stephen, maybe it's the network issue, I am trying to change an env. -----邮件原件----- 发件人: Stephen Finucane [mailto:stephenfin@redhat.com] 发送时间: 2024年1月4日 19:37 收件人: Alex Song (宋文平) <songwenping@inspur.com>; openstack-discuss@lists.openstack.org 主题: Re: tox -e pep8 error On Thu, 2024-01-04 at 09:23 +0000, Alex Song (宋文平) wrote:
Folks, my env run 'tox -e pep8' error with the info below, any body can help? Thanks.
/opt/stack/nova/.tox/pep8/lib/python3.8/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !!
********************************************************************** ********** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`.
********************************************************************** **********
!! dist.fetch_build_eggs(dist.setup_requires) /opt/stack/nova/.tox/pep8/lib/python3.8/site-packages/setuptools/command/develop.py:39: EasyInstallDeprecationWarning: easy_install command is deprecated. !!
********************************************************************** ********** Please avoid running ``setup.py`` and ``easy_install``. Instead, use pypa/build, pypa/installer or other standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************** **********
!! easy_install.initialize_options(self) /opt/stack/nova/.tox/pep8/lib/python3.8/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!
********************************************************************** ********** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************** **********
!! self.initialize_options() pep8 develop-inst-nodeps: /opt/stack/nova
pep8 installed: alembic==1.9.4,amqp==5.1.1,async-timeout==4.0.3,attrs==23.1.0,autopage ==0.5.1,backports.zoneinfo==0.2.1,bcrypt==4.0.1,cachetools==5.3.1,cast ellan==4.3.0,certifi==2023.11.17,cffi==1.15.1,cfgv==3.4.0,charset-norm alizer==3.2.0,cliff==4.4.0,cmd2==2.4.3,cryptography==41.0.4,cursive==0 .2.3,debtcollector==2.5.0,decorator==5.1.1,Deprecated==1.2.14,distlib= =0.3.7,dnspython==2.4.2,dogpile.cache==1.2.2,eventlet==0.33.3,fastener s==0.19,filelock==3.12.4,fixtures==4.1.0,futurist==2.4.1,greenlet==2.0 .2,identify==2.5.33,idna==3.4,importlib-metadata==6.0.1,importlib-reso urces==6.1.1,iso8601==2.0.0,Jinja2==3.1.2,jmespath==1.0.1,jsonpatch==1 .33,jsonpointer==2.4,jsonschema==4.19.1,jsonschema-specifications==202 3.7.1,jwcrypto==1.5.1,keystoneauth1==5.4.0,keystonemiddleware==10.5.0, kombu==5.3.2,lxml==4.9.3,Mako==1.2.4,MarkupSafe==2.1.3,microversion-pa rse==1.0.1,msgpack==1.0.6,netaddr==0.9.0,netifaces==0.11.0,nodeenv==1. 8.0,-e git+ssh://songwenping@review.opendev.org:29418/openstack/nova@39f560d6 730f2b212506b7d754645c288d13f1cd#egg=nova,numpy==1.24.2,openstacksdk== 2.0.0,os-brick==6.5.0,os-client-config==2.1.0,os-resource-classes==1.1 .0,os-service-types==1.7.0,os-traits==3.0.0,os-vif==3.3.0,os-win==5.9. 0,osc-lib==2.8.1,oslo.cache==3.5.0,oslo.concurrency==5.2.0,oslo.config ==9.2.0,oslo.context==5.3.0,oslo.db==14.1.0,oslo.i18n==6.2.0,oslo.limi t==2.2.0,oslo.log==5.4.0,oslo.messaging==14.5.0,oslo.metrics==0.7.0,os lo.middleware==5.2.0,oslo.policy==4.2.1,oslo.privsep==3.2.0,oslo.repor ts==3.1.0,oslo.rootwrap==7.1.0,oslo.serialization==5.2.0,oslo.service= =3.2.0,oslo.upgradecheck==2.2.0,oslo.utils==6.3.0,oslo.versionedobject s==3.2.0,ovs==3.1.2,ovsdbapp==2.5.0,packaging==23.1,paramiko==3.3.1,Pa ste==3.5.3,PasteDeploy==3.0.1,pbr==6.0.0,pkgutil_resolve_name==1.3.10, platformdirs==3.10.0,pre-commit==3.5.0,prettytable==3.9.0,prometheus-c lient==0.17.1,psutil==5.9.5,pycadf==3.1.1,pycparser==2.21,pyinotify==0 .9.6,PyJWT==2.8.0,PyNaCl==1.5.0,pyOpenSSL==23.2.0,pyparsing==3.1.1,pyp erclip==1.8.2,pyroute2==0.7.9,python-barbicanclient==5.6.1,python-cind erclient==9.4.0,python-dateutil==2.8.2,python-glanceclient==4.4.0,pyth on-keystoneclient==5.2.0,python-neutronclient==11.1.0,pytz==2023.3.pos t1,PyYAML==6.0.1,redis==5.0.0,referencing==0.30.2,repoze.lru==0.7,requ ests==2.31.0,requestsexceptions==1.4.0,retrying==1.3.4,rfc3986==2.0.0, Routes==2.5.1,rpds-py==0.10.3,simplejson==3.19.1,six==1.16.0,sortedcon tainers==2.4.0,SQLAlchemy==1.4.41,statsd==4.0.1,stevedore==5.1.0,tenac ity==6.3.1,testresources==2.0.1,testscenarios==0.5.0,testtools==2.7.0, tooz==4.2.0,typing_extensions==4.8.0,tzdata==2023.3,urllib3==1.26.16,v ine==5.0.0,virtualenv==20.24.5,voluptuous==0.13.1,warlock==2.0.1,wcwid th==0.2.6,WebOb==1.8.7,websockify==0.11.0,wrapt==1.15.0,yappi==1.4.0,z ipp==3.17.0 pep8 run-test-pre: PYTHONHASHSEED='2048831401' pep8 run-test: commands[0] | pre-commit run --all-files --show-diff-on-failure [INFO] Locking pre-commit directory [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/git', 'fetch', 'origin', '--tags') return code: 128 stdout: (none) stderr: (none) Check the log at /root/.cache/pre-commit/pre-commit.log
This is telling you what you need to do. Sounds like you've network connectivity issues preventing you from pulling from GitHub. Stephen
ERROR: InvocationError for command /opt/stack/nova/.tox/pep8/bin/pre-commit run --all-files --show-diff-on-failure (exited with code 3) ______________________________________________________________________ _____________________________________________________________________ summary ______________________________________________________________________ _____________________________________________________________________ ERROR: pep8: commands failed