CleanCut / green

Green is a clean, colorful, fast python test runner.
MIT License
791 stars 75 forks source link

Does not run on debian #110

Closed omnidan closed 8 years ago

omnidan commented 8 years ago

After installing green with sudo pip3 install green and running green, I get:

Traceback (most recent call last):
  File "/usr/local/bin/green", line 9, in <module>
    load_entry_point('green==2.2.0', 'console_scripts', 'green')()
  File "/usr/local/lib/python3.4/dist-packages/green/cmdline.py", line 29, in main
    from green.loader import loadTargets
  File "/usr/local/lib/python3.4/dist-packages/green/loader.py", line 13, in <module>
    from green.output import debug
  File "/usr/local/lib/python3.4/dist-packages/green/output.py", line 2, in <module>
    from colorama.ansi import Cursor
ImportError: cannot import name 'Cursor'
omnidan commented 8 years ago

Installing it via sudo easy_install green fixed the issue.

CleanCut commented 8 years ago

Weird. Why would an import from colorama fail based on which package manager installed it? ((shrugs and shakes head sadly))

jayvdb commented 8 years ago

Wrong version of colorama?

CleanCut commented 8 years ago

That could cause the import fail, but sudo easy_install green shouldn't alter the version of colorama from what pip had already installed.

Perhaps his easy_install was from a different version of python, and his 3.4 had a very old or very new version of colarama? That could do it.

omnidan commented 8 years ago

I think colorama might've been installed by easy_install and then I installed green with pip. It definitely sounds like a version mismatch.