[issue35149] pip3 show causing Error for ConfigParaser

2018-11-02 Thread Dileep

New submission from Dileep :

I' receiving error while viewing the package info of ConfigParser.

The command `pip3 show ConfigParser` doesn't cause any error where as following 
batch script is resulting this error

It has something to do with Autor name or Unicode handling of the Pip3
`for /f "tokens=1,2 delims=:" %a in ('pip3 show ConfigParser') do echo %a : %b`
 
Traceback (most recent call last):
  File "c:\program files (x86)\microsoft visual 
studio\shared\python36_64\lib\logging\__init__.py", line 995, in emit
stream.write(msg)
  File "c:\program files (x86)\microsoft visual 
studio\shared\python36_64\lib\site-packages\pip\_vendor\colorama\ansitowin32.py",
 line 141, in write
self.write_and_convert(text)
  File "c:\program files (x86)\microsoft visual 
studio\shared\python36_64\lib\site-packages\pip\_vendor\colorama\ansitowin32.py",
 line 169, in write_and_convert
self.write_plain_text(text, cursor, len(text))
  File "c:\program files (x86)\microsoft visual 
studio\shared\python36_64\lib\site-packages\pip\_vendor\colorama\ansitowin32.py",
 line 174, in write_plain_text
self.wrapped.write(text[start:end])
  File "c:\program files (x86)\microsoft visual 
studio\shared\python36_64\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0141' in position 
8: character maps to 
Call stack:
  File "c:\program files (x86)\microsoft visual 
studio\shared\python36_64\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
  File "c:\program files (x86)\microsoft visual 
studio\shared\python36_64\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
  File "C:\Program Files (x86)\Microsoft Visual 
Studio\Shared\Python36_64\Scripts\pip3.exe\__main__.py", line 9, in 
sys.exit(main())
  File "c:\program files (x86)\microsoft visual 
studio\shared\python36_64\lib\site-packages\pip\_internal\__init__.py", line 
78, in main
return command.main(cmd_args)
  File "c:\program files (x86)\microsoft visual 
studio\shared\python36_64\lib\site-packages\pip\_internal\cli\base_command.py", 
line 143, in main
status = self.run(options, args)
  File "c:\program files (x86)\microsoft visual 
studio\shared\python36_64\lib\site-packages\pip\_internal\commands\show.py", 
line 47, in run
results, list_files=options.files, verbose=options.verbose):
  File "c:\program files (x86)\microsoft visual 
studio\shared\python36_64\lib\site-packages\pip\_internal\commands\show.py", 
line 145, in print_results
logger.info("Author: %s", dist.get('author', ''))
Message: 'Author: %s'
Arguments: ('Ɓukasz Langa',)

--
messages: 329144
nosy: mdileep
priority: normal
severity: normal
status: open
title: pip3 show causing Error for  ConfigParaser

___
Python tracker 
<https://bugs.python.org/issue35149>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26738] listname.strip does not work right if the name ends with an 'o'

2016-04-11 Thread dileep k

New submission from dileep k:

12:54:38 | ~ | #1 $ python -V
Python 2.7.6

12:54:41 | ~ | #2 $ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> 'media.log'.strip('.log')
'media'

>>> 'video.log'.strip('.log')
'vide'

>>> 

The output should have been 'video' instead of 'vide' !

--
components: Library (Lib)
messages: 263203
nosy: dileep k
priority: normal
severity: normal
status: open
title: listname.strip does not work right if the name ends with an 'o'
type: behavior
versions: Python 2.7

___
Python tracker 
<http://bugs.python.org/issue26738>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue26738] listname.strip() does not work right if the name ends with an 'o'

2016-04-11 Thread dileep k

Changes by dileep k :


--
title: listname.strip does not work right if the name ends with an 'o' -> 
listname.strip() does not work right if the name ends with an 'o'

___
Python tracker 
<http://bugs.python.org/issue26738>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com