尝试在 ubuntu 系统上安装 p4python 时似乎出现连接超时。我正在尝试在 vm 上的 ubuntu 安装上使用 pip 安装它。
这是堆栈跟踪:
~$ pip install p4python
Downloading/unpacking p4python
Downloading p4python-2016.1.1415051.tar.gz (83kB): 83kB downloaded
Running setup.py (path:/tmp/pip-build-rsprca/p4python/setup.py) egg_info for package p4python
Attempting to load API from ftp.perforce.com
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-rsprca/p4python/setup.py", line 611, in <module>
p4_api_dir = get_api_dir()
File "/tmp/pip-build-rsprca/p4python/setup.py", line 532, in get_api_dir
p4ftp = P4APIFtp()
File "/tmp/pip-build-rsprca/p4python/setup.py", line 60, in __init__
self.ftp = FTP(PERFORCE_FTP)
File "/usr/lib/python2.7/ftplib.py", line 120, in __init__
self.connect(host)
File "/usr/lib/python2.7/ftplib.py", line 135, in connect
self.sock = socket.create_connection((self.host, self.port), self.timeout)
File "/usr/lib/python2.7/socket.py", line 575, in create_connection
raise err
socket.error: [Errno 110] Connection timed out
Complete output from command python setup.py egg_info:
Attempting to load API from ftp.perforce.com
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-rsprca/p4python/setup.py", line 611, in <module>
p4_api_dir = get_api_dir()
File "/tmp/pip-build-rsprca/p4python/setup.py", line 532, in get_api_dir
p4ftp = P4APIFtp()
File "/tmp/pip-build-rsprca/p4python/setup.py", line 60, in __init__
self.ftp = FTP(PERFORCE_FTP)
File "/usr/lib/python2.7/ftplib.py", line 120, in __init__
self.connect(host)
File "/usr/lib/python2.7/ftplib.py", line 135, in connect
self.sock = socket.create_connection((self.host, self.port), self.timeout)
File "/usr/lib/python2.7/socket.py", line 575, in create_connection
raise err
socket.error: [Errno 110] Connection timed out
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build- rsprca/p4python
Storing debug log for failure in /home/cicd/.pip/pip.log
感谢您帮助调试此问题。