UserWarning: Unbuilt egg for setuptools [unknown version] (/usr/lib/python2.6/dist-packages)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Tahoe-LAFS |
Won't Fix
|
Undecided
|
Unassigned | ||
distribute (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
virtualenv /tmp/sandbox
/tmp/
The first line printed by easy_install is
/tmp/
This warning appears every time I use easy_install or zc.buildout.
I think it's caused by python-setuptools shipping an empty directory /usr/lib/
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: python-setuptools 0.6.10-4ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Thu May 6 17:34:37 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
PackageArchitec
ProcEnviron:
LANGUAGE=
LC_CTYPE=
PATH=(custom, user)
LANG=lt_LT.utf8
SHELL=/bin/bash
SourcePackage: distribute
Changed in tahoe-lafs: | |
status: | Unknown → New |
Changed in distribute (Ubuntu): | |
status: | Confirmed → Won't Fix |
Changed in tahoe-lafs: | |
importance: | Unknown → Undecided |
status: | New → Won't Fix |
Workaround:
sudo rmdir /usr/lib/ python2. 6/dist- packages/ setuptools. egg-info
sudo apt-get install --reinstall python-setuptools
This replaces the empty directory python2. 6/dist- packages/ setuptools. egg-info with a symlink to /usr/share/ pyshared/ setuptools. egg-info which is a file, not a directory.
/usr/lib/
Why did I have an empty directory there? Something left remaining from an older python-setuptools package? This system is not a fresh Lucid install; it was upgraded from Karmic (which did not spew any UserWarnings). AFAIK dpkg itself doesn't handle transitions from directories to symlinks. Shouldn't python-setuptools ship a postinst script to correct this during upgrades?