我正在尝试在OpenWRT上构建python脚本,我有这个错误。我检查了python是否使用ssl支持进行编译,并且没关系。我仍然没有找到什么问题,有什么帮助吗?
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.21.tar.gz
Traceback (most recent call last):
File "./setup.py", line 2, in <module>
use_setuptools()
File "/home/ubuntu/Bureau/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/pyowncloud/distribute_setup.py", line 152, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/home/ubuntu/Bureau/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/pyowncloud/distribute_setup.py", line 131, in _do_download
to_dir, download_delay)
File "/home/ubuntu/Bureau/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/pyowncloud/distribute_setup.py", line 201, in download_setuptools
src = urlopen(url)
File "/home/ubuntu/Bureau/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/home/ubuntu/Bureau/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/python2.7/urllib2.py", line 406, in open
response = meth(req, response)
File "/home/ubuntu/Bureau/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/python2.7/urllib2.py", line 519, in http_response
'http', request, response, code, msg, hdrs)
File "/home/ubuntu/Bureau/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/python2.7/urllib2.py", line 438, in error
result = self._call_chain(*args)
File "/home/ubuntu/Bureau/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/home/ubuntu/Bureau/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/python2.7/urllib2.py", line 625, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/home/ubuntu/Bureau/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/python2.7/urllib2.py", line 400, in open
response = self._open(req, data)
File "/home/ubuntu/Bureau/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/python2.7/urllib2.py", line 423, in _open
'unknown_open', req)
File "/home/ubuntu/Bureau/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/home/dubuntu/Bureau/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/usr/lib/python2.7/urllib2.py", line 1240, in unknown_open
raise URLError('unknown url type: %s' % type)
urllib2.URLError: <urlopen error unknown url type: https>