question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[pip 1.0] No such file or directory: ... installed-files.txt

See original GitHub issue
# pip --version
pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)

# pip install --install-option='--root=/tmp/ROOT' --install-option='--prefix=/usr' turbogears
Requirement already satisfied (use --upgrade to upgrade): turbogears in /usr/lib/pymodules/python2.7
Requirement already satisfied (use --upgrade to upgrade): CherryPy>=2.3.0,<3.0dev in /usr/lib/pymodules/python2.7 (from turbogears)
Requirement already satisfied (use --upgrade to upgrade): ConfigObj>=4.3.2 in /usr/lib/python2.7/dist-packages (from turbogears)
Requirement already satisfied (use --upgrade to upgrade): FormEncode>=1.2.1 in /usr/lib/python2.7/dist-packages (from turbogears)
Requirement already satisfied (use --upgrade to upgrade): Genshi>=0.4.4 in /usr/lib/python2.7/dist-packages (from turbogears)
Requirement already satisfied (use --upgrade to upgrade): PasteScript[cheetah]>=1.7 in /usr/lib/python2.7/dist-packages (from turbogears)
Requirement already satisfied (use --upgrade to upgrade): PEAK-Rules>=0.5a1.dev-r2555 in /usr/lib/pymodules/python2.7 (from turbogears)
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/lib/python2.7/dist-packages (from turbogears)
Requirement already satisfied (use --upgrade to upgrade): simplejson>=1.9.1 in /usr/lib/python2.7/dist-packages (from turbogears)
Requirement already satisfied (use --upgrade to upgrade): TurboJson>=1.2.1 in /usr/lib/python2.7/dist-packages (from turbogears)
Downloading/unpacking tgMochiKit>=1.4.2 (from turbogears)
  Running setup.py egg_info for package tgMochiKit

Requirement already satisfied (use --upgrade to upgrade): Paste>=1.3 in /usr/lib/python2.7/dist-packages (from PasteScript[cheetah]>=1.7->turbogears)
Requirement already satisfied (use --upgrade to upgrade): PasteDeploy in /usr/lib/python2.7/dist-packages (from PasteScript[cheetah]>=1.7->turbogears)
Requirement already satisfied (use --upgrade to upgrade): BytecodeAssembler>=0.6 in /usr/lib/pymodules/python2.7 (from PEAK-Rules>=0.5a1.dev-r2555->turbogears)
Requirement already satisfied (use --upgrade to upgrade): DecoratorTools>=1.7dev-r2450 in /usr/lib/pymodules/python2.7 (from PEAK-Rules>=0.5a1.dev-r2555->turbogears)
Requirement already satisfied (use --upgrade to upgrade): AddOns>=0.6 in /usr/lib/pymodules/python2.7 (from PEAK-Rules>=0.5a1.dev-r2555->turbogears)
Requirement already satisfied (use --upgrade to upgrade): Extremes>=1.1 in /usr/lib/pymodules/python2.7 (from PEAK-Rules>=0.5a1.dev-r2555->turbogears)
Requirement already satisfied (use --upgrade to upgrade): SymbolType>=1.0 in /usr/lib/pymodules/python2.7 (from BytecodeAssembler>=0.6->PEAK-Rules>=0.5a1.dev-r2555->turbogears)
Installing collected packages: tgMochiKit
  Running setup.py install for tgMochiKit

Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
    self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 228, in run
    requirement_set.install(install_options, global_options)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1093, in install
    requirement.install(install_options, global_options)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 593, in install
    f = open(os.path.join(egg_info_dir, 'installed-files.txt'), 'w')
IOError: [Errno 2] No such file or directory: '/usr/lib/python2.7/site-packages/tgMochiKit-1.4.2-py2.7.egg-info/installed-files.txt'

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
NiklasRosensteincommented, May 19, 2017

I can confirm that the issue is fixed for the above command. Thanks!

Seeing the trivial nature of the changes in #4495, I think it is safe to assume that it is also fixed the general case.

Any idea when Pip 9.0.2 will hit the mark? So I can make my package depend on it. 😃

2reactions
jaracocommented, May 2, 2016

I encountered this issue too, when installing to a --user with PYTHONUSERBASE set to a relative directory.

$ ls env
ls: env: No such file or directory
$ PYTHONUSERBASE=env python2.7 -m pip install --user genshi
Collecting genshi
  Using cached Genshi-0.7.tar.gz
Installing collected packages: genshi
  Running setup.py install for genshi ... done
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 209, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 732, in install
    **kwargs
  File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 928, in install
    with open(inst_files_path, 'w') as f:
IOError: [Errno 2] No such file or directory: 'env/lib/python/site-packages/Genshi-0.7-py2.7.egg-info/installed-files.txt'
$ PYTHONUSERBASE=`pwd`/env python2.7 -m pip install --user genshi
Collecting genshi
  Using cached Genshi-0.7.tar.gz
Installing collected packages: genshi
  Running setup.py install for genshi ... done
Successfully installed genshi
Read more comments on GitHub >

github_iconTop Results From Across the Web

python - pip install misses some generated files when writing ...
txt file generated by pip on an install does not list the generated file. As a result, when I uninstall the distribution, it...
Read more >
pip 1.0 - PyPI
Fixed finding of VCS binaries to not be fooled by same-named directories. ... Put the install record in Package.egg-info/installed-files.txt (previously ...
Read more >
How to Fix Python `No such file or directory` Compiler Errors ...
Missing Compiler Errors. Python packages are typically installed using the pip package manager with the pip install command. pip will print a ...
Read more >
Changelog - pip documentation v22.3.1
When pip is asked to uninstall a project without the dist-info/RECORD file it will no longer traceback with FileNotFoundError, but it will provide...
Read more >
Release Notes — pip 10.0.0.dev0 documentation
(#3651); Add --not-required option to pip list , which lists packages that are not ... Fix regression with non-ascii requirement files on Python...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found