Re: [cx-oracle-users] cx_Oracle 6.2
Brought to you by:
atuining
From: Walter <wa...@li...> - 2018-03-07 16:15:08
|
On 6 Mar 2018, at 18:19, Anthony Tuininga wrote: > Hi Walter, > > This error is due to the fact that cxoModule.h is a file with a new > extension so it wasn't covered by MANIFEST.in. > I have corrected that and > also uploaded a revised source package so this should be corrected > now. > Apologies for the inconvenience! Thanks! Now the installation worked on my Mac. However on a (german) Windows 10, we get the following error: ``` C:\Users\hannes>pip install cx_Oracle Collecting cx_Oracle Downloading cx_Oracle-6.2-2.tar.gz (240kB) 100% |████████████████████████████████| 245kB 1.6MB/s Installing collected packages: cx-Oracle Running setup.py install for cx-Oracle ... error Exception: Traceback (most recent call last): File "c:\users\hannes\appdata\local\programs\python\python36\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str return s.decode(sys.__stdout__.encoding) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x94 in position 93: invalid start byte During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\users\hannes\appdata\local\programs\python\python36\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options, args) File "c:\users\hannes\appdata\local\programs\python\python36\lib\site-packages\pip\commands\install.py", line 342, in run prefix=options.prefix_path, File "c:\users\hannes\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_set.py", line 784, in install **kwargs File "c:\users\hannes\appdata\local\programs\python\python36\lib\site-packages\pip\req\req_install.py", line 878, in install spinner=spinner, File "c:\users\hannes\appdata\local\programs\python\python36\lib\site-packages\pip\utils\__init__.py", line 676, in call_subprocess line = console_to_str(proc.stdout.readline()) File "c:\users\hannes\appdata\local\programs\python\python36\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 0x94 in position 93: invalid start byte ``` > Anthony > > On Tue, Mar 6, 2018 at 4:02 AM, Walter Dörwald > <wa...@li...> > wrote: > >> On 6 Mar 2018, at 0:53, Anthony Tuininga wrote: >> >> What is cx_Oracle? >> >> cx_Oracle is a Python extension module that enables access to Oracle >> Database for Python 3.x and 2.x and conforms to the Python database >> API 2.0 >> specifications with a number of enhancements. >> >> I get an error when upgrading: >> >> pip install --upgrade cx_Oracle >> Collecting cx_Oracle >> Downloading cx_Oracle-6.2.tar.gz (237kB) >> 100% >> |████████████████████████████████| >> 245kB 2.5MB/s >> Installing collected packages: cx-Oracle >> Found existing installation: cx-Oracle 6.1 >> Uninstalling cx-Oracle-6.1: >> Successfully uninstalled cx-Oracle-6.1 >> Running setup.py install for cx-Oracle ... error >> Complete output from command >> /Users/walter/pyvenvs/default/bin/python3.6 -u -c "import setuptools, >> tokenize;__file__='/private/var/folders/hg/5rsj4705065b3cyxdftzd48w0000gn/T/pip-build-ovkqpskf/cx-Oracle/setup.py';f=getattr(tokenize, >> 'open', open)(__file__);code=f.read().replace('\r\n', >> '\n');f.close();exec(compile(code, __file__, 'exec'))" install >> --record >> /var/folders/hg/5rsj4705065b3cyxdftzd48w0000gn/T/pip-a0f8egs7-record/install-record.txt >> --single-version-externally-managed --compile --install-headers >> /Users/walter/pyvenvs/default/include/site/python3.6/cx-Oracle: >> running install >> running build >> running build_ext >> building 'cx_Oracle' extension >> creating build >> creating build/temp.macosx-10.13-x86_64-3.6 >> creating build/temp.macosx-10.13-x86_64-3.6/src >> creating build/temp.macosx-10.13-x86_64-3.6/odpi >> creating build/temp.macosx-10.13-x86_64-3.6/odpi/src >> clang -Wno-unused-result -Wsign-compare -Wunreachable-code >> -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall >> -Wstrict-prototypes -arch x86_64 -DCXO_BUILD_VERSION=6.2 >> -Iodpi/include -Iodpi/src -I/usr/local/include >> -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include >> -I/Users/walter/pyvenvs/default/include >> -I/usr/local/Cellar/python/3.6.4_3/Frameworks/Python.framework/Versions/3.6/include/python3.6m >> -c src/cxoBuffer.c -o >> build/temp.macosx-10.13-x86_64-3.6/src/cxoBuffer.o >> src/cxoBuffer.c:17:10: fatal error: 'cxoModule.h' file not found >> #include "cxoModule.h" >> ^~~~~~~~~~~~~ >> 1 error generated. >> error: command 'clang' failed with exit status 1 >> >> ---------------------------------------- >> Rolling back uninstall of cx-Oracle >> Command "/Users/walter/pyvenvs/default/bin/python3.6 -u -c "import >> setuptools, >> tokenize;__file__='/private/var/folders/hg/5rsj4705065b3cyxdftzd48w0000gn/T/pip-build-ovkqpskf/cx-Oracle/setup.py';f=getattr(tokenize, >> 'open', open)(__file__);code=f.read().replace('\r\n', >> '\n');f.close();exec(compile(code, __file__, 'exec'))" install >> --record >> /var/folders/hg/5rsj4705065b3cyxdftzd48w0000gn/T/pip-a0f8egs7-record/install-record.txt >> --single-version-externally-managed --compile --install-headers >> /Users/walter/pyvenvs/default/include/site/python3.6/cx-Oracle" >> failed with error code 1 in >> /private/var/folders/hg/5rsj4705065b3cyxdftzd48w0000gn/T/pip-build-ovkqpskf/cx-Oracle/ >> >> […] >> >> Servus, >> Walter >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> cx-oracle-users mailing list >> cx-...@li... >> https://lists.sourceforge.net/lists/listinfo/cx-oracle-users >> >> > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! > http://sdm.link/slashdot_______________________________________________ > cx-oracle-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-oracle-users |