Skip to content

Fix ValueError: invalid literal for int() with base 10: '' in tqdm/utils.py #10673

@erastogi

Description

@erastogi

Valid for conda version > 4.8.3
At line-336 in _vendors/tqdm/utils.py (db380cc#diff-a2e083f5ce1f74db5268f51073df0c2cdb07b7e2d64f65be3e65f5964e023417), os.environ is called which returns an empty string and thus fails with value error when int() is called on it. In the previous code, a default value of 1 was used (line-204 in _vendors/tqdm/_utils.py ). I suggest that the line-336 in _vendors/tqdm/utils.py should be changed to return [int(os.environ.get(i, 1)) - 1 for i in ("COLUMNS", "LINES")]

Current Behavior

Steps to Reproduce


Expected Behavior

Environment Information

`conda info`


`conda config --show-sources`


`conda list --show-channel-urls`


Metadata

Metadata

Assignees

No one assigned

    Labels

    locked[bot] locked due to inactivitypending::feedbackindicates we are waiting on feedback from the usertype::bugdescribes erroneous operation, use severity::* to classify the type

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions