Closed gvwilson closed 6 years ago
requirements.sh includes these lines:
requirements.sh
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 [91mTraceback (most recent call last): File "", line 1, in [0m[91mImportError: No module named git
cc @machow @ncarchedi
@gvwilson taking a look right now
Solved by moving code into its own script and running that script w/ sudo.
sudo
requirements.sh
includes these lines:Runs fine interactively on my Mac, but generates this in the image build log:
cc @machow @ncarchedi