Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Armachat coding problem
#3
Thanks a lot! You really help Rolleyes
I change code a little
menu_options = file_filter(os.listdir())
max_length = len(menu_options)

for i in range(0, max_length, 1):
        print( "[{}] {}".format(i, menu_options[i]))
#pnt20"1234567890123456789")
print("[Press number 0-9]")
try:
    exec(open("simplechat.py").read())
except Exception as err:
    print(f"Unexpected {err=}, {type(err)=}")
And get this message

Unexpected err=no module named 'adafruit_display_text.LabelBase', type(err)=<class 'ImportError'>
According to the traceback from my post, import LabelBase takes place in label.py
It is not possible to import the LabelBase class from the standard library? But I don't understand why
Reply


Messages In This Thread
Armachat coding problem - by gad969 - Mar-08-2023, 12:08 PM
RE: Armachat coding problem - by deanhystad - Mar-08-2023, 04:23 PM
RE: Armachat coding problem - by gad969 - Mar-09-2023, 04:38 PM
RE: Armachat coding problem - by deanhystad - Mar-09-2023, 05:11 PM
RE: Armachat coding problem - by gad969 - Mar-12-2023, 03:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Coding problem portfolio grade max70990 1 775 Dec-11-2022, 12:30 PM
Last Post: Larz60+
  coding problem from older book teddfirth 3 2,228 Mar-06-2021, 03:51 PM
Last Post: teddfirth
  Begginer coding problem wiktor 2 3,295 Jan-26-2018, 06:24 PM
Last Post: wiktor
  IR coding problem DPaul 3 2,838 Jan-09-2018, 08:02 AM
Last Post: DPaul
  new user coding problem mattkrebs 1 3,080 Mar-21-2017, 12:45 PM
Last Post: buran
  Coding problem VISHU 3 4,911 Mar-16-2017, 06:54 AM
Last Post: Larz60+
  Incredibly basic coding problem AndyF 12 8,703 Feb-11-2017, 03:52 PM
Last Post: AndyF

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020