Issue #037 [Accepted/open] - Linux Arch support

Posted by timothy.d.yang

What steps will reproduce the problem?

  1. Install the webiopi module (in Arch ARM, it ends up in /usr/lib/python2.7/site-packages/_webiopi)
  2. Run `python2.7 -m webiopi 8000'
  3. This results in an ImportError: No module named _webiopi.GPIO (traceback shown at the bottom)

This can be fixed by adding a blank file to the _webiopi module


WebIOPi version used? => 0.5.3

Python version used? => 2.7

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

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

For Javascript side bugs, Browser? => Firefox

Please provide any additional information below.

Traceback (most recent call last): File "/usr/lib/python2.7/", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/", line 72, in _run_code exec code in run_globals File "/usr/lib/python2.7/site-packages/", line 32, in <module> import _webiopi.GPIO as GPIO ImportError: No module named _webiopi.GPIO

Comment 1

Posted by trouch

How did you installed WebIOPi ? is well created under Raspbian :

pi@raspberrypi ~ $ ls /usr/local/lib/python2.7/dist-packages/WebIOPi-0.5.3-py2.7-linux-armv6l.egg/_webiopi GPIO.pyc __init__.pyc

Comment 2

Posted by timothy.d.yang

The module itself is installed via:

python2 build python2 install --root="$pkgdir"

($pkgdir is just a staging area that all Arch builds use. Things are built to the predefined pkg dir instead of directly to the filesystem.)

The whole build file can be seen here for reference:

Comment 3

Posted by timothy.d.yang

This is the resulting tree from the above commands

python2.7 └── site-packages ├── WebIOPi-0.5.3-py2.7.egg-info │ ├── PKG-INFO │ ├── SOURCES.txt │ ├── dependency_links.txt │ └── top_level.txt ├── _webiopi │ └── ├── └── webiopi.pyc

Comment 4

Posted by trouch

Have to find out why dist tool does not create __init__ on Arch

Comment 5

Posted by trouch

Comment 6

Posted by trouch

Comment 7

Posted by trouch