{"action":"closed","issue":{"url":"https://api.github.com/repos/psycopg/psycopg2/issues/496","repository_url":"https://api.github.com/repos/psycopg/psycopg2","labels_url":"https://api.github.com/repos/psycopg/psycopg2/issues/496/labels{/name}","comments_url":"https://api.github.com/repos/psycopg/psycopg2/issues/496/comments","events_url":"https://api.github.com/repos/psycopg/psycopg2/issues/496/events","html_url":"https://github.com/psycopg/psycopg2/issues/496","id":196411129,"number":496,"title":"PIP install psycopg2 on FEDORA","user":{"login":"tyrielbr","id":5266917,"avatar_url":"https://avatars.githubusercontent.com/u/5266917?v=3","gravatar_id":"","url":"https://api.github.com/users/tyrielbr","html_url":"https://github.com/tyrielbr","followers_url":"https://api.github.com/users/tyrielbr/followers","following_url":"https://api.github.com/users/tyrielbr/following{/other_user}","gists_url":"https://api.github.com/users/tyrielbr/gists{/gist_id}","starred_url":"https://api.github.com/users/tyrielbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyrielbr/subscriptions","organizations_url":"https://api.github.com/users/tyrielbr/orgs","repos_url":"https://api.github.com/users/tyrielbr/repos","events_url":"https://api.github.com/users/tyrielbr/events{/privacy}","received_events_url":"https://api.github.com/users/tyrielbr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-19T13:16:33Z","updated_at":"2016-12-20T01:44:02Z","closed_at":"2016-12-20T01:44:02Z","body":"Hi, \r\n\r\nSimilar to another post, I got a few issues when trying to setup psycopg2 using PIP on fedora 24\r\n\r\nCollecting psycopg2\r\n  Using cached psycopg2-2.6.2.tar.gz\r\nBuilding wheels for collected packages: psycopg2\r\n  Running setup.py bdist_wheel for psycopg2: started\r\n  Running setup.py bdist_wheel for psycopg2: finished with status 'error'\r\n  Complete output from command /home/fsantos/e-commerce/venv/bin/python3.5 -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-hwn1m3zc/psycopg2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" bdist_wheel -d /tmp/tmpmsy0w38dpip-wheel- --python-tag cp35:\r\n  running bdist_wheel\r\n  running build\r\n  running build_py\r\n  creating build\r\n  creating build/lib.linux-x86_64-3.5\r\n  creating build/lib.linux-x86_64-3.5/psycopg2\r\n  copying lib/errorcodes.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n  copying lib/_json.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n  copying lib/psycopg1.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n  copying lib/__init__.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n  copying lib/_range.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n  copying lib/extensions.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n  copying lib/extras.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n  copying lib/pool.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n  copying lib/tz.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n  creating build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_bugX000.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_notify.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_connection.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_cursor.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_with.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/testutils.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_green.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/__init__.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_module.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_types_extras.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_copy.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/dbapi20_tpc.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_lobject.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_dates.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_cancel.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_transaction.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_types_basic.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_extras_dictcursor.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_quote.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/testconfig.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_async.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_bug_gc.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/dbapi20.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  copying tests/test_errcodes.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n  Skipping optional fixer: buffer\r\n  Skipping optional fixer: idioms\r\n  Skipping optional fixer: set_literal\r\n  Skipping optional fixer: ws_comma\r\n  running build_ext\r\n  building 'psycopg2._psycopg' extension\r\n  creating build/temp.linux-x86_64-3.5\r\n  creating build/temp.linux-x86_64-3.5/psycopg\r\n  gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION=\"2.6.2 (dt dec pq3 ext lo64)\" -DPG_VERSION_HEX=0x090505 -DHAVE_LO64=1 -I/usr/include/python3.5m -I. -I/usr/include -I/usr/include/pgsql/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.5/psycopg/psycopgmodule.o -Wdeclaration-after-statement\r\n  In file included from psycopg/psycopgmodule.c:27:0:\r\n  ./psycopg/psycopg.h:30:20: fatal error: Python.h: No such file or directory\r\n   #include <Python.h>\r\n                      ^\r\n  compilation terminated.\r\n  error: command 'gcc' failed with exit status 1\r\n  \r\n  ----------------------------------------\r\n  Running setup.py clean for psycopg2\r\nFailed to build psycopg2\r\nInstalling collected packages: psycopg2\r\n  Running setup.py install for psycopg2: started\r\n    Running setup.py install for psycopg2: finished with status 'error'\r\n    Complete output from command /home/fsantos/e-commerce/venv/bin/python3.5 -u -c \"import setuptools, tokenize;__file__='/tmp/pip-build-hwn1m3zc/psycopg2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))\" install --record /tmp/pip-1_oxrebj-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/fsantos/e-commerce/venv/include/site/python3.5/psycopg2:\r\n    running install\r\n    running build\r\n    running build_py\r\n    creating build\r\n    creating build/lib.linux-x86_64-3.5\r\n    creating build/lib.linux-x86_64-3.5/psycopg2\r\n    copying lib/errorcodes.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n    copying lib/_json.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n    copying lib/psycopg1.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n    copying lib/__init__.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n    copying lib/_range.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n    copying lib/extensions.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n    copying lib/extras.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n    copying lib/pool.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n    copying lib/tz.py -> build/lib.linux-x86_64-3.5/psycopg2\r\n    creating build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_bugX000.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_notify.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_connection.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_cursor.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_with.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/testutils.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_green.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/__init__.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_module.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_psycopg2_dbapi20.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_types_extras.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_copy.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/dbapi20_tpc.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_lobject.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_dates.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_cancel.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_transaction.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_types_basic.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_extras_dictcursor.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_quote.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/testconfig.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_async.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_bug_gc.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/dbapi20.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    copying tests/test_errcodes.py -> build/lib.linux-x86_64-3.5/psycopg2/tests\r\n    Skipping optional fixer: buffer\r\n    Skipping optional fixer: idioms\r\n    Skipping optional fixer: set_literal\r\n    Skipping optional fixer: ws_comma\r\n    running build_ext\r\n    building 'psycopg2._psycopg' extension\r\n    creating build/temp.linux-x86_64-3.5\r\n    creating build/temp.linux-x86_64-3.5/psycopg\r\n    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION=\"2.6.2 (dt dec pq3 ext lo64)\" -DPG_VERSION_HEX=0x090505 -DHAVE_LO64=1 -I/usr/include/python3.5m -I. -I/usr/include -I/usr/include/pgsql/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.5/psycopg/psycopgmodule.o -Wdeclaration-after-statement\r\n    In file included from psycopg/psycopgmodule.c:27:0:\r\n    ./psycopg/psycopg.h:30:20: fatal error: Python.h: No such file or directory\r\n     #include <Python.h>\r\n                        ^\r\n    compilation terminated.\r\n    error: command 'gcc' failed with exit status 1\r\n    \r\n    ----------------------------------------\r\nNone, of the previous solutions fix the issue"}}
{"actor":{"display_login":"dvarrazzo"}}