pywikibot-catfiles / file-metadata

A python package to analyze files and provide useful metadata
MIT License
15 stars 1 forks source link

WARNING:root:HAAR Cascade analysis requires the optional dependency OpenCV 2.x to be installed. #56

Open drtrigon opened 8 years ago

drtrigon commented 8 years ago

When I run the scripts like e.g. bulk_bot.py or simple_bot.py I get these messages unless I install python-opencv (unbuntu-14.04). Can we solve that like https://github.com/pywikibot-catfiles/file-metadata/issues/46 by adding it to setupdeps.py?

AbdealiLoKo commented 8 years ago

Currently, as discussed - it is not a good idea, as installing opencv inside virtualenvs is messy. These issues are the only reason we had initially moved to skimage, opencv is currently a necessary evil because it has some nice functions.

Ideally, it would be nice to move them over to skimage.

But, I think opencv will always be an optional dependency - because it's not easy to install, but is useful for experimentation.

drtrigon commented 8 years ago

"But, I think opencv will always be an optional dependency - because it's not easy to install, but is useful for experimentation." - I strongly agree with this!

Still - can we give at least some explicit (os dependent) install hints? Or is that messy too?

AbdealiLoKo commented 8 years ago

OS specific isn't an issue - but it won't work out in virtualenvs. Which is the issue mainly as inside virtualenvs it's not very easy to install it. We could probably give hints ... but It's experimental and hence use at your own risk - I'd rather not "support" it