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

Update pi-thermal-printer docs #42

Open
johnchowork opened this issue Aug 18, 2020 · 1 comment
Open

Update pi-thermal-printer docs #42

johnchowork opened this issue Aug 18, 2020 · 1 comment

Comments

@johnchowork
Copy link

johnchowork commented Aug 18, 2020

I'm assuming that some folks are coming to this package from Adafruit's pi-thermal-printer documentation.
This package has been updated to use python3

This means that the command to run the test should be python3 printertest.py as written in the Readme here.
But this also means that the package to be installed should be changed to python3-serial meaning that you need to run apt-get install python3-serial to install that package.

@gregorspamsa
Copy link
Contributor

gregorspamsa commented Apr 1, 2021

Thanks so much! I kept on getting the error below and installing the python3-serial package fixed the issue 🙇

Traceback (most recent call last):
  File "printertest.py", line 3, in <module>
    from Adafruit_Thermal import *
  File "/home/pi/Python-Thermal-Printer_orig/Adafruit_Thermal.py", line 35, in <module>
    from serial import Serial
ModuleNotFoundError: No module named 'serial'

gregorspamsa added a commit to gregorspamsa/Python-Thermal-Printer that referenced this issue Apr 1, 2021
In the install package list, `python-serial` should be updated to `python3-serial`. Please see adafruit#42.
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

2 participants