GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Installing gitdb and gitdb2 simultaneously breaks gitdb package · Issue #908 · gitpython-developers/GitPython

Installing gitdb and gitdb2 simultaneously breaks gitdb package #908

New issue
Copy link
New issue
Copy link
Closed
Closed
Installing gitdb and gitdb2 simultaneously breaks gitdb package#908
Copy link
Labels
acknowledged
Milestone
v3.0.1 - Bugfixes

Description

@arigesher
arigesher
opened on Aug 15, 2019
Issue body actions

The change to requirements.txt in 2e7e82b specifies that both gitdb2 and gitdb be installed. As installation packages they share the same name and step on each other.

This breaks the use of the module like this:

Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gitdb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'gitdb'

Activity

  1. arigesher commented on Aug 15, 2019

    @arigesher
    arigesher
    on Aug 15, 2019
    Author
    More actions

    (This broke our CI/CD system is some difficult to figure out ways)

    Workaround: pin this package with: GitPython<3 in your requirements.txt

  2. Byron
    added this to the v3.0.1 - Bugfixes milestone on Aug 15, 2019
  3. ghost closed this as completedin ca080bbon Aug 15, 2019
  4. Byron commented on Aug 15, 2019

    @Byron
    Byron
    on Aug 15, 2019
    Member
    More actions

    Thanks so much for pointing this out! I have just removed that line, hoping that this will fix the issue. Maybe you can provide the complete line that would pin gitdb to GitPython < 3, maybe that's better.

  5. arigesher commented on Aug 15, 2019

    @arigesher
    arigesher
    on Aug 15, 2019
    Author
    More actions

    The provided line will pin the GitPython package to a version less than 3.0.0:

    GitPython<3
    

    That's a valid requirements.txt entry.

  6. Byron commented on Aug 15, 2019

    @Byron
    Byron
    on Aug 15, 2019
    Member
    More actions

    Thank you. Excuse my ignorance, I don't understand how a line like this would fit into the requirements.txt file of GitPython itself. Isn't that self-referential? I thought there is a way to constrain requirements to certain conditions, like: use gitdb only if GitPython's version is smaller than 3.

    In any case, looking at the fix I made in ca080bb, do you think this will work for you?

  7. arigesher commented on Aug 15, 2019

    @arigesher
    arigesher
    on Aug 15, 2019
    Author
    More actions

    Yes, that totally fixed it.

  8. bors
    added a commit that references this issue on Sep 3, 2019

    Merge #1963

    1095e13
  9. Harmon758 commented on Oct 17, 2019

    @Harmon758
    Harmon758
    on Oct 17, 2019
    Member
    More actions

    @Byron Changes to requirements.txt are not retroactive, so prior releases keep the same dependencies. Either way, I'm not sure why ddt and gitdb were added back in 2e7e82b.

  10. Byron commented on Oct 18, 2019

    @Byron
    Byron
    on Oct 18, 2019
    Member
    More actions

    @Harmon758 If I remember correctly, these two requirements broke someones build in strange ways. I am not knowledgable enough though if it ultimately was a problem with GitPython.
    If you see issues with the current state of requirements.txt, I welcome a PR to fix it. Right now it seems quite minimal.

  11. wip-sync
    added a commit that references this issue on Dec 17, 2019

    py-git: Update to 3.0.5

    4605331
  12. Harmon758
    added
    acknowledged
    on Feb 18, 2020
  13. Shidfar
    added a commit that references this issue on Apr 28, 2025

    Remove dependency on 'gitdb'; fixes gitpython-developers#908

    This issue will close once commit ca080bb is merged into the 'master' branch.
    ca080bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledged

    Type

    No type

    Projects

    No projects

      Milestone

      • v3.0.1 - Bugfixes

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.