oursql3: error while install with utf-8 or "not found file"

Bug #1609608 reported by bl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oursql
New
Undecided
Unassigned

Bug Description

if in console set codepage utf-8 (by command "chcp 65001") then install breaks with error below.
But if change to standard Windows's codepage 1251 ("chcp 1251") then breaks with "not found file".

Have Python 3.5, Windows 10 x64, last Cython installed.

----------------------------------

> pip install oursql3
Collecting oursql3
  Using cached oursql3-0.9.4.tar.gz
Installing collected packages: oursql3
  Running setup.py install for oursql3 ... error
Exception:
Traceback (most recent call last):
  File "c:\python35\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str
    return s.decode(sys.__stdout__.encoding)
  File "c:\python35\lib\encodings\cp65001.py", line 17, in decode
    return codecs.code_page_decode(65001, input, errors, True)
UnicodeDecodeError: 'CP_UTF8' codec can't decode bytes in position 0--1: No mapping for the Unicode character exists in the target code page.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python35\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "c:\python35\lib\site-packages\pip\commands\install.py", line 317, in run
    prefix=options.prefix_path,
  File "c:\python35\lib\site-packages\pip\req\req_set.py", line 742, in install
    **kwargs
  File "c:\python35\lib\site-packages\pip\req\req_install.py", line 880, in install
    spinner=spinner,
  File "c:\python35\lib\site-packages\pip\utils\__init__.py", line 687, in call_subprocess
    line = console_to_str(proc.stdout.readline())
  File "c:\python35\lib\site-packages\pip\compat\__init__.py", line 75, in console_to_str
    return s.decode('utf_8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcd in position 20: invalid continuation byte

----------------------------------
> chcp 1251

> pip install oursql3
Collecting oursql3
  Using cached oursql3-0.9.4.tar.gz
Installing collected packages: oursql3
  Running setup.py install for oursql3 ... error
    Complete output from command c:\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\HIDDEN~1\\AppData\\Local\\Temp\\pip-build-33slkoi5\\oursql3\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\HIDDEN~1\AppData\Local\Temp\pip-_ug2cj2o-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    skipping 'oursqlx\oursql.c' Cython extension (up-to-date)
    error: [WinError 2] Не удается найти указанный файл

    ----------------------------------------
Command "c:\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\HIDDEN~1\\AppData\\Local\\Temp\\pip-build-33slkoi5\\oursql3\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\HIDDEN~1\AppData\Local\Temp\pip-_ug2cj2o-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\HIDDEN~1\AppData\Local\Temp\pip-build-33slkoi5\oursql3\

Tags: install oursql
bl (blagopoluchie)
summary: - oursql3: error while install with utf-8
+ oursql3: error while install with utf-8 or "not found file"
bl (blagopoluchie)
description: updated
tags: added: oursql
tags: added: install
description: updated
bl (blagopoluchie)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.