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.

import error on typing.Type for python 3.5.0

See original GitHub issue

im using django-extensions 2.0.6, OS is windows 7, python 3.5.0, django 1.11.3 an import error occurs after i execute python manage.py shell_plus pointing me to this line from shells.py & import_subclasses.py :

from typing import ( # NOQA Dict, List, Tuple, Type, Union, )

current workaround is changing that to:

if False: from typing import ( # NOQA Dict, List, Tuple, Type, Union, )

for both shells.py, and import_subclasses.py

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
OxInsky1105commented, Jan 1, 2020

decreasing the version scipy to 1.2.1 which can run it!not the python 3.5.1 or typing。

0reactions
OxInsky1105commented, Jan 1, 2020

decrease the version of scipy or (defected moudle)to 1.2.1 and uninstall typing. it can works

Read more comments on GitHub >

github_iconTop Results From Across the Web

26.1. typing — Support for type hints — Python 3.5.9 ...
This is useful in helping catch logical errors: ... from typing import Sequence, TypeVar T = TypeVar('T') # Declare type variable def first(l:...
Read more >
python - ImportError: No module named 'typing' when trying ...
It is working, and it is telling you quite clearly that the package you are trying to install needs a later version of...
Read more >
typing
Typing – Type Hints for Python. This is a backport of the standard library typing module to Python versions older than 3.5. (See...
Read more >
Changelog - valid8
Changelog¶. 5.1.2 - Bugfix with custom error formatting¶. Fixed issue: custom help messages in ValidationError using several variables were not rendering to ...
Read more >
Python Typing - Type Hints & Annotations - Daniela Lima
Tool to verify type mismatch — catch errors before running your code. $ pip install mypyUsage: $ mypy /../Path/your_file.py.
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