InstallationError with { path = ".", editable = true }
See original GitHub issueI used to be able to include my own package in the Pipfile
using { path = ".", editable = true }
, but now I’m getting this error:
pip9.exceptions.InstallationError: No files/directories in /private/tmp/demo (from )
I installed pipenv
with Homebrew (pipenv, version 11.7.2
), so I can’t paste the results of python -m pipenv.help
.
This was working with the version available last week on Homebrew.
Expected result
Pipfile.lock
is generated.
Actual result
$ pipenv install
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
ellar/pipenv/11.7.2/libexec/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 200, in _resolve_one_round
for dep in self._iter_dependencies(best_match):
File "/usr/local/Cellar/pipenv/11.7.2/libexec/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/resolver.py", line 275, in _iter_dependencies
for dependency in self.repository.get_dependencies(ireq):
File "/usr/local/Cellar/pipenv/11.7.2/libexec/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/repositories/pypi.py", line 173, in get_dependencies
legacy_results = self.get_legacy_dependencies(ireq)
File "/usr/local/Cellar/pipenv/11.7.2/libexec/lib/python3.6/site-packages/pipenv/../pipenv/patched/piptools/repositories/pypi.py", line 192, in get_legacy_dependencies
dist = ireq.get_dist()
File "/usr/local/Cellar/pipenv/11.7.2/libexec/lib/python3.6/site-packages/pipenv/../pipenv/vendor/pip9/req/req_install.py", line 1069, in get_dist
egg_info = self.egg_info_path('').rstrip('/')
File "/usr/local/Cellar/pipenv/11.7.2/libexec/lib/python3.6/site-packages/pipenv/../pipenv/vendor/pip9/req/req_install.py", line 515, in egg_info_path
'No files/directories in %s (from %s)' % (base, filename)
pip9.exceptions.InstallationError: No files/directories in /private/tmp/demo (from )
Steps to replicate
$ tree
.
├── Pipfile
├── foo
│ └── __init__.py
└── setup.py
1 directory, 3 files
where Pipfile
:
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[requires]
python_version = "3.6"
[packages]
foo = { path = ".", editable = true }
and setup.py
:
import setuptools
setuptools.setup(
packages=setuptools.find_packages(),
)
Issue Analytics
- State:
- Created 6 years ago
- Comments:19 (18 by maintainers)
Top Results From Across the Web
pipfile editable package location - python - Stack Overflow
In order to be able install a path as editable, it needs to be a package and that means you need to have...
Read more >MSI installation error 1603 - Windows Server - Microsoft Learn
... this error message if any one of the following conditions is true: ... In the Permissions tab, select the SYSTEM entry and...
Read more >https://dh8.kr/workshop/pythondata/Python34/Lib/si...
_is_bundle = None # True if the editable should be updated: self.update ... if not is_installable_dir(path): raise InstallationError("Directory %r is not ...
Read more >[Example code]-pipfile editable package location
In order to be able install a path as editable, it needs to be a package and that means you need to have...
Read more >venv/lib/python3.7/site-packages/pip-19.0.3-py3.7.egg/pip/_internal ...
_internal.exceptions import InstallationError ... 'in editable mode: {}'.format(os.path.abspath(url_no_extras)) ... The actual constructors follow ----.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for that info. It seems that in order to use the name I want in the
Pipfile
I now need to runpipenv run python setup.py develop
before running anypipenv
commands.I ran into this as well on
11.9.0
. Moving the editable requirement to the first in the list of[packages]
seems to have resolved it.