[python] podpora postgresql v běžných skriptech

Ondrej Beranek rainbof na gmail.com
Středa Srpen 29 15:27:12 CEST 2012


už jsem po tom koukal :) nakonec tedy do něj půjdu.

2012/8/29 Petr Messner <petr.messner na gmail.com>:
> Pomohlo by nainstalovat to odtud?
>
> http://www.stickpeople.com/projects/python/win-psycopg/
>
> (Tento odkaz je na http://initd.org/psycopg/ vpravo v Quick links "Windows
> Download".)
>
> Petr Messner
>
>
> 2012/8/29 Ondrej Beranek <rainbof na gmail.com>
>>
>> Ahoj,
>>
>> potřeboval bych pro pár menších skriptů podporu postgresql jen
>> jednoduche inserty a selecty. Mam ale pozadavek na to aby mi pak
>> skript behal ve windows (kde vyvjim) i na linuxu (kde pak pojede).
>> jako python momentalne pouzivam portable python 3.3.1 kam mi psycopg
>> nesel nainstalovat a skoncilo to chybou o tom ze vyzaduje jeste
>> "headers and libraries" nejde to nejak jednoduse bez toho ?
>>
>>
>> chyby:
>>
>> ......\python setup.py --verbose install
>>
>>
>> running install
>> running build
>> running build_py
>> not copying lib\errorcodes.py (output up-to-date)
>> not copying lib\extensions.py (output up-to-date)
>> not copying lib\extras.py (output up-to-date)
>> not copying lib\pool.py (output up-to-date)
>> not copying lib\psycopg1.py (output up-to-date)
>> not copying lib\tz.py (output up-to-date)
>> not copying lib\__init__.py (output up-to-date)
>> not copying tests\dbapi20.py (output up-to-date)
>> not copying tests\dbapi20_tpc.py (output up-to-date)
>> not copying tests\testconfig.py (output up-to-date)
>> not copying tests\testutils.py (output up-to-date)
>> not copying tests\test_async.py (output up-to-date)
>> not copying tests\test_bugX000.py (output up-to-date)
>> not copying tests\test_bug_gc.py (output up-to-date)
>> not copying tests\test_cancel.py (output up-to-date)
>> not copying tests\test_connection.py (output up-to-date)
>> not copying tests\test_copy.py (output up-to-date)
>> not copying tests\test_cursor.py (output up-to-date)
>> not copying tests\test_dates.py (output up-to-date)
>> not copying tests\test_extras_dictcursor.py (output up-to-date)
>> not copying tests\test_green.py (output up-to-date)
>> not copying tests\test_lobject.py (output up-to-date)
>> not copying tests\test_module.py (output up-to-date)
>> not copying tests\test_notify.py (output up-to-date)
>> not copying tests\test_psycopg2_dbapi20.py (output up-to-date)
>> not copying tests\test_quote.py (output up-to-date)
>> not copying tests\test_transaction.py (output up-to-date)
>> not copying tests\test_types_basic.py (output up-to-date)
>> not copying tests\test_types_extras.py (output up-to-date)
>> not copying tests\__init__.py (output up-to-date)
>> running build_ext
>> Error: pg_config executable not found.
>>
>> Please add the directory containing pg_config to the PATH
>> or specify the full executable path with the option:
>>
>>     python setup.py build_ext --pg-config /path/to/pg_config build ...
>>
>> or with the pg_config option in 'setup.cfg'.
>> _______________________________________________
>> Python mailing list
>> Python na py.cz
>> http://www.py.cz/mailman/listinfo/python
>
>
>
> _______________________________________________
> Python mailing list
> Python na py.cz
> http://www.py.cz/mailman/listinfo/python


Další informace o konferenci Python