TypeError: 'type' object is not subscriptable
See original GitHub issueOS: 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:
- Created a year ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Whoops. Fixed and released as ue4-docker 0.0.98.
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.