setup.py throws errors
sacrophyte opened this issue · 1 comments
-
Platform: Rasbperry Pi Model A with Raspbian Jessie
-
pi@tempercheck:~/Adafruit_Python_DHT$ python --version
Python 2.7.9 -
pi@tempercheck:~/Adafruit_Python_DHT$ sudo python setup.py install
Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-4.0.1.zip
Traceback (most recent call last):
File "setup.py", line 4, in
use_setuptools()
File "/home/pi/Adafruit_Python_DHT/ez_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/home/pi/Adafruit_Python_DHT/ez_setup.py", line 119, in _do_download
to_dir, download_delay)
File "/home/pi/Adafruit_Python_DHT/ez_setup.py", line 287, in download_setuptools
downloader(url, saveto)
File "/home/pi/Adafruit_Python_DHT/ez_setup.py", line 209, in download_file_curl
_clean_check(cmd, target)
File "/home/pi/Adafruit_Python_DHT/ez_setup.py", line 169, in _clean_check
subprocess.check_call(cmd)
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['curl', 'https://pypi.python.org/packages/source/s/setuptools/setuptools-4.0.1.zip', '--silent', '--output', '/home/pi/Adafruit_Python_DHT/setuptools-4.0.1.zip']' returned non-zero exit status 7 -
Steps to get here: followed directions on README.md (https://github.com/adafruit/Adafruit_Python_DHT)
Looks like iptables was blocking, seems fixed now:
https://www.linux.com/forums/linux-security/iptables-blocking-wget-solved
I replaced
$ip -A OUTPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
with
$ip -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT