nghung270192 / colorama

Automatically exported from code.google.com/p/colorama
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Startup failure on Python 2.5 - global name 'winterm' is not defined #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

(in the live console as well as in scripts)
1. from colorama import init
2. init()

What is the expected output?
Nothing so far, just startup.

What do you see instead?
Traceback (most recent call last):
  File "D:\Developing\python\server\seymour_server.py", line 165, in <module>
    seymour_serv = seymour_server()
  File "D:\Developing\python\server\seymour_server.py", line 101, in __init__
    init(autoreset = True)
  File "C:\Python25\lib\site-packages\colorama\initialise.py", line 27, in init
    wrap_stream(orig_stdout, convert, strip, autoreset, wrap)
  File "C:\Python25\lib\site-packages\colorama\initialise.py", line 50, in wrap_
stream
    convert=convert, strip=strip, autoreset=autoreset)
  File "C:\Python25\lib\site-packages\colorama\ansitowin32.py", line 68, in __in
it__
    self.win32_calls = self.get_win32_calls()
  File "C:\Python25\lib\site-packages\colorama\ansitowin32.py", line 86, in get_
win32_calls
    if self.convert and winterm:
NameError: global name 'winterm' is not defined

What version of the product are you using? On what operating system?
Win 7 Ultimate 64 bit
Python 2.5 (MSC v.1400 64 bit (AMD64) on win32
(why does it state win 32 anyways?)
Happend on both Colorama 2.4 and 2.5 which i found here on issue page

Please provide any additional information below.
Everything worked before on Python 2.7 and colorama 2.4
(I have to downgrade since i can't find working packet capturing modules for 
2.7 ...)

Original issue reported on code.google.com by isa-bael...@gmx.net on 19 Feb 2012 at 9:42

GoogleCodeExporter commented 9 years ago
Can't tell that this will fix the problem but just for possibility:

Try it with the standard 32 bit version of python. At least for me it fixed 
MANY problems.

Original comment by matze.o...@googlemail.com on 21 Feb 2012 at 8:36

GoogleCodeExporter commented 9 years ago
Thanks for the bug report. Acknowledged. I'm long overdue giving colorama some 
love, so I'll take a look at this in the next few days, hopefully issue a new 
version if I can figure it out.

Original comment by tart...@gmail.com on 22 Feb 2012 at 6:28

GoogleCodeExporter commented 9 years ago
I suggested a patch in issue #54

Original comment by matt.mcc...@kitware.com on 24 Mar 2014 at 2:51

GoogleCodeExporter commented 9 years ago

Original comment by tart...@gmail.com on 20 Apr 2014 at 9:46