question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'spidev'

See original GitHub issue

Hi, I have Dell inspiron 5505. When I try to run your code it give me error with ModuleNotFoundError: No module named 'spidev'

sudo python3 run_538d.py                                          
Traceback (most recent call last):
 File "/home/shahi/goodix-fp-dump/run_538d.py", line 1, in <module>
   from driver_53xd import main
 File "/home/shahi/goodix-fp-dump/driver_53xd.py", line 9, in <module>
   from goodix import FLAGS_TRANSPORT_LAYER_SECURITY_DATA, Device
 File "/home/shahi/goodix-fp-dump/goodix.py", line 13, in <module>
   from protocol import Protocol, USBProtocol
 File "/home/shahi/goodix-fp-dump/protocol.py", line 13, in <module>
   from spidev import SpiDev
ModuleNotFoundError: No module named 'spidev'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
newtonsartcommented, Mar 7, 2022

I have this after installing sudo pip3 install spidev:

Traceback (most recent call last):
  File "run_5110.py", line 1, in <module>
    from driver_51x0 import main
  File "/home/steq/Загрузки/goodix-fp-dump/driver_51x0.py", line 9, in <module>
    from goodix import FLAGS_TRANSPORT_LAYER_SECURITY, Device
  File "/home/steq/Загрузки/goodix-fp-dump/goodix.py", line 13, in <module>
    from protocol import Protocol, USBProtocol
  File "/home/steq/Загрузки/goodix-fp-dump/protocol.py", line 14, in <module>
    from periphery import CdevGPIO
ModuleNotFoundError: No module named 'periphery'
$ sudo pip3 install periphery
ERROR: Could not find a version that satisfies the requirement periphery (from versions: none)
ERROR: No matching distribution found for periphery

if you are using archlinux: sudo pacman -S python-periphery if you are using other distribution search how to install python-periphery on your distribution

0reactions
mpi3dcommented, Mar 15, 2022

Closing because of inactivity

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'spidev' · Issue #66 · waveshare/e-Paper
I am trying to run the example epd_7in5_V2_test.py for the 7.5" V2 board, getting this error: ...
Read more >
No module named spidev?! - Raspberry Pi Forums
But when i was running the code. It showed "Import Error: "No module named spidev" Here is the photo for my troubleshooting, plz...
Read more >
ModuleNotFoundError: No module named 'spidev'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'spidev' How to remove the ModuleNotFo.
Read more >
Spidev module not found - NVIDIA Developer Forums
ImportError: No module named spidev. We've run sudo modprobe spidev and it seems fine. We also ran pip3 install spidev and it successfully ......
Read more >
spidev - PyPI
This project contains a python module for interfacing with SPI devices from user space via the spidev linux kernel driver. All code is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found