3 Replies Latest reply on Nov 19, 2013 6:50 AM by sportsnapper

    No Module found error

    sportsnapper

      I've followed the instructions at Installation — PiFace Control and Display (CAD) 2.0.6 documentation to install the libraries an example code. When I try to run the sys info example, using python3 /usr/share/doc/python3-pifacecad/examples/sysinfo.py , I get

      pi@raspberrypi  $ python3 /usr/share/doc/python3-pifacecad/examples/sysinfo.py

      Traceback (most recent call last):

        File "/usr/share/doc/python3-pifacecad/examples/sysinfo.py", line 5, in <module>

          import pifacecad

        File "/usr/lib/python3/dist-packages/pifacecad/__init__.py", line 19, in <module>

          from pifacecommon.interrupts import (

      ImportError: No module named interrupts


      I can get the python2 example to work, but none of the python3 examples work, giving the same error.

       

      I'm using an old Raspbian install that has been fully updated.

       

      Looking at pifacecommon.py, it doesn't appear to have been updated since apr 25, yet it does on Github

       

      pi@raspberrypi /usr/local/lib/python3.2/dist-packages $ ls -al

      total 52

      drwxrwsr-x 5 root staff  4096 Nov 17 17:26 .

      drwxrwsr-x 3 root staff  4096 Sep 18  2012 ..

      drwxr-sr-x 2 root staff  4096 Nov 17 17:26 .AppleDouble

      -rw-r--r-- 1 root staff  2439 Apr 25  2013 asm_generic_ioctl.py

      drwxr-sr-x 5 root staff  4096 Nov 17 17:26 pifacecad

      -rw-r--r-- 1 root staff   267 Apr 25  2013 pifacecommon-1.0.egg-info

      -rw-r--r-- 1 root staff  5797 Apr 25  2013 pifacecommon.py

      -rw-r--r-- 1 root staff   297 Apr 25  2013 pifacedigitalio-1.2.egg-info

      -rw-r--r-- 1 root staff 10171 Apr 25  2013 pifacedigitalio.py

      drwxr-sr-x 2 root staff  4096 Apr 25  2013 __pycache__


      Bit lost now...