Skip to content

ImportError: cannot import name '_environ_cols_windows' #927

@jklynch

Description

@jklynch
  • I have marked all applicable categories:
    • exception-raising bug
    • visual output bug
    • documentation request (i.e. "X is missing from the documentation." If instead I want to ask "how to use X?" I understand StackOverflow#tqdm is more appropriate)
    • new feature request
  • I have visited the source website, and in particular
    read the known issues
  • I have searched through the issue tracker for duplicates
  • I have mentioned version numbers, operating system and
    environment, where applicable:
    import tqdm, sys
    print(tqdm.__version__, sys.version, sys.platform)

It appears the 4.44.0 release removed tqdm.utils._environ_cols_windows, but tqdm._utils still imports it.

tqdm version 4.44.0:

Python 3.6.9 (default, Nov  7 2019, 10:44:02) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tqdm, sys
>>> print(tqdm.__version__, sys.version, sys.platform)
4.44.0 3.6.9 (default, Nov  7 2019, 10:44:02) 
[GCC 8.3.0] linux
>>> import tqdm._utils
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/jlynch/local/suitcase-tiff/venv/lib/python3.6/site-packages/tqdm/_utils.py", line 1, in <module>
    from .utils import CUR_OS, IS_WIN, IS_NIX, RE_ANSI, _range, _unich, _unicode, colorama, WeakSet, _basestring, _OrderedDict, FormatReplace, Comparable, SimpleTextIOWrapper, _is_utf, _supports_unicode, _is_ascii, _environ_cols_wrapper, _environ_cols_windows, _environ_cols_tput, _environ_cols_linux, _term_move_up  # NOQA
ImportError: cannot import name '_environ_cols_windows'

tqdm version 4.43.0:

Python 3.6.9 (default, Nov  7 2019, 10:44:02) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tqdm, sys
>>> print(tqdm.__version__, sys.version, sys.platform)
4.43.0 3.6.9 (default, Nov  7 2019, 10:44:02) 
[GCC 8.3.0] linux
>>> import tqdm._utils
>>> 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions