Open halinwu opened 3 years ago
Did you get any issue with network-insight-sdk-python while running with python 3 ? Can you please paste the exception, if any ?
Did I came across the same problem?
pip install --src . -r requirements.txt
Obtaining network-insight-sdk-python from git+https://github.com/vmware/network-insight-sdk-python.git#egg=network-insight-sdk-python (from -r requirements.txt (line 5))
Updating ./network-insight-sdk-python clone
Running command git fetch -q --tags
Running command git reset --hard -q 93330ab1b87fdabe6af6b4eb20bf68b42a4bfd1f
Collecting netmiko
Downloading netmiko-3.4.0-py3-none-any.whl (178 kB)
|████████████████████████████████| 178 kB 1.9 MB/s
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from -r requirements.txt (line 2)) (2.25.1)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from -r requirements.txt (line 3)) (5.3.1)
Collecting netaddr
Downloading netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
|████████████████████████████████| 1.9 MB 2.1 MB/s
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from network-insight-sdk-python->-r requirements.txt (line 5)) (2020.6.20)
Collecting functools32
Downloading functools32-3.2.3-2.zip (34 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qyvh0w2u/functools32_317433e77d784af49aa58b889fa51803/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qyvh0w2u/functools32_317433e77d784af49aa58b889fa51803/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 /tmp/pip-pip-egg-info-nmnc0b56
cwd: /tmp/pip-install-qyvh0w2u/functools32_317433e77d784af49aa58b889fa51803/
Complete output (1 lines):
This backport is for Python 2.7 only.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/5e/1a/0aa2c8195a204a9f51284018562dea77e25511f02fe924fac202fc012172/functools32-3.2.3-2.zip#sha256=89d824aa6c358c421a234d7f9ee0bd75933a67c29588ce50aaa3acdf4d403fa0 (from https://pypi.org/simple/functools32/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Downloading functools32-3.2.3-2.tar.gz (31 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qyvh0w2u/functools32_a4b93b32e8c04414a7b78ecd10c4c356/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qyvh0w2u/functools32_a4b93b32e8c04414a7b78ecd10c4c356/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 /tmp/pip-pip-egg-info-zlds3nlz
cwd: /tmp/pip-install-qyvh0w2u/functools32_a4b93b32e8c04414a7b78ecd10c4c356/
Complete output (1 lines):
This backport is for Python 2.7 only.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz#sha256=f6253dfbe0538ad2e387bd8fdfd9293c925d63553f5813c4e587745416501e6d (from https://pypi.org/simple/functools32/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Downloading functools32-3.2.3-1.zip (34 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qyvh0w2u/functools32_9dda9abb2b9d4cc48d7e1802f6557080/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qyvh0w2u/functools32_9dda9abb2b9d4cc48d7e1802f6557080/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 /tmp/pip-pip-egg-info-8pe0zwtn
cwd: /tmp/pip-install-qyvh0w2u/functools32_9dda9abb2b9d4cc48d7e1802f6557080/
Complete output (1 lines):
This backport is for Python 2.7 only.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/bb/02/8d75ecdec125bed75e414bd9c52160c42c7fdbbc11b01435e46d8859651b/functools32-3.2.3-1.zip#sha256=3c0752c677a8b5169ac7afb194847db53d4ece88681951c6ca6e9fdd1c12ed62 (from https://pypi.org/simple/functools32/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Downloading functools32-3.2.3-1.tar.gz (31 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qyvh0w2u/functools32_5d4aace4a6bd4e62bcb37e5b14be7599/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qyvh0w2u/functools32_5d4aace4a6bd4e62bcb37e5b14be7599/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 /tmp/pip-pip-egg-info-_x4708xa
cwd: /tmp/pip-install-qyvh0w2u/functools32_5d4aace4a6bd4e62bcb37e5b14be7599/
Complete output (1 lines):
This backport is for Python 2.7 only.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/e9/07/09abd35aaaef501a669f1b0bc39004e512dce3abaa1846450a952a09f9eb/functools32-3.2.3-1.tar.gz#sha256=6a3b7420432b0817ef192aef341cd766e199801a90ca7fe319f9d5fca40edda2 (from https://pypi.org/simple/functools32/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement functools32 (from network-insight-sdk-python)
ERROR: No matching distribution found for functools32
@krichot Looks like this is same, you can install dependencies mentioned in requirements.txt.
Can you try cloning network-insight-sdk-python
separately and run with python2 instead ?
hello, I found a compatibility issue. the network-insight-sdk require python above 3.5 , but the module (network-insight-sdk-python) limit python only used 2.7. how to resolve the compatibility issue ?