dustmaps icon indicating copy to clipboard operation
dustmaps copied to clipboard

Progress Bar Clash

Open christinahedges opened this issue 6 years ago • 3 comments

When I install dustmaps and try to run

python setup.py fetch --map-name=leikeensslin2019

There is an import error. I currently have progressbar installed, but dustmaps requires progressbar2. These both get imported with the same name, so when I try to run the fetch script I get an import error:

from progressbar.widgets import DataSize, AdaptiveTransferSpeed, Bar,...
ImportError: cannot import name 'DataSize'

DataSize is not in progressbar, only progressbar2. This clash can currently be solved by installing progressbar2. It might be worth adding progressbar2 to the dustmaps requirements?

christinahedges avatar May 28 '19 18:05 christinahedges

progressbar2 should be installed by Pip alongside dustmaps, given that it's listed here. Is this not the case?

gregreen avatar May 28 '19 20:05 gregreen

When I installed dustmaps, progressbar2 did not get installed, but I agree it should have done given the setup.py. I wanted to make sure I opened an issue and documented it incase someone else came across the same problem.

christinahedges avatar May 28 '19 20:05 christinahedges

Thanks. Perhaps a requirements.txt would be useful to include.

gregreen avatar May 28 '19 21:05 gregreen