-
-
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
Pipfile {git = "file:https:///path/to/git_repo.git"}
resolution failed
#6218
Comments
Steps to replicate are missing. Also, the pipenv --support instructions are not necessary in the post |
@aidencullo , just copy the |
@evan0greenup we don't have that local .git -- Its not clear to me how to test a local .git repository, wouldn't it normally be a local file install? |
@matteius I've been able to reproduce this, with an arbitrary local git repo (system specs at bottom). workaroundHere's a possible workaround for the OP (at least it works on my system): Before running export REPO_PATH="home/myuser/PycharmProjects/typer.git" In the pipfile, use this env var and
In addition, although I'm not sure if this is always required, I also had to remove the existing Pipfile.lock before running More details below. detailsUsing only pip 24.2, the following works without issue: pip install git+file:https:///home/me/my-package Note Afaik, "translating" this to
This is what the OP has, and I run into the same errors as the OP. Trying to understand what's going on, I switched to using an env variable for the path: export ABSOLUTE_PATH_TO_MY_PACKAGE="/home/me/my-package" and in the Pipfle:
For some reason, this does work, and installation succeeds. However, if I add a
again, I see the same error as the OP (or very similar). On a hunch, I tried adding a slash to the Pipfile, as in That works, both with the If we use triple slash in the pipfile (
Showing that the Stepping back again to "pure" pip: Using a
and env variable with Side note; On Windows, if we use the same
In this case pip install only succeeds if the expanded value looks like the following, with triple slash:
system:
|
In my point of view, the feature for checkout and install local And the scheme should not be And |
@evan0greenup There are different types of local installation, both with valid use-cases:
Afaik, pipenv supports both (@matteius please correct me if I'm wrong here) |
I am not sure if #6242 will change the behavior here, since |
I just checked and #6242 does not break the existing assumptions -- but I think the confusion with this ticket is when installing a vcs repository from a local file path, it typically does not end with |
Issue description
When add a local git repository as dependency, it will cause resolution failure.
Here is the
Pipfile
Expected result
Just like how
Cargo.toml
do, it should clone the repository and install the dependency.Actual result
Resolution failure.
Here is the output
Steps to replicate
Provide the steps to replicate (which usually at least includes the commands and the Pipfile).
Please run
$ pipenv --support
, and paste the results here. Don't put backticks (`
) around it! The output already contains Markdown formatting.If you're on macOS, run the following:
If you're on Windows, run the following:
If you're on Linux, run the following:
$ pipenv --support
Pipenv version:
'2024.0.1'
Pipenv location:
'/usr/lib/python3.12/site-packages/pipenv'
Python location:
'/usr/bin/python'
OS Name:
'posix'
User pip version:
'24.0'
user Python installations found:
PEP 508 Information:
System environment variables:
SHELL
SESSION_MANAGER
COLORTERM
CSF_MDTVTexturesDirectory
XDG_MENU_PREFIX
TERM_PROGRAM_VERSION
CSF_DrawPluginDefaults
MATHEMATICA_HOME
CSF_LANGUAGE
SSH_AUTH_SOCK
CSF_MIGRATION_TYPES
MEMORY_PRESSURE_WRITE
DESKTOP_SESSION
CSF_OCCTResourcePath
CSF_STEPDefaults
PWD
XDG_SESSION_DESKTOP
LOGNAME
XDG_SESSION_TYPE
DRAWHOME
SYSTEMD_EXEC_PID
XAUTHORITY
CSF_StandardLiteDefaults
GJS_DEBUG_TOPICS
WINDOWPATH
MOTD_SHOWN
GDM_LANG
HOME
USERNAME
LANG
XDG_CURRENT_DESKTOP
MEMORY_PRESSURE_WATCH
VTE_VERSION
INVOCATION_ID
MANAGERPID
CSF_ShadersDirectory
CSF_EXCEPTION_PROMPT
CSF_XmlOcafResource
GJS_DEBUG_OUTPUT
CSF_SHMessage
XDG_SESSION_CLASS
TERM
USER
CUDA_PATH
CSF_StandardDefaults
CSF_IGESDefaults
DISPLAY
CSF_XCAFDefaults
SHLVL
CSF_PluginDefaults
CSF_TObjMessage
CASROOT
XDG_RUNTIME_DIR
MKLROOT
NVCC_CCBIN
DEBUGINFOD_URLS
JOURNAL_STREAM
CSF_XSMessage
MMGT_CLEAR
PATH
CSF_TObjDefaults
GDMSESSION
DBUS_SESSION_BUS_ADDRESS
HG
MAIL
DRAWDEFAULT
GIO_LAUNCHED_DESKTOP_FILE_PID
GIO_LAUNCHED_DESKTOP_FILE
TERM_PROGRAM
_
PIP_DISABLE_PIP_VERSION_CHECK
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED
Pipenv–specific environment variables:
Debug–specific environment variables:
PATH
:/home/myuser/.pyenv/versions/3.11.9/bin:/home/myuser/.pyenv/versions/3.11.8/bin:~/.local/share/JetBrains/Toolbox/scripts/:/usr/local/bin:/usr/bin:/usr/local/sbin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin
SHELL
:/bin/bash
LANG
:en_US.UTF-8
PWD
:/home/myuser/PycharmProjects/hello_pipenv
Contents of
Pipfile
('/home/myuser/PycharmProjects/hello_pipenv/Pipfile'):Contents of
Pipfile.lock
('/home/myuser/PycharmProjects/hello_pipenv/Pipfile.lock'):The text was updated successfully, but these errors were encountered: