agesys-dev team mailing list archive
-
agesys-dev team
-
Mailing list archive
-
Message #00174
[Bug 1609608] Re: oursql3: error while install with utf-8 or "not found file"
** Description changed:
- Have Python 3.5, Windows 10 x64.
+ Have Python 3.5, Windows 10 x64, last Cython installed.
+ 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".
+
+
+ > 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
+ Текущая кодовая страница: 1251
+
+ Bladislav@DESKTOP C:\pwb
> 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.
+ Complete output from command c:\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\BLADIS~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\BLADIS~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] Не удается найти указанный файл
- 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
+ ----------------------------------------
+ Command "c:\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\BLADIS~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\BLADIS~1\AppData\Local\Temp\pip-_ug2cj2o-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\BLADIS~1\AppData\Local\Temp\pip-build-33slkoi5\oursql3\
** Tags added: oursql
** Tags added: install
** Description changed:
- Have Python 3.5, Windows 10 x64, last Cython installed.
-
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
Текущая кодовая страница: 1251
Bladislav@DESKTOP C:\pwb
> pip install oursql3
Collecting oursql3
- Using cached oursql3-0.9.4.tar.gz
+ 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\\BLADIS~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\BLADIS~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] Не удается найти указанный файл
+ Running setup.py install for oursql3 ... error
+ Complete output from command c:\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\BLADIS~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\BLADIS~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\\BLADIS~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\BLADIS~1\AppData\Local\Temp\pip-_ug2cj2o-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\BLADIS~1\AppData\Local\Temp\pip-build-33slkoi5\oursql3\
--
You received this bug notification because you are a member of Agesys
Team, which is subscribed to oursql.
https://bugs.launchpad.net/bugs/1609608
Title:
oursql3: error while install with utf-8 or "not found file"
Status in oursql:
New
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
Текущая кодовая страница: 1251
Bladislav@DESKTOP C:\pwb
> 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\\BLADIS~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\BLADIS~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\\BLADIS~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\BLADIS~1\AppData\Local\Temp\pip-_ug2cj2o-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\BLADIS~1\AppData\Local\Temp\pip-build-33slkoi5\oursql3\
To manage notifications about this bug go to:
https://bugs.launchpad.net/oursql/+bug/1609608/+subscriptions
References