Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does a "Could not find .egg-info directory in install record" from pip mean?

Since updating the the most recent setuptools (6.0.1) I get an warning (yellow)

Could not find .egg-info directory in install record for ...

for all the packages I've updated. For example, when updating Twisted I get

Could not find .egg-info directory in install record for Twisted from https://pypi.python.org/packages/source/T/Twisted/Twisted-14.0.2.tar.bz2#md5=.... in /Library/Python/2.7/site-packages

The package updates seems to succeed, however.

What does this warning mean? What can I do to respond to it?

like image 237
orome Avatar asked Sep 29 '14 02:09

orome


People also ask

What is the egg info directory?

egg-info format: a file or directory placed adjacent to the project's code and resources, that directly contains the project's metadata.

What is egg file in Python?

egg file is a distribution format for Python packages. It's just an alternative to a source code distribution or Windows exe . But note that for pure Python , the . egg file is completely cross-platform.

Should egg info be committed?

Rule of thumb: do not commit generated information. Check in the source only. If you are using eggs from VC, then you have already installed these as development eggs; just re-run setup.py after updating the working copy.


2 Answers

For me upgrading setuptools did not work, what did work was updating pip:

pip install --upgrade setuptools pip

(I've included setuptools too to handle both problems)

like image 141
Antony Hatchkins Avatar answered Oct 27 '22 13:10

Antony Hatchkins


This appears to have been a bug introduced in 6.0.1, fixed in setuptools 6.0.2.

like image 22
orome Avatar answered Oct 27 '22 13:10

orome