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.

TypeError: 'type' object is not subscriptable

See original GitHub issue

yes Describe the bug

the command doesn’t start Who to reproduce

After uninstalling the earlier version, updating and reinstalling the latest version, the command doesn’t start at all with any argument:

output:

linux-enable-ir-emitter -h Traceback (most recent call last): File "/usr/bin/linux-enable-ir-emitter", line 9, in <module> from command import boot, fix, manual, run, configure File "/usr/lib/linux-enable-ir-emitter/command/boot.py", line 5, in <module> from Systemd import Systemd File "/usr/lib/linux-enable-ir-emitter/Systemd.py", line 19, in <module> class Systemd: File "/usr/lib/linux-enable-ir-emitter/Systemd.py", line 20, in Systemd def __init__(self, devices: list[str]) -> None: TypeError: 'type' object is not subscriptable

Additional info

  • Distro: Ubuntu
  • Version: 20.04
  • Version of linux-enable-ir-emitter: the latest on 2021.11.06
  • How did you install linux-enable-ir-emitter: bash

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
benoe77commented, Nov 6, 2021

I also have this 😃

python3.8 -V Python 3.8.10

and after doing this:

sudo apt install python3.9

I have this:

python3.9 -V Python 3.9.5

0reactions
benoe77commented, Nov 6, 2021

I confirm this version is working:

linux-enable-ir-emitter 3.2.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python TypeError: 'type' object is not subscriptable Solution
The “TypeError: 'type' object is not subscriptable” error is raised when you try to access an object using indexing whose data type is...
Read more >
TypeError: 'type' object is not subscriptable when indexing in ...
The type of dict is a type . All types are objects in Python. Thus you are actually trying to index into the...
Read more >
Typeerror: type object is not subscriptable ( Steps to Fix)
The best way to fix this error is using correct object for indexing. Let's understand with one example. ... The fix is calling...
Read more >
Python TypeError: Object is Not Subscriptable (How to Fix This ...
Python throws the TypeError object is not subscriptable if you use indexing with the square bracket notation on an object that is not...
Read more >
How to Fix "TypeError: 'type' object is not subscriptable"
How to Fix “TypeError: 'type' object is not subscriptable” ... Fix: The “str” in “str[strlength – 1]” needs to be replaced with the...
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