nghung270192 / colorama

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

Does colorama work with python_d? #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I did python_d setup.py install and after that I tried to run colorama test 
using python_d.exe.

What is the expected output? What do you see instead?
Below is the output:
Traceback (most recent call last):
  File "demo02.py", line 8, in <module>
    init()
  File "C:\Python27\lib\site-packages\colorama\initialise.py", line 27, in init
    wrap_stream(orig_stdout, convert, strip, autoreset, wrap)
  File "C:\Python27\lib\site-packages\colorama\initialise.py", line 50, in wrap_stream
    convert=convert, strip=strip, autoreset=autoreset)
  File "C:\Python27\lib\site-packages\colorama\ansitowin32.py", line 68, in __init__
    self.win32_calls = self.get_win32_calls()
  File "C:\Python27\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?
I compiled python 2.7.2 using Visual Studio 2010 under Windows 7 and copied 
python_d.exe to C:\Python27 where is my python 2.7.2 release is installed.

Please provide any additional information below.
It would be very nice to have colorama able to work with python_d.exe. Thank 
you!

Original issue reported on code.google.com by phantoma...@gmail.com on 2 Sep 2011 at 10:41

GoogleCodeExporter commented 9 years ago
Hey. Thanks for the bug report. Apologies I'm only just getting to look at it 
years later.

This problem may have been fixed by recent changes but I confess I'm only 
guessing. I confused about precisely where I should get python_d from. Can 
anyone help?

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

GoogleCodeExporter commented 9 years ago
python_d is gotten by compiling CPython in debug mode. :-)

Best regards,
  Jurko Gospodnetić

Original comment by jurko.go...@gmail.com on 4 Jun 2014 at 2:58

GoogleCodeExporter commented 9 years ago
Ah, makes sense, thanks Jurko.

In that case I don't know what the OP is asking. Closing this ticket as 
Invalid, it does not describe a problem.

Original comment by tart...@gmail.com on 6 Jun 2014 at 10:18