ixs / napalm-procurve

HP ProCurve Driver for NAPALM automation frontend
Apache License 2.0
21 stars 15 forks source link

pip install of 0.7.0 fails #21

Open johanek opened 3 years ago

johanek commented 3 years ago

Fails with the following:

    ERROR: Command errored out with exit status 1:
     command: /hosts/zrows4/user_data/.tmp/git.jvd/netbox-importer/venv-zrows4/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/user_data/.tmp/pip-req-build-51ipxe3v/setup.py'"'"'; __file__='"'"'/user_data/.tmp/pip-req-build-51ipxe3v/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /user_data/.tmp/pip-pip-egg-info-wls_crfz
         cwd: /user_data/.tmp/pip-req-build-51ipxe3v/
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/user_data/.tmp/pip-req-build-51ipxe3v/setup.py", line 24, in <module>
        reqs = [str(ir.req) for ir in install_reqs]
      File "/user_data/.tmp/pip-req-build-51ipxe3v/setup.py", line 24, in <listcomp>
        reqs = [str(ir.req) for ir in install_reqs]
    AttributeError: 'str' object has no attribute 'req'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

It looks like internal pip functions are being used in setup.py, and these changed at some point - https://github.com/pypa/pip/issues/8188#issuecomment-623428010