element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum No Module found error
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 3 replies
  • Subscribers 674 subscribers
  • Views 588 views
  • Users 0 members are here
  • pifacecad
  • piface_control_and_display
  • raspberry_pi
  • raspeberry_pi_accessories
  • piface_control_&_display
  • piface_control&display
  • piface_control
  • piface
Related

No Module found error

Former Member
Former Member over 12 years ago

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...

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 12 years ago

    Have you tried updating pifacecommon to the latest version with:

     

    $ sudo apt-get update && sudo apt-get install python3-pifacecommon

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to Former Member

    I did update, but using a different command string. But using the above, i got

     

    0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

     

    And it still doesn't work.....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago

    Solved.

     

    I unistalled everything Piface, using apt-get -purge remove pifacexxxxx - having got a list of packages using dpkg -l Piface*

     

    then I removed the /usr/local/lib/python3.2/dist-packages directory, as it hadn't been removed using apt-get.

     

    I then rebooted.

     

    Re-installed pifacecad using the git wiki instructions

     

    It now works....though the radio is a bit flaky.....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube