Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 659630 - dev-python/psycopg-2.7.4 - Error: pg_config executable not found.
Summary: dev-python/psycopg-2.7.4 - Error: pg_config executable not found.
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-30 02:51 UTC by Martin Mokrejš
Modified: 2022-07-10 13:00 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,9.12 KB, text/plain)
2018-07-08 08:33 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2018-06-30 02:51:21 UTC
Hi,
  it seems =dev-db/postgresql-11_beta1 provides now pg_config11 and dev-db/postgresql-9.6.9 provides pg_config96. So dev-python/psycopg should be patched.


>>> Emerging (1 of 2) dev-python/psycopg-2.7.4::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * psycopg2-2.7.4.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking psycopg2-2.7.4.tar.gz to /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work
>>> Source unpacked in /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work
>>> Preparing source in /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4 ...
 * Applying psycopg-2.7.3-avoid-mxdatetime.patch ...                                                                                                               [ ok ]
>>> Source prepared.
>>> Configuring source in /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4 ...
>>> Source configured.
>>> Compiling source in /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4 ...
 * python2_7: running distutils-r1_run_phase python_compile
python2.7 setup.py build
running build
running build_py
creating /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2
copying lib/tz.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2
copying lib/extras.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2
copying lib/errorcodes.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2
copying lib/sql.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2
copying lib/pool.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2
copying lib/_json.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2
copying lib/_range.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2
copying lib/extensions.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2
copying lib/psycopg1.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2
copying lib/__init__.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2
copying lib/_ipaddress.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2
creating /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_copy.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_connection.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_fast_executemany.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_extras_dictcursor.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_cancel.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_notify.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_types_basic.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_async.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_replication.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_with.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_errcodes.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_lobject.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_module.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_bugX000.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_psycopg2_dbapi20.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_async_keyword.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_cursor.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/dbapi20.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/testutils.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_bug_gc.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_ipaddress.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_types_extras.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_transaction.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/dbapi20_tpc.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/__init__.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_quote.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/testconfig.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_green.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_sql.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
copying tests/test_dates.py -> /scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4-python2_7/lib/psycopg2/tests
warning: build_py: byte-compiling is disabled, skipping.

running build_ext

Error: pg_config executable not found.

pg_config is required to build psycopg2 from source.  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'.

If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.

For further information please check the 'doc/src/install.rst' file (also at
<http://initd.org/psycopg/docs/install.html>).

 * ERROR: dev-python/psycopg-2.7.4::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 3980:  Called distutils-r1_src_compile
 *   environment, line 1078:  Called _distutils-r1_run_foreach_impl 'python_compile'
 *   environment, line  391:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 3434:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2589:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2587:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile'
 *   environment, line  728:  Called distutils-r1_run_phase 'python_compile'
 *   environment, line 1071:  Called python_compile
 *   environment, line 3016:  Called distutils-r1_python_compile
 *   environment, line  946:  Called esetup.py 'build'
 *   environment, line 1631:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 * 
 * If you need support, post the output of `emerge --info '=dev-python/psycopg-2.7.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/psycopg-2.7.4::gentoo'`.
 * The complete build log is located at '/scratch/var/tmp/portage/dev-python/psycopg-2.7.4/temp/build.log'.
 * The ebuild environment file is located at '/scratch/var/tmp/portage/dev-python/psycopg-2.7.4/temp/environment'.
 * Working directory: '/scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4'
 * S: '/scratch/var/tmp/portage/dev-python/psycopg-2.7.4/work/psycopg2-2.7.4'
Comment 1 Martin Mokrejš 2018-06-30 02:51:29 UTC
# emerge --info
Portage 2.3.40 (python 2.7.14-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.27-r4, 4.17.3-default-pciehp x86_64)
=================================================================
System uname: Linux-4.17.3-default-pciehp-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.6
KiB Mem:    16365820 total,   8468820 free
KiB Swap:   26853460 total,  26853460 free
Timestamp of repository gentoo: Thu, 28 Jun 2018 07:30:01 +0000
Head commit of repository gentoo: 098ca5346c68b3ca27b520ead5824380755b95c6
sh bash 4.4_p23
ld GNU ld (Gentoo 2.30 p3) 2.30.0
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.9999::gentoo
dev-lang/python:          2.7.14-r2::gentoo, 3.4.6-r1::gentoo, 3.5.5-r1::gentoo, 3.6.5-r1::gentoo
dev-util/cmake:           3.11.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6::gentoo
sys-apps/openrc:          0.36::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15.1-r1::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r3::gentoo
sys-devel/gcc:            4.3.6-r1::gentoo, 4.4.7::gentoo, 4.6.4::gentoo, 4.7.4::gentoo, 4.9.4::gentoo, 5.4.0-r3::gentoo, 6.3.0::gentoo, 7.3.0-r3::gentoo
sys-devel/gcc-config:     1.9.1::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.16-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r4::gentoo
Repositories:

gentoo
    location: /scratch/usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

science
    location: /scratch/mmokrejs/proj/sci
    masters: gentoo
    priority: 0

layman
    location: /var/lib/layman
    masters: gentoo
    priority: 1

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 2

haskell
    location: /var/lib/layman/haskell
    masters: gentoo
    priority: 50

vmware
    location: /var/lib/layman/vmware
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE IBM-J1.6 skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x OPERA-2014 RAR Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.2/conf /usr/share/maven-bin-3.3/conf /var/bind /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize"
DISTDIR="/scratch/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news nostrip parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.wheel.sk/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.web4u.cz/ rsync://gentoo.mirror.dkm.cz/gentoo/ ftp://gentoo.mirror.web4u.cz/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en_GB en cs"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/scratch/var/tmp"
USE="R X acpi alsa amd64 amr apache apache2 asm avx berkdb bluetooth boost bzip2 cairo cgi cli coin consolekit cracklib crypt cryptlib cryptsetup cups cxx dbus device-mapper dhcp directfb dri drm dvd emboss encode fax fbcon ffmpeg flac fontconfig fortran fuse gbm gcrypt gd gdbm geoip geolocation gimp glpk gmp gnutls gpm gps gtk hal hpijs hwdb iconv id3tag imaging innodb inotify java javafx javascript jce jpeg jpg js jscript keymap ladspa lame lapack laptop lcms libnotify libtirpc lm_sensors mad matroska mmx modemmanager modules mp3 multicore multilib multimedia mysql ncurses networkmanager nfs nls nptl nptlonly nscd ntfs ntfsdecrypt ntfsprogs objc ocr ogg opengl openmp pam parport pcre pcre16 pdf pdfimport pdl perl php pkcs11 plplot png policykit polkit postproc postscript ppds ppp pppd pptx python qt3support qt4 qt5 readline rendering resolvconf samba scanner sctp seccomp server session sha512 slideshow sna sndfile sparsehash sqlite sse sse2 sse3 sse4_1 sse4_2 ssh ssh-agent ssl sslv2 sslv3 ssse3 startup-notification suexec svg syslog tcl tcpd threads tiff tk truetype twolame udev unicode upower usb v4l v4l2 vim-syntax vnc wavpack wifi x11 xattr xcb xml xorg xrandr xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="alias authz_host auth_basic auth_digest cgi cgid deflate dir env filter include info mem_cache mime mime_magic negotiation remoteip setenvif status userdir vhost_alias rewrite usertrack cache file_cache disk_cache charset_lite log_config log_forensic" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 navcom ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tnt tripmate tsip ublox fury geostar nmea0183 nmea2000 passthrough" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en-US en en-GB cs" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5 python3_6" RUBY_TARGETS="ruby20 ruby21 ruby23 ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jonas Stein gentoo-dev 2018-07-08 08:19:57 UTC
Please recompile and *attach* the logfiles next time
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
Comment 3 Martin Mokrejš 2018-07-08 08:33:32 UTC
Created attachment 538744 [details]
build.log

Sorry, seems I forgot. Here is the old build.log still laying in /scratch/var/tmp/portage/.
Comment 4 Aaron W. Swenson gentoo-dev 2018-08-14 10:11:48 UTC
dev-db/postgresql has had slot specific executables for a long time.

pg_config should be in your path and is managed by `eselect postgresql`.