wolph / python-progressbar

Progressbar 2 - A progress bar for Python 2 and Python 3 - "pip install progressbar2"
http://progressbar-2.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
857 stars 101 forks source link

Examples script breaks at shortcut_example #166

Closed XenonR closed 6 years ago

XenonR commented 6 years ago

Description

I'm unable to execute the provided example.py also import progressbar; print(progressbar.__version__) results in error (see section Versions below). Already tried to reinstall from progressbar2-3.37.1-py2.py3-none-any.whl (was never working). Additionally this was the first version installed.

Code

Copy&Paste from RAW: https://github.com/WoLpH/python-progressbar/blob/develop/examples.py

Versions

pip3 list

Thanks.

wolph commented 6 years ago

You probably have some other file or library called progressbar which is conflicting.

Try this to find out what it's importing:

import progressbar
print(progressbar)
XenonR commented 6 years ago

<module 'progressbar' from '/opt/loc/progressbar.py'> facepalm Thanks a lot, i feel stupid now.

wolph commented 6 years ago

I can't even tell you how often I've had similar issues, they're quite annoying ;)