<div dir="ltr">nakonec jsem pip i easy_install dostal do pythonu problem je ten ze proste psycopg nechce jit je tam nejaka buga vzteka se to na me takto:<br><br><br>Python 3.4.0a1 (v3.4.0a1:46535f65e7f3, Aug 3 2013, 22:59:31) [MSC v.1600 32 bit (Intel)] on win32<br>
Type "copyright", "credits" or "license()" for more information.<br>>>> import psycopg2<br>Traceback (most recent call last):<br> File "<pyshell#0>", line 1, in <module><br>
import psycopg2<br> File "C:\Python34\lib\site-packages\psycopg2\__init__.py", line 50, in <module><br> from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID<br>ImportError: DLL load failed: Uvedený modul nebyl nalezen.<br>
>>> <br><div class="gmail_extra"><br></div><div class="gmail_extra"><br>kompilaci jsem delal pres mingw. tady skoncila vetsina lidi. dela to verze instalovana "rucne" ale i ostatni verze... <br><br></div>
<div class="gmail_extra">behem instalace mi to hlasilo <br><br> C:\mingw\bin\gcc.exe -mdll -O -Wall -DPSYCOPG_DEFAULT_PYDATETIME=1 "-DPSYCOP<br>G_VERSION=\"2.5.1 (dt dec pq3 ext)\"" -DPG_VERSION_HEX=0x090204 -DPSYCOPG_EXTENS<br>
IONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -Ic:\Python34\include -Ic:\Pyt<br>hon34\include -I. -IC:/PROGRA~1/POSTGR~1/9.2/include -IC:/PROGRA~1/POSTGR~1/9.2/<br>include/server -c psycopg\connection_int.c -o build\temp.win32-3.4\Release\psyco<br>
pg\connection_int.o -O3 -fno-strict-aliasing<br> In file included from ./psycopg/psycopg.h:33:0,<br> from psycopg\connection_int.c:27:<br> ./psycopg/config.h:97:12: warning: 'pthread_mutex_init' defined but not used<br>
[-Wunused-function]<br> static int pthread_mutex_init(pthread_mutex_t *mutex, void* fake)<br> ^<br> C:\mingw\bin\gcc.exe -mdll -O -Wall -DPSYCOPG_DEFAULT_PYDATETIME=1 "-DPSYCOP<br>G_VERSION=\"2.5.1 (dt dec pq3 ext)\"" -DPG_VERSION_HEX=0x090204 -DPSYCOPG_EXTENS<br>
IONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -Ic:\Python34\include -Ic:\Pyt<br>hon34\include -I. -IC:/PROGRA~1/POSTGR~1/9.2/include -IC:/PROGRA~1/POSTGR~1/9.2/<br>include/server -c psycopg\connection_type.c -o build\temp.win32-3.4\Release\psyc<br>
opg\connection_type.o -O3 -fno-strict-aliasing<br> C:\mingw\bin\gcc.exe -mdll -O -Wall -DPSYCOPG_DEFAULT_PYDATETIME=1 "-DPSYCOP<br>G_VERSION=\"2.5.1 (dt dec pq3 ext)\"" -DPG_VERSION_HEX=0x090204 -DPSYCOPG_EXTENS<br>
IONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -Ic:\Python34\include -Ic:\Pyt<br>hon34\include -I. -IC:/PROGRA~1/POSTGR~1/9.2/include -IC:/PROGRA~1/POSTGR~1/9.2/<br>include/server -c psycopg\cursor_int.c -o build\temp.win32-3.4\Release\psycopg\c<br>
ursor_int.o -O3 -fno-strict-aliasing<br> In file included from ./psycopg/psycopg.h:33:0,<br> from psycopg\cursor_int.c:27:<br> ./psycopg/config.h:97:12: warning: 'pthread_mutex_init' defined but not used<br>
[-Wunused-function]<br> static int pthread_mutex_init(pthread_mutex_t *mutex, void* fake)<br>.....<br>.....<br></div><div class="gmail_extra">coz mi prijde jako vpohode. jine nez tyto chyby tam nebyly.<br></div><div class="gmail_extra">
<br></div><div class="gmail_extra"><br><div class="gmail_quote">Dne 6. září 2013 13:04 Petr Blahos <span dir="ltr"><<a href="mailto:petrblahos@gmail.com" target="_blank">petrblahos@gmail.com</a>></span> napsal(a):<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div>Ne, že bych to zkoušel, ale podle pypi to vypadá, že pip podporuje Python 3.<div>
<a href="https://pypi.python.org/pypi/pip/1.4.1" target="_blank">https://pypi.python.org/pypi/pip/1.4.1</a></div><div><a href="http://stackoverflow.com/questions/6587507/how-to-install-pip-with-python-3" target="_blank">http://stackoverflow.com/questions/6587507/how-to-install-pip-with-python-3</a><br>
</div><div class="gmail_extra">Nebo jsem něco nepochopil?</div><div class="gmail_extra">--</div><div class="gmail_extra">Petr</div><div class="im"><div class="gmail_extra"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/9/6 Ondrej Beranek <span dir="ltr"><<a href="mailto:rainbof@gmail.com" target="_blank">rainbof@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div>pustil jsem se do pythonu 3 zjistuji ze na windows neni nastroj pro instalaci ruznych veci napriklad psycopg. pouzilval jsem v minulosti PIP ale ten se zda ze zemrel s verzi 2...<br><br></div>existuje nejake dobre reseni jak / cim pip nahradit ?<span><font color="#888888"><br>
<div><br></div></font></span></div></blockquote></div></div></div></div>
<br>_______________________________________________<br>
Python mailing list<br>
<a href="mailto:Python@py.cz">Python@py.cz</a><br>
<a href="http://www.py.cz/mailman/listinfo/python" target="_blank">http://www.py.cz/mailman/listinfo/python</a><br></blockquote></div><br></div></div>