Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186148 - dev-python/pytz-2007f install fails
Summary: dev-python/pytz-2007f install fails
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-21 19:29 UTC by Mark Magiera
Modified: 2008-12-07 03:03 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Magiera 2007-07-21 19:29:09 UTC
pytz is needed as a dependency of matplotlib-0.90.1 but the emerge of pytz fails at when it comes to the installation.

The relevant output:
>>> Install pytz-2007f into /var/tmp/portage/dev-python/pytz-2007f/image/ category dev-python
running install
Checking .pth file support in /var/tmp/portage/dev-python/pytz-2007f/image/usr/lib/python2.4/site-packages/
/usr/bin/python -E -c pass
TEST FAILED: /var/tmp/portage/dev-python/pytz-2007f/image/usr/lib/python2.4/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /var/tmp/portage/dev-python/pytz-2007f/image/usr/lib/python2.4/site-packages/

and your PYTHONPATH environment variable currently contains:

    '/usr/lib64/portage/pym'

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:

  http://peak.telecommunity.com/EasyInstall.html#custom-installation-locations

Please make the appropriate changes for your system and try again.

!!! ERROR: dev-python/pytz-2007f failed.
Call stack:
  ebuild.sh, line 1621:   Called dyn_install
  ebuild.sh, line 1067:   Called qa_call 'src_install'
  ebuild.sh, line 44:   Called src_install
  ebuild.sh, line 1311:   Called distutils_src_install
  distutils.eclass, line 61:   Called die

Reproducible: Always

Steps to Reproduce:
1. emerge pytz
Comment 1 Ali Polatel (RETIRED) gentoo-dev 2007-07-22 03:48:10 UTC
I can't reproduce the problem here. What version of setuptools do you have?
Please post your emerge --info as well.