nghung270192 / colorama

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

Colorama conflicts with PyReadline on Windows #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Python 27 64 bit from python.org.
2. Install colorama 0.2.7 from PyPI.
3. Install pyreadline 2.0 from PyPI.
4. Start python prompt
5. Import colorama

Importing colorama generates the following error over and over.  I posted this 
error to the Pyreadline devs as well. 

ArgumentError: argument 2: <type 'exceptions.TypeError'>: expected LP_CONSOLE_SC
REEN_BUFFER_INFO instance instead of pointer to CONSOLE_SCREEN_BUFFER_INFO
Readline internal error
Traceback (most recent call last):
  File "C:\Users\silvester\Anaconda\lib\site-packages\pyreadline\console\console
.py", line 768, in hook_wrapper_23
    res = ensure_str(readline_hook(prompt))
  File "C:\Users\silvester\Anaconda\lib\site-packages\pyreadline\rlmain.py", lin
e 569, in readline
    self.readline_setup(prompt)
  File "C:\Users\silvester\Anaconda\lib\site-packages\pyreadline\rlmain.py", lin
e 565, in readline_setup
    self._print_prompt()
  File "C:\Users\silvester\Anaconda\lib\site-packages\pyreadline\rlmain.py", lin
e 466, in _print_prompt
    x, y = c.pos()
  File "C:\Users\silvester\Anaconda\lib\site-packages\pyreadline\console\console
.py", line 261, in pos
    self.GetConsoleScreenBufferInfo(self.hout, byref(info))

Original issue reported on code.google.com by steven.s...@gmail.com on 12 Jan 2014 at 4:03

GoogleCodeExporter commented 9 years ago
Thanks for the report. I'm merging this with another similar sounding issue.

Original comment by tart...@gmail.com on 13 Jan 2014 at 11:06