Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible Python versions causing TypeError: 'type' object is not subscriptable #11

Closed
aratelle-hepeng opened this issue Oct 31, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request Planned

Comments

@aratelle-hepeng
Copy link

The readme example is Python 3.6:
https://github.com/sayyid5416/pyinstaller/blame/454cc5f88cbfd6a1f7f5e6b9b96a0216be7f1720/README.md#L111

The code uses features introduced in Python 3.9:
https://github.com/sayyid5416/pyinstaller/blame/454cc5f88cbfd6a1f7f5e6b9b96a0216be7f1720/src/mods.py#L60

The discrepancy causes the following error:
"TypeError: 'type' object is not subscriptable"

The easy fix for the discrepancy would be to use Python >=3.9 in the example, or you may want to consider using different import options to make the code compatible.

@sayyid5416
Copy link
Owner

Yes, you are right. I'll see what I can do.

@sayyid5416 sayyid5416 self-assigned this Jan 25, 2024
@sayyid5416 sayyid5416 added the enhancement New feature or request label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Planned
Projects
None yet
Development

No branches or pull requests

2 participants