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

OS: ubuntu 20.04 python ver.: 3.8 ue4-docker: 0.0.97

ue4-docker info
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
  File "/usr/local/bin/ue4-docker", line 5, in <module>
    from ue4docker import main
  File "/usr/local/lib/python3.8/dist-packages/ue4docker/__init__.py", line 1, in <module>
    from .build import build
  File "/usr/local/lib/python3.8/dist-packages/ue4docker/build.py", line 2, in <module>
    from .infrastructure import *
  File "/usr/local/lib/python3.8/dist-packages/ue4docker/infrastructure/__init__.py", line 7, in <module>
    from .ImageBuilder import ImageBuilder
  File "/usr/local/lib/python3.8/dist-packages/ue4docker/infrastructure/ImageBuilder.py", line 11, in <module>
    class ImageBuilder(object):
  File "/usr/local/lib/python3.8/dist-packages/ue4docker/infrastructure/ImageBuilder.py", line 143, in ImageBuilder
    env: Optional[dict[str, str]] = None,
TypeError: 'type' object is not subscriptable

Some strange error

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
slonopotamuscommented, Apr 27, 2022

Whoops. Fixed and released as ue4-docker 0.0.98.

0reactions
TBBlecommented, Apr 27, 2022

Interesting. We build and publish packages with Python 3.7, but don’t currently run a linter that would catch this. A trivial search shows a few mypy and multi-linter GitHub Actions, perhaps we could trivially drop one of those into CI? That’s assuming they’d actually pick up something like this; mypy is just my first guess since it’s the tool that I know checks and consumes those annotations, although to be honest I haven’t ever run it myself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
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 ( 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