Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

ModuleNotFoundError: No module named 'RPi' #50

Open
Zemml opened this issue May 13, 2021 · 0 comments
Open

ModuleNotFoundError: No module named 'RPi' #50

Zemml opened this issue May 13, 2021 · 0 comments

Comments

@Zemml
Copy link

Zemml commented May 13, 2021

So i got everything set up and even the "printertest.py" works perfectly.
But if i try to run
python3 main.py
it fails with the following error message:

Traceback (most recent call last):
  File "main.py", line 18, in <module>
    import RPi.GPIO as GPIO
ModuleNotFoundError: No module named 'RPi'

or
python3 twitter.py
it fails with:

Traceback (most recent call last):
  File "twitter.py", line 30, in <module>
    import base64, HTMLParser, httplib, json, sys, urllib, zlib
ModuleNotFoundError: No module named 'HTMLParser'

If i try to run it with
python main.py
respectively
python twitter.py
it fails with:

Traceback (most recent call last):
  File "twitter.py", line 32, in <module>
    from Adafruit_Thermal import *
  File "/home/pi/Python-Thermal-Printer/Adafruit_Thermal.py", line 725
    def print (self, *args, **kwargs):
            ^


I'm not very into python, but I know it has something to do with the different python versions.
I hope somebody can help me here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant