Issue #151 [Duplicate/closed] - Cannot install Webiopi on RPi 2

Posted by nathan@nmally.com

What steps will reproduce the problem? uninstalled python and python-dev reinstalled both versions

WebIOPi version used? =>0.7.1

Python version used? =>3.4.2

Distro used? (WebIOPi has only been tested on Raspbian Wheezy) =>Wheezy

Raspberry Pi board revision? (1 or 2) =>Rpi 2

For Javascript side bugs, Browser? =>n/a

Please provide any additional information below.

root@pi:~/Desktop/WebIOPi-0.7.1# sudo ./setup.sh

Installing WebIOPi...

Updating apt package list... Hit http://mirrordirector.raspbian.org jessie Release.gpg Hit http://archive.raspberrypi.org wheezy Release.gpg Hit http://raspberrypi.collabora.com wheezy Release.gpg Hit http://mirrordirector.raspbian.org jessie Release Hit http://archive.raspberrypi.org wheezy Release Hit http://raspberrypi.collabora.com wheezy Release Hit http://mirrordirector.raspbian.org jessie/main armhf Packages Hit http://archive.raspberrypi.org wheezy/main armhf Packages Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_GB Ign http://archive.raspberrypi.org wheezy/main Translation-en Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB Ign http://mirrordirector.raspbian.org jessie/main Translation-en Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en Reading package lists... Done

Found Python 2.7.9... Trying to install python-dev using apt-get Reading package lists... Done Building dependency tree Reading state information... Done python-dev is already the newest version. Suggested packages: python-distribute python-distribute-doc The following NEW packages will be installed: python-pkg-resources python-setuptools 0 upgraded, 2 newly installed, 0 to remove and 285 not upgraded. Need to get 0 B/306 kB of archives. After this operation, 957 kB of additional disk space will be used. Selecting previously unselected package python-pkg-resources. (Reading database ... 80769 files and directories currently installed.) Unpacking python-pkg-resources (from .../python-pkg-resources_5.5.1-1_all.deb) ... Selecting previously unselected package python-setuptools. Unpacking python-setuptools (from .../python-setuptools_5.5.1-1_all.deb) ... Setting up python-pkg-resources (5.5.1-1) ... Setting up python-setuptools (5.5.1-1) ... Trying to install WebIOPi for Python 2.7.9 running install running bdist_egg running egg_info writing WebIOPi.egg-info/PKG-INFO writing top-level names to WebIOPi.egg-info/top_level.txt writing dependency_links to WebIOPi.egg-info/dependency_links.txt reading manifest file 'WebIOPi.egg-info/SOURCES.txt' writing manifest file 'WebIOPi.egg-info/SOURCES.txt' installing library code to build/bdist.linux-armv7l/egg running install_lib running build_py running build_ext building '_webiopi.GPIO' extension arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c native/bridge.c -o build/temp.linux-armv7l-2.7/native/bridge.o cc1: error: unrecognized command line option ‘-fstack-protector-strong’ error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 Build for Python 2.7.9 failed

Found Python 3.4.2... Trying to install python3-dev using apt-get Reading package lists... Done Building dependency tree Reading state information... Done python3-dev is already the newest version. python3-setuptools is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 285 not upgraded. Trying to install WebIOPi for Python 3.4.2 running install Checking .pth file support in /usr/local/lib/python3.4/dist-packages/ /usr/bin/python3 -E -c pass TEST PASSED: /usr/local/lib/python3.4/dist-packages/ appears to support .pth files running bdist_egg running egg_info writing WebIOPi.egg-info/PKG-INFO writing dependency_links to WebIOPi.egg-info/dependency_links.txt writing top-level names to WebIOPi.egg-info/top_level.txt reading manifest file 'WebIOPi.egg-info/SOURCES.txt' writing manifest file 'WebIOPi.egg-info/SOURCES.txt' installing library code to build/bdist.linux-armv7l/egg running install_lib running build_py running build_ext building '_webiopi.GPIO' extension arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.4m -c native/bridge.c -o build/temp.linux-armv7l-3.4/native/bridge.o cc1: error: unrecognized command line option ‘-fstack-protector-strong’ error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 Build for Python 3.4.2 failed

ERROR: WebIOPi cannot be installed - please check errors above root@pi:~/Desktop/WebIOPi-0.7.1# sudo webiopi -h sudo: webiopi: command not found root@pi:~/Desktop/WebIOPi-0.7.1# sudo /etc/init.d/webiopi start sudo: /etc/init.d/webiopi: command not found root@pi:~/Desktop/WebIOPi-0.7.1#


Comment 1

Posted by trouch