Issue #030 [WontFix/closed] - Webiopi install issue

Posted by AndroidianLabs

What steps will reproduce the problem?

  1. Fresh install of Wheezy (latest version as of 2/17/2013
  2. Go to Pi Store
  3. Install Webiopi

What is the expected output? What do you see instead?

I expected Webiopi to be installed, I got an error in terminal instead.

Please provide any additional information below.

I'm not sure what the issue is, I've Googled it to death and didn't get any results. The error in terminal says

urlib.error.URLError: urlopen [Errorno - 5] No address associated with hostname

I have run apt-get update and even tried installing this through the tar.gz package here. The error remains the same. After I get the error a browser window opens and says error connecting to page. I'm not sure if I have to download anything else to get the webpage to open, I haven't owned an Rpi for long.


Comment 1

Posted by trouch

please add full stack trace


Comment 2

Posted by AndroidianLabs

This script will install webiopi but needs root permissions to do so Please type in your password Unpacking /var/lib/indiecity/pistore/Installers/522135e0-7d2f-48a1-9586-d8b3e09cc13e/522135e0-7d2f-48a1-9586-d8b3e09cc13e_1_0_0_6.zip to /usr/local/bin/indiecity/InstalledApps/webiopi/Full/ Archive: /var/lib/indiecity/pistore/Installers/522135e0-7d2f-48a1-9586-d8b3e09cc13e/522135e0-7d2f-48a1-9586-d8b3e09cc13e_1_0_0_6.zip inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/522135e0-7d2f-48a1-9586-d8b3e09cc13e_reg.xml
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/examples/custom/index.html
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/examples/custom/webiopi_custom.py
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/examples/custom/webiopi_custom.daemon
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/examples/basic/webiopi_basic.py
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/examples/basic/webiopi_basic.daemon
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/setup.sh
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/doc/CHANGELOG
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/doc/README
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/doc/updatedoc
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/doc/LICENSE
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/play.sh
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/webiopi.py.init
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/passwd
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/webiopi.py
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/setup.py
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/native/cpuinfo.c
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/native/bridge.c
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/native/cpuinfo.h
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/native/gpio.c
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/native/gpio.h
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/webiopi-passwd.py
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/distribute_setup.py
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/htdocs/webiopi.js
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/htdocs/index.html
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/htdocs/jquery.js
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/htdocs/webiopi.css
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/htdocs/app/expert/index.html
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/htdocs/app/expert/style.css
inflating: /usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/midori/config
Registering product... Installing Dependencies... Check for Install script... Install script = /usr/local/bin/indiecity/InstalledApps/webiopi/Full//WebIOPi-0.5.3/setup.sh Installing WebIOPi...\n Found Python 2.7.3... Trying to install WebIOPi for Python 2.7.3 Downloading https://pypi.python.org/packages/source/d/distribute/distribute-0.6.27.tar.gz Traceback (most recent call last): File "setup.py", line 2, in distribute_setup.use_setuptools() File "/usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/distribute_setup.py", line 145, in use_setuptools return _do_download(version, download_base, to_dir, download_delay) File "/usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/distribute_setup.py", line 124, in _do_download to_dir, download_delay) File "/usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/distribute_setup.py", line 193, in download_setuptools src = urlopen(url) File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 401, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 419, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1211, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib/python2.7/urllib2.py", line 1181, in do_open raise URLError(err) urllib2.URLError: Build for Python 2.7.3 failed\n Found Python 3.2.3... Trying to install WebIOPi for Python 3.2.3 Downloading https://pypi.python.org/packages/source/d/distribute/distribute-0.6.27.tar.gz Traceback (most recent call last): File "/usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/distribute_setup.py", line 139, in use_setuptools import pkg_resources ImportError: No module named pkg_resources

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.2/urllib/request.py", line 1140, in do_open h.request(req.get_method(), req.selector, req.data, headers) File "/usr/lib/python3.2/http/client.py", line 970, in request self._send_request(method, url, body, headers) File "/usr/lib/python3.2/http/client.py", line 1008, in _send_request self.endheaders(body) File "/usr/lib/python3.2/http/client.py", line 966, in endheaders self._send_output(message_body) File "/usr/lib/python3.2/http/client.py", line 811, in _send_output self.send(msg) File "/usr/lib/python3.2/http/client.py", line 749, in send self.connect() File "/usr/lib/python3.2/http/client.py", line 727, in connect self.timeout, self.source_address) File "/usr/lib/python3.2/socket.py", line 397, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): socket.gaierror: [Errno -5] No address associated with hostname

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "setup.py", line 2, in distribute_setup.use_setuptools() File "/usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/distribute_setup.py", line 145, in use_setuptools return _do_download(version, download_base, to_dir, download_delay) File "/usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/distribute_setup.py", line 124, in _do_download to_dir, download_delay) File "/usr/local/bin/indiecity/InstalledApps/webiopi/Full/WebIOPi-0.5.3/python/distribute_setup.py", line 193, in download_setuptools src = urlopen(url) File "/usr/lib/python3.2/urllib/request.py", line 139, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.2/urllib/request.py", line 370, in open response = self._open(req, data) File "/usr/lib/python3.2/urllib/request.py", line 388, in _open '_open', req) File "/usr/lib/python3.2/urllib/request.py", line 348, in _call_chain result = func(*args) File "/usr/lib/python3.2/urllib/request.py", line 1160, in http_open return self.do_open(http.client.HTTPConnection, req) File "/usr/lib/python3.2/urllib/request.py", line 1143, in do_open raise URLError(err) urllib.error.URLError: Build for Python 3.2.3 failed\n ERROR: WebIOPi cannot be installed - please check errors above Exe file = /usr/local/bin/indiecity/InstalledApps/webiopi/Full//WebIOPi-0.5.3/play.sh Install Complete.

Like I said I don't know if this is a problem with the pi or this software. I apologise in advance if it is my pi but I'm running on a fresh install and everything works on it, in fact I'm posting this comment from it.


Comment 3

Posted by trouch

from a terminal, try : wget https://pypi.python.org/packages/source/d/distribute/distribute-0.6.27.tar.gz


Comment 4

Posted by trouch

guessing it was a momentary network error.... closing the issue, do not depend on webiopi.