Re: Need help with the installation of psycopg2 module in a python virtual env

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Need help with the installation of psycopg2 module in a python virtual env
Дата
Msg-id 55329F49.5060506@aklaver.com
обсуждение исходный текст
Ответ на Need help with the installation of psycopg2 module in a python virtual env  ("Vamsi Krishna Reddy -T (vamsredd - TATA CONSULTANCY SERVICES LIMITED at Cisco)" <vamsredd@cisco.com>)
Список 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@cisco.com
> Phone: *+1 978 936 3645*
>


--
Adrian Klaver
adrian.klaver@aklaver.com


В списке psycopg по дате отправления:

Предыдущее
От: "Vamsi Krishna Reddy -T (vamsredd - TATA CONSULTANCY SERVICES LIMITED at Cisco)"
Дата:
Сообщение: Need help with the installation of psycopg2 module in a python virtual env
Следующее
От: Daniele Varrazzo
Дата:
Сообщение: Re: Need help with the installation of psycopg2 module in a python virtual env