-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipenv tries to include a local file at install #5885
Comments
@jbe-dw I assume you have checked with |
Sure, it happened with the latest first, and I tried several versions to see which version broke our setup. 2023.7.23 works fine. |
Got bitten by this while installing in a project with |
|
Thank you ! |
Hi, same error here on 2023.9.8. For me 2023.6.26 works just fine. |
@korsunov-prosperity Can you check |
hi, new version works. Thanks! |
Issue description
With pipenv >= 2023.8.19,
pipenv install
fails when a file or a folder named after a target package exists in the Pipfile directory with the following messages:ValueError: Could not determine package name from file:///file:///build/molecule
(when it is a folder) /NotADirectoryError: [Errno 20] Not a directory: '/build/molecule'
(when it is a file)As the use case, we run Ansible molecule in a dockerized CI runner to test our roles. The project needs to install Python molecule package, and a molecule folder is required in the role. We need the package and can't rename the folder.
Expected result
pipenv installs molecule.
Actual result
With a file:
With a folder:
Steps to replicate
pipenv install <package>
orpipenv install
with the package listed in the Pipfile$ pipenv --support
Pipenv version:
'2023.8.19'
Pipenv location:
'/usr/local/lib/python3.9/dist-packages/pipenv'
Python location:
'/usr/bin/python3'
OS Name:
'posix'
User pip version:
'23.2.1'
user Python installations found:
PEP 508 Information:
System environment variables:
HOSTNAME
PWD
HOME
TERM
SHLVL
PATH
OLDPWD
_
LC_CTYPE
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD
:/build
Contents of
Pipfile
('/build/Pipfile'):The text was updated successfully, but these errors were encountered: