This project is archived and is in readonly mode.

#186 ✓invalid
Psycopg website

Error on install psycopg2 in OS X 10.9 mavericks

Reported by Psycopg website | October 16th, 2013 @ 02:50 AM

Submitted by: Thiago Avelino thiago@avelino.xxx


/usr/local/bin/pip run on Tue Oct 15 23:19:25 2013 Downloading/unpacking psycopg2

Getting page https://pypi.python.org/simple/psycopg2/ URLs to search for versions for psycopg2: * https://pypi.python.org/simple/psycopg2/ Getting page http://initd.org/projects/psycopg2 Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.10.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.11.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.12.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.13.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.14.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.2.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.3.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.4.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.5.1.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.6.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.7.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.8.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-2/psycopg2-2.2.0.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-2/psycopg2-2.2.1.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-2/psycopg2-2.2.2.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-3/psycopg2-2.3.0.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-3/psycopg2-2.3.1.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-3/psycopg2-2.3.2.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Could not fetch URL http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.1.tar.gz (from https://pypi.python.org/simple/psycopg2/): timed out Will skip URL http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.1.tar.gz when looking for download links for psycopg2 Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.2.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.3.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.4.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.6.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-5/psycopg2-2.5.1.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Skipping page http://initd.org/psycopg/tarballs/PSYCOPG-2-5/psycopg2-2.5.tar.gz (from https://pypi.python.org/simple/psycopg2/) because of Content-Type: application/x-gzip Analyzing links from page https://pypi.python.org/simple/psycopg2/ Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.0.10.... (from https://pypi.python.org/simple/psycopg2/), version: 2.0.10 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.0.11.... (from https://pypi.python.org/simple/psycopg2/), version: 2.0.11 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.0.12.... (from https://pypi.python.org/simple/psycopg2/), version: 2.0.12 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.0.13.... (from https://pypi.python.org/simple/psycopg2/), version: 2.0.13 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.0.14.... (from https://pypi.python.org/simple/psycopg2/), version: 2.0.14 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.2.0.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.2.0 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.2.1.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.2.1 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.2.2.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.2.2 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.3.0.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.3.0 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.3.1.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.3.1 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.3.2.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.3.2 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.1.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.4.1 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.2.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.4.2 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.3.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.4.3 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.4.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.4.4 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.5.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.4.5 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.6.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.4.6 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.tar... (from https://pypi.python.org/simple/psycopg2/), version: 2.4 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.5.1.t... (from https://pypi.python.org/simple/psycopg2/), version: 2.5.1 Found link https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.5.tar... (from https://pypi.python.org/simple/psycopg2/), version: 2.5 Skipping link http://initd.org/projects/psycopg2 (from https://pypi.python.org/simple/psycopg2/); not a file Skipping link http://initd.org/psycopg/ (from https://pypi.python.org/simple/psycopg2/); not a file Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.10.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.0.10 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.11.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.0.11 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.12.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.0.12 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.13.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.0.13 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.14.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.0.14 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.2.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.0.2 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.3.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.0.3 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.4.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.0.4 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.5.1.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.0.5.1 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.6.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.0.6 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.7.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.0.7 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-0/psycopg2-2.0.8.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.0.8 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-2/psycopg2-2.2.0.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.2.0 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-2/psycopg2-2.2.1.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.2.1 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-2/psycopg2-2.2.2.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.2.2 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-3/psycopg2-2.3.0.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.3.0 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-3/psycopg2-2.3.1.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.3.1 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-3/psycopg2-2.3.2.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.3.2 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.1.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.4.1 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.2.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.4.2 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.3.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.4.3 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.4.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.4.4 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.4.5 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.6.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.4.6 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.4 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-5/psycopg2-2.5.1.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.5.1 Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-5/psycopg2-2.5.tar.gz (from https://pypi.python.org/simple/psycopg2/), version: 2.5 Analyzing links from page http://initd.org/psycopg/ Skipping link http://initd.org/psycopg/download/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/install/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/docs/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/articles/tag/news/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/articles/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/development/ (from http://initd.org/psycopg/); not a file Skipping link http://www.postgresql.org/ (from http://initd.org/psycopg/); not a file Skipping link http://www.python.org/ (from http://initd.org/psycopg/); not a file Skipping link http://www.python.org/dev/peps/pep-0249/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/license/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/features/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/docs/faq.html (from http://initd.org/psycopg/); unknown archive format: .html Skipping link http://initd.org/psycopg/articles/2013/06/23/psycopg-251-released/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/articles/author/piro/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/articles/tag/release/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/articles/2013/04/07/psycopg-25-released/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/articles/2012/12/12/psycopg-246-released/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/articles/2012/10/01/prepared-statements-ps... (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/articles/2012/03/29/psycopg-245-released/ (from http://initd.org/psycopg/); not a file Skipping link http://www.psycopg.org/ (from http://initd.org/psycopg/); not a file Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-5/psycopg2-2.5.1.tar.gz (from http://initd.org/psycopg/), version: 2.5.1 Skipping link http://www.stickpeople.com/projects/python/win-psycopg/ (from http://initd.org/psycopg/); not a file Skipping link http://initd.org/psycopg/tracker/ (from http://initd.org/psycopg/); not a file Skipping link http://mail.postgresql.org/mj/mj_wwwusr/domain=postgresql.org?func=... (from http://initd.org/psycopg/); unknown archive format: .org Skipping link http://twitter.com/psycopg (from http://initd.org/psycopg/); not a file Skipping link http://search.twitter.com/search?q=%23psycopg2 (from http://initd.org/psycopg/); not a file Skipping link http://search.twitter.com/search?q=%23GitHub (from http://initd.org/psycopg/); not a file Skipping link https://t.co/sCAIy61t (from http://initd.org/psycopg/); not a file Skipping link http://twitter.com/mikeyk (from http://initd.org/psycopg/); not a file Skipping link http://t.co/gc76xQpw (from http://initd.org/psycopg/); not a file Skipping link http://twitter.com/mancho_z (from http://initd.org/psycopg/); not a file Skipping link http://twitter.com/fogzot (from http://initd.org/psycopg/); not a file Skipping link http://twitter.com/instagram (from http://initd.org/psycopg/); not a file Analyzing links from page http://initd.org/psycopg/ Found link http://initd.org/psycopg/tarballs/PSYCOPG-2-5/psycopg2-2.5.1.tar.gz (from http://initd.org/psycopg/), version: 2.5.1 Using version 2.5.1 (newest of versions: 2.5.1, 2.5.1, 2.5.1, 2.5.1, 2.5, 2.5, 2.4.6, 2.4.6, 2.4.5, 2.4.5, 2.4.4, 2.4.4, 2.4.3, 2.4.3, 2.4.2, 2.4.2, 2.4.1, 2.4.1, 2.4, 2.4, 2.3.2, 2.3.2, 2.3.1, 2.3.1, 2.3.0, 2.3.0, 2.2.2, 2.2.2, 2.2.1, 2.2.1, 2.2.0, 2.2.0, 2.0.14, 2.0.14, 2.0.13, 2.0.13, 2.0.12, 2.0.12, 2.0.11, 2.0.11, 2.0.10, 2.0.10, 2.0.8, 2.0.7, 2.0.6, 2.0.5.1, 2.0.4, 2.0.3, 2.0.2) Downloading from URL https://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.5.1.t... (from https://pypi.python.org/simple/psycopg2/) Running setup.py egg_info for package psycopg2

running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found


reading manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'

Source in /private/var/folders/z5/k0vljz116ql8wtvjsj65d_n80000gn/T/pip_build_avelino/psycopg2 has version 2.5.1, which satisfies requirement psycopg2 Installing collected packages: psycopg2

Running setup.py install for psycopg2

Running command /usr/local/opt/python/bin/python2.7 -c "import setuptools;__file__='/private/var/folders/z5/k0vljz116ql8wtvjsj65d_n80000gn/T/pip_build_avelino/psycopg2/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/z5/k0vljz116ql8wtvjsj65d_n80000gn/T/pip-RqFWy_-record/install-record.txt --single-version-externally-managed
running install
running build
running build_py
creating build
creating build/lib.macosx-10.8-x86_64-2.7
creating build/lib.macosx-10.8-x86_64-2.7/psycopg2
copying lib/__init__.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2
copying lib/_json.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2
copying lib/_range.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2
copying lib/errorcodes.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2
copying lib/extensions.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2
copying lib/extras.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2
copying lib/pool.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2
copying lib/psycopg1.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2
copying lib/tz.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2
creating build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/__init__.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/dbapi20.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/dbapi20_tpc.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_async.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_bug_gc.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_bugX000.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_cancel.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_connection.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_copy.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_cursor.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_dates.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_extras_dictcursor.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_green.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_lobject.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_module.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_notify.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_psycopg2_dbapi20.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_quote.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_transaction.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_types_basic.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_types_extras.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/test_with.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/testconfig.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
copying tests/testutils.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests
running build_ext
building 'psycopg2._psycopg' extension

creating build/temp.macosx-10.8-x86_64-2.7
creating build/temp.macosx-10.8-x86_64-2.7/psycopg
cc -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.5.1 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x090204 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/usr/local/Cellar/postgresql/9.2.4/include -I/usr/local/Cellar/postgresql/9.2.4/include/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.8-x86_64-2.7/psycopg/psycopgmodule.o

In file included from psycopg/psycopgmodule.c:38:

./psycopg/error.h:32:5: error: unknown type name 'PyBaseExceptionObject'

    PyBaseExceptionObject exc;

    ^

1 error generated.

error: command 'cc' failed with exit status 1

Complete output from command /usr/local/opt/python/bin/python2.7 -c "import setuptools;__file__='/private/var/folders/z5/k0vljz116ql8wtvjsj65d_n80000gn/T/pip_build_avelino/psycopg2/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/z5/k0vljz116ql8wtvjsj65d_n80000gn/T/pip-RqFWy_-record/install-record.txt --single-version-externally-managed:

running install

running build

running build_py

creating build

creating build/lib.macosx-10.8-x86_64-2.7

creating build/lib.macosx-10.8-x86_64-2.7/psycopg2

copying lib/__init__.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2

copying lib/_json.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2

copying lib/_range.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2

copying lib/errorcodes.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2

copying lib/extensions.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2

copying lib/extras.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2

copying lib/pool.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2

copying lib/psycopg1.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2

copying lib/tz.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2

creating build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/__init__.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/dbapi20.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/dbapi20_tpc.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_async.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_bug_gc.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_bugX000.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_cancel.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_connection.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_copy.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_cursor.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_dates.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_extras_dictcursor.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_green.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_lobject.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_module.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_notify.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_psycopg2_dbapi20.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_quote.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_transaction.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_types_basic.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_types_extras.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/test_with.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/testconfig.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

copying tests/testutils.py -> build/lib.macosx-10.8-x86_64-2.7/psycopg2/tests

running build_ext

building 'psycopg2._psycopg' extension

creating build/temp.macosx-10.8-x86_64-2.7

creating build/temp.macosx-10.8-x86_64-2.7/psycopg

cc -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch x86_64 -DPSYCOPG_DEFAULT_PYDATETIME=1 -DPSYCOPG_VERSION="2.5.1 (dt dec pq3 ext)" -DPG_VERSION_HEX=0x090204 -DPSYCOPG_EXTENSIONS=1 -DPSYCOPG_NEW_BOOLEAN=1 -DHAVE_PQFREEMEM=1 -I/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I. -I/usr/local/Cellar/postgresql/9.2.4/include -I/usr/local/Cellar/postgresql/9.2.4/include/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.8-x86_64-2.7/psycopg/psycopgmodule.o

In file included from psycopg/psycopgmodule.c:38:

./psycopg/error.h:32:5: error: unknown type name 'PyBaseExceptionObject'

PyBaseExceptionObject exc;

^

1 error generated.

error: command 'cc' failed with exit status 1


Cleaning up...

Removing temporary dir /private/var/folders/z5/k0vljz116ql8wtvjsj65d_n80000gn/T/pip_build_avelino... Command /usr/local/opt/python/bin/python2.7 -c "import setuptools;__file__='/private/var/folders/z5/k0vljz116ql8wtvjsj65d_n80000gn/T/pip_build_avelino/psycopg2/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/z5/k0vljz116ql8wtvjsj65d_n80000gn/T/pip-RqFWy_-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/var/folders/z5/k0vljz116ql8wtvjsj65d_n80000gn/T/pip_build_avelino/psycopg2

Exception information:
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/commands/install.py", line 241, in run requirement_set.install(install_options, global_options, root=options.root_path) File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/req.py", line 1298, in install requirement.install(install_options, global_options, *args, **kwargs) File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/req.py", line 625, in install cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False) File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg/pip/util.py", line 670, in call_subprocess % (command_desc, proc.returncode, cwd)) InstallationError: Command /usr/local/opt/python/bin/python2.7 -c "import setuptools;__file__='/private/var/folders/z5/k0vljz116ql8wtvjsj65d_n80000gn/T/pip_build_avelino/psycopg2/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/z5/k0vljz116ql8wtvjsj65d_n80000gn/T/pip-RqFWy_-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/var/folders/z5/k0vljz116ql8wtvjsj65d_n80000gn/T/pip_build_avelino/psycopg2

Comments and changes to this ticket

  • Daniele Varrazzo

    Daniele Varrazzo October 16th, 2013 @ 09:45 AM

    • State changed from “new” to “invalid”

    PyBaseExceptionObject is included in pyerrors.h. If you can't find this file in /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7, or if you can't find the definition in the file, you have a broken setup.

  • Thiago Avelino

    Thiago Avelino October 16th, 2013 @ 01:39 PM

    File exist "pyerrors.h":
    avelino@avelino ~/projects/y/jpfm/src (master) $ ll /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyerrors.h
    -rw-r--r-- 1 avelino admin 11657 29 Aug 21:06 /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyerrors.h

    On build call file "error.h" not "pyerrors.h":

    ./psycopg/error.h:32:5: error: unknown type name 'PyBaseExceptionObject'

    So he does not think, find "PyBaseExceptionObject" in "./psycopg/error.h" not in "pyerrors.h"

  • Daniele Varrazzo

    Daniele Varrazzo October 16th, 2013 @ 01:49 PM

    Sorry: PyBaseExceptionObject is defined in pyerrors.h.

    $ grep -r PyBaseExceptionObject /usr/include/python2.7
    /usr/include/python2.7/pyerrors.h:} PyBaseExceptionObject;
    

    does yours?

  • Thiago Avelino

    Thiago Avelino October 16th, 2013 @ 03:18 PM

    avelino@avelino ~/Dropbox/avelino/projects/y/jpfm/src (master) $ grep -r PyBaseExceptionObject /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7
    /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyerrors.h 14:} PyBaseExceptionObject;

  • Daniele Varrazzo

    Daniele Varrazzo October 16th, 2013 @ 03:41 PM

    Well, the sequence of import is relatively easy:

    psycopg/error_type.c -> psycopg/psycopg.h -> <Python.h> -> pyerrors.h
    

    it's up to you to understand why this doesn't work on your box, because it does on everybody else's.

    Because you don't get an include error, my wild guess is that you have the includes of a Python < 2.5 on your system (because PyBaseExceptionObject was added in Py 2.5).

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.

Shared Ticket Bins

Tags

Pages