From: | "Vamsi Krishna Reddy -T (vamsredd - TATA CONSULTANCY SERVICES LIMITED at Cisco)" <vamsredd(at)cisco(dot)com> |
---|---|
To: | "psycopg(at)postgresql(dot)org" <psycopg(at)postgresql(dot)org> |
Cc: | "Virag Jain (virajain)" <virajain(at)cisco(dot)com> |
Subject: | Need help with the installation of psycopg2 module in a python virtual env |
Date: | 2015-04-17 18:27:08 |
Message-ID: | F9E9BF1AB618014BAB5BFAF67628966001986686@xmb-rcd-x11.cisco.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
Hi Team
I am trying to install psycopg2 in one of the cisco customized python virtual env using pip (pip3.4 --proxy <proxy_url> install
psycopg2).
Python available in this env is python.3.4 32-bit version.
I have also installed 32 bit version of postgress libraries.
I get the below error from gcc.
creating build/temp.linux-x86_64-3.4/psycopg
gcc -pthread -m32 -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -m32 -fPIC
-DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.6 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x080414
-I/ws/vamsredd-bxb/pyats_cel/include -I/auto/pysw/cel63/python/3.4.1/include/python3.4m -I. -I/usr/include
-I/usr/include/pgsql/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.4/psycopg/psycopgmodule.o
-Wdeclaration-after-statement
gcc.orig: (dt: No such file or directory
gcc.orig: dec: No such file or directory
gcc.orig: pq3: No such file or directory
gcc.orig: ext)": No such file or directory
<command-line>: warning: missing terminating " character
psycopg/psycopgmodule.c: In function 'PyInit__psycopg':
psycopg/psycopgmodule.c:877: error: missing terminating " character
psycopg/psycopgmodule.c:877: error: expected expression before ')' token
error: command 'gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /ws/vamsredd-bxb/pyats_cel/bin/python3.4 -c "import setuptools,
tokenize;__file__='/ws/vamsredd-bxb/pyats_cel/build/psycopg2/setup.py';exec(compile(getattr(tokenize, 'open',
open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5pc5uaux-record/install-record.txt
--single-version-externally-managed --compile --install-headers /ws/vamsredd-bxb/pyats_cel/include/site/python3.4 failed with error
code 1 in /ws/vamsredd-bxb/pyats_cel/build/psycopg2
Storing debug log for failure in /users/vamsredd/.pip/pip.log
Any help is highly appreciated.
Thanks & Regards
Vamsi
http://www.cisco.com/web/europe/images/email/signature/logo05.jpg
Vamsi Krishna Reddy
Engineer - Test/QA
vamsredd(at)cisco(dot)com
Phone: +1 978 936 3645
Cisco Systems Limited
300 Beaver Brook Road
BOXBOROUGH
MASSACHUSETTS
01719
US
<http://www.cisco.com> Cisco.com
Think before you print.Think before you print.
This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use,
distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the
recipient), please contact the sender by reply email and delete all copies of this message.
For corporate legal information go to:
<http://www.cisco.com/web/about/doing_business/legal/cri/index.html>
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2015-04-18 18:15:37 | Re: Need help with the installation of psycopg2 module in a python virtual env |
Previous Message | Daniele Varrazzo | 2015-04-15 14:13:57 | Re: Weird unicode problem |