From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | "Vamsi Krishna Reddy -T (vamsredd - TATA CONSULTANCY SERVICES LIMITED at Cisco)" <vamsredd(at)cisco(dot)com>, "psycopg(at)postgresql(dot)org" <psycopg(at)postgresql(dot)org> |
Cc: | "Virag Jain (virajain)" <virajain(at)cisco(dot)com> |
Subject: | Re: Need help with the installation of psycopg2 module in a python virtual env |
Date: | 2015-04-18 18:15:37 |
Message-ID: | 55329F49.5060506@aklaver.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | psycopg |
On 04/17/2015 11:27 AM, Vamsi Krishna Reddy -T (vamsredd - TATA
CONSULTANCY SERVICES LIMITED at Cisco) wrote:
> 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
>
> ----------------------------------------
Best guess is you do not have the python-dev files installed. See below
for more details:
http://initd.org/psycopg/docs/install.html
>
> *Vamsi Krishna Reddy*
> Engineer - Test/QA
> vamsredd(at)cisco(dot)com
> Phone: *+1 978 936 3645*
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Daniele Varrazzo | 2015-04-19 08:56:08 | Re: Need help with the installation of psycopg2 module in a python virtual env |
Previous Message | Vamsi Krishna Reddy -T (vamsredd - TATA CONSULTANCY SERVICES LIMITED at Cisco) | 2015-04-17 18:27:08 | Need help with the installation of psycopg2 module in a python virtual env |