Open tartley opened 9 years ago
Looks like you named your file 'colorama.py', so when running from colorama import init
you're trying to import from your own script. Rename the file to a name that is not reserved by a module.
tried it but it prints the following in blue:
[31msome red text [42mand with a green background [2mand in dim text [39m[49m[0m back to normal now
So this is a different issue.
I can't reproduce this. Your example works as expected on my computer.
How are you running the script? On what terminal (is it cmd?) Are you sure you are still calling init()
?
Yes im running it on cmd
Just to check every possibility. Your running it on Windows cmd and not Python IDLE right? Also what version of Windows or Linux? Seems like an import issue. This works for Win7 from colorama import init, Fore, Back, Style
. I took out from termcolor import colored
and it worked.
Yes On 29 Mar 2015 21:31, "Kyle" notifications@github.com wrote:
Just to check every possibility. Your running it on Windows cmd and not Python IDLE right?
— Reply to this email directly or view it on GitHub.
import colorama; print(colorama)
Yes im running on win 7 and windows cmd
Have you tried all the suggested importing methods?
Just speculating: could this be related to #49?
@Moridiin03 Is the environment variable TERM
set to a value? In other words, whats the result of running echo %TERM%
in cmd?
The import error seems to be understood to be user error. I'm renaming this ticket to represent the remaining problem.
Migrated from googlecode https://code.google.com/p/colorama/issues/detail?id=66
Reported by Tayyab.Ditta, Yesterday (22 hours ago) I have installed colorama but i get the following error when running this code:
I get this error when running the above: