Skip to content
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

InstallationError (cannot determine archive format) when installing Git repo via HTTPS #6358

Open
dmtucker opened this issue Mar 12, 2025 · 0 comments

Comments

@dmtucker
Copy link

$ pipenv --version
pipenv, version 2024.4.1
$ pipenv install 'https://github.com/realpython/pytest-mypy.git'
Creating a virtualenv for this project
Pipfile: /tmp/tmp.BjjghmUTjF/Pipfile
Using default python from /home/dtux/.local/pipx/venvs/pipenv/bin/python3.10.12 to create virtualenv...
⠸ Creating virtual environment...created virtual environment CPython3.10.12.final.0-64 in 208ms
  creator CPython3Posix(dest=/home/dtux/.local/share/virtualenvs/tmp.BjjghmUTjF-ntNLnU4o, clear=False, no_vcs_ignore=False, 
global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, 
app_data_dir=/home/dtux/.local/share/virtualenv)
    added seed packages: pip==24.3.1, setuptools==75.6.0, wheel==0.45.1
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment!
Virtualenv location: /home/dtux/.local/share/virtualenvs/tmp.BjjghmUTjF-ntNLnU4o
Creating a Pipfile for this project...
Pipfile.lock not found, creating...
Locking [packages] dependencies...
Locking [dev-packages] dependencies...
Updated Pipfile.lock (fedbd2ab7afd84cf16f128af0619749267b62277b4cb6989ef16d4bef6e4eef2)!
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
Installing https://github.com/realpython/pytest-mypy.git...
INFO:pipenv.patched.pip._internal.network.download:Downloading https://github.com/realpython/pytest-mypy.git
CRITICAL:pipenv.patched.pip._internal.utils.unpacking:Cannot unpack file /tmp/pip-unpack-h3habtkb/pytest-mypy.git (downloaded from /tmp/tmpxi3upo_q, content-type: text/html; charset=utf-8); cannot detect archive format
Traceback (most recent call last):
  File "/home/dtux/.local/bin/pipenv", line 8, in <module>
    sys.exit(cli())
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/cli/options.py", line 52, in main
    return super().main(*args, **kwargs, windows_expand_args=False)
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/vendor/click/decorators.py", line 92, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/vendor/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/cli/command.py", line 207, in install
    do_install(
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/routines/install.py", line 310, in do_install
    new_packages, _ = handle_new_packages(
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/routines/install.py", line 82, in handle_new_packages
    added, cat, normalized_name = project.add_package_to_pipfile(
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/project.py", line 1222, in add_package_to_pipfile
    name, normalized_name, entry = self.generate_package_pipfile_entry(
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/project.py", line 1161, in generate_package_pipfile_entry
    req_name = determine_package_name(package)
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/utils/dependencies.py", line 788, in determine_package_name
    local_file = unpack_url(
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/utils/requirementslib.py", line 679, in unpack_url
    unpack_file(file.path, location, file.content_type)
  File "/home/dtux/.local/pipx/venvs/pipenv/lib/python3.10/site-packages/pipenv/patched/pip/_internal/utils/unpacking.py", line 337, in unpack_file
    raise InstallationError(f"Cannot determine archive format of {location}")
pipenv.patched.pip._internal.exceptions.InstallationError: Cannot determine archive format of /tmp/tmpxi3upo_q
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant