W dniu 8 maja 2013 14:29 użytkownik Skiba Marek skibamarek@gmail.com napisał:
Posłużyłem się tym https://github.com/philipsoutham/py-mysql2pgsql
probuje sie do tego zabrać, ale za chorobe nie chce się to zaintalować :( może jakaś sugestia?
#v+ root@testsql:/usr/src/py-mysql2pgsql# python setup.py install running install Checking .pth file support in /usr/local/lib/python2.7/dist-packages/ /usr/bin/python -E -c pass TEST PASSED: /usr/local/lib/python2.7/dist-packages/ appears to support .pth files running bdist_egg running egg_info writing requirements to py_mysql2pgsql.egg-info/requires.txt writing py_mysql2pgsql.egg-info/PKG-INFO writing top-level names to py_mysql2pgsql.egg-info/top_level.txt writing dependency_links to py_mysql2pgsql.egg-info/dependency_links.txt reading manifest file 'py_mysql2pgsql.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found under directory '*' warning: no previously-included files matching '*.pyo' found under directory '*' warning: no previously-included files matching '*.DS_Store' found under directory '*' warning: no previously-included files matching '*.coverage' found under directory '*' no previously-included directories found matching 'tests/reports' writing manifest file 'py_mysql2pgsql.egg-info/SOURCES.txt' installing library code to build/bdist.linux-i686/egg running install_lib running build_py creating build/bdist.linux-i686/egg creating build/bdist.linux-i686/egg/mysql2pgsql copying build/lib.linux-i686-2.7/mysql2pgsql/mysql2pgsql.py -> build/bdist.linux-i686/egg/mysql2pgsql copying build/lib.linux-i686-2.7/mysql2pgsql/__init__.py -> build/bdist.linux-i686/egg/mysql2pgsql creating build/bdist.linux-i686/egg/mysql2pgsql/lib copying build/lib.linux-i686-2.7/mysql2pgsql/lib/postgres_file_writer.py -> build/bdist.linux-i686/egg/mysql2pgsql/lib copying build/lib.linux-i686-2.7/mysql2pgsql/lib/config.py -> build/bdist.linux-i686/egg/mysql2pgsql/lib copying build/lib.linux-i686-2.7/mysql2pgsql/lib/converter.py -> build/bdist.linux-i686/egg/mysql2pgsql/lib copying build/lib.linux-i686-2.7/mysql2pgsql/lib/postgres_writer.py -> build/bdist.linux-i686/egg/mysql2pgsql/lib copying build/lib.linux-i686-2.7/mysql2pgsql/lib/mysql_reader.py -> build/bdist.linux-i686/egg/mysql2pgsql/lib copying build/lib.linux-i686-2.7/mysql2pgsql/lib/postgres_db_writer.py -> build/bdist.linux-i686/egg/mysql2pgsql/lib copying build/lib.linux-i686-2.7/mysql2pgsql/lib/errors.py -> build/bdist.linux-i686/egg/mysql2pgsql/lib copying build/lib.linux-i686-2.7/mysql2pgsql/lib/__init__.py -> build/bdist.linux-i686/egg/mysql2pgsql/lib byte-compiling build/bdist.linux-i686/egg/mysql2pgsql/mysql2pgsql.py to mysql2pgsql.pyc byte-compiling build/bdist.linux-i686/egg/mysql2pgsql/__init__.py to __init__.pyc byte-compiling build/bdist.linux-i686/egg/mysql2pgsql/lib/postgres_file_writer.py to postgres_file_writer.pyc byte-compiling build/bdist.linux-i686/egg/mysql2pgsql/lib/config.py to config.pyc byte-compiling build/bdist.linux-i686/egg/mysql2pgsql/lib/converter.py to converter.pyc byte-compiling build/bdist.linux-i686/egg/mysql2pgsql/lib/postgres_writer.py to postgres_writer.pyc byte-compiling build/bdist.linux-i686/egg/mysql2pgsql/lib/mysql_reader.py to mysql_reader.pyc byte-compiling build/bdist.linux-i686/egg/mysql2pgsql/lib/postgres_db_writer.py to postgres_db_writer.pyc byte-compiling build/bdist.linux-i686/egg/mysql2pgsql/lib/errors.py to errors.pyc byte-compiling build/bdist.linux-i686/egg/mysql2pgsql/lib/__init__.py to __init__.pyc creating build/bdist.linux-i686/egg/EGG-INFO installing scripts to build/bdist.linux-i686/egg/EGG-INFO/scripts running install_scripts running build_scripts creating build/bdist.linux-i686/egg/EGG-INFO/scripts copying build/scripts-2.7/py-mysql2pgsql -> build/bdist.linux-i686/egg/EGG-INFO/scripts changing mode of build/bdist.linux-i686/egg/EGG-INFO/scripts/py-mysql2pgsql to 755 copying py_mysql2pgsql.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO copying py_mysql2pgsql.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO copying py_mysql2pgsql.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO copying py_mysql2pgsql.egg-info/not-zip-safe -> build/bdist.linux-i686/egg/EGG-INFO copying py_mysql2pgsql.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO copying py_mysql2pgsql.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO creating 'dist/py_mysql2pgsql-0.1.6-py2.7.egg' and adding 'build/bdist.linux-i686/egg' to it removing 'build/bdist.linux-i686/egg' (and everything under it) Processing py_mysql2pgsql-0.1.6-py2.7.egg removing '/usr/local/lib/python2.7/dist-packages/py_mysql2pgsql-0.1.6-py2.7.egg' (and everything under it) creating /usr/local/lib/python2.7/dist-packages/py_mysql2pgsql-0.1.6-py2.7.egg Extracting py_mysql2pgsql-0.1.6-py2.7.egg to /usr/local/lib/python2.7/dist-packages py-mysql2pgsql 0.1.6 is already the active version in easy-install.pth Installing py-mysql2pgsql script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/py_mysql2pgsql-0.1.6-py2.7.egg Processing dependencies for py-mysql2pgsql==0.1.6 Searching for psycopg2>=2.4.2 Reading http://pypi.python.org/simple/psycopg2/ Reading http://initd.org/psycopg/ Reading http://initd.org/projects/psycopg2 Best match: psycopg2 2.5 Downloading http://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.5.tar.gz#md5=fa... Processing psycopg2-2.5.tar.gz Writing /tmp/easy_install-RtoniR/psycopg2-2.5/setup.cfg Running psycopg2-2.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-RtoniR/psycopg2-2.5/egg-dist-tmp-pI8oUq warning: no files found matching '*.py' under directory 'ZPsycopgDA' warning: no files found matching '*.gif' under directory 'ZPsycopgDA' warning: no files found matching '*.dtml' under directory 'ZPsycopgDA' warning: no files found matching '*' under directory 'psycopg2da' warning: no files found matching '*' under directory 'debian' no previously-included directories found matching 'doc/src/_build' warning: no files found matching 'ChangeLog' In file included from psycopg/psycopgmodule.c:27:0: ./psycopg/psycopg.h:30:20: fatal error: Python.h: Nie ma takiego pliku ani katalogu compilation terminated. error: Setup script exited with error: command 'gcc' failed with exit status 1 root@testsql:/usr/src/py-mysql2pgsql# #v-
-- Pozdrawiam Marcin / nicraM