datacamp / courses-introduction-to-version-control-with-git

Introduction to Version Control with Git by DataCamp
Other
57 stars 68 forks source link

Attempt to install gitpython in requirements.sh appears to fail #7

Closed gvwilson closed 6 years ago

gvwilson commented 7 years ago

requirements.sh includes these lines:

pip install gitpython
python -c "import git; print('gitpython version', git.__version__)"

Runs fine interactively on my Mac, but generates this in the image build log:

Collecting gitpython
  Downloading GitPython-2.1.5-py2.py3-none-any.whl (443kB)
Collecting gitdb2>=2.0.0 (from gitpython)
  Downloading gitdb2-2.0.2-py2.py3-none-any.whl (63kB)
Collecting smmap2>=2.0.0 (from gitdb2>=2.0.0->gitpython)
  Downloading smmap2-2.0.3-py2.py3-none-any.whl
Installing collected packages: smmap2, gitdb2, gitpython
Successfully installed gitdb2-2.0.2 gitpython-2.1.5 smmap2-2.0.3
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named git

cc @machow @ncarchedi

machow commented 7 years ago

@gvwilson taking a look right now

gvwilson commented 6 years ago

Solved by moving code into its own script and running that script w/ sudo.