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

ImportError: No module named git #4

Closed
jrivard opened this issue Jan 2, 2017 · 5 comments
Closed

ImportError: No module named git #4

jrivard opened this issue Jan 2, 2017 · 5 comments

Comments

@jrivard
Copy link

jrivard commented Jan 2, 2017

Running on OpenSUSE Leap 42.2.

pip install -r requirements.txt

Requirement already satisfied: GitPython==2.1.1 in /usr/lib/python3.4/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied: gitdb2>=2.0.0 in /usr/lib/python3.4/site-packages (from GitPython==2.1.1->-r requirements.txt (line 1))
Requirement already satisfied: smmap2>=2.0.0 in /usr/lib/python3.4/site-packages (from gitdb2>=2.0.0->GitPython==2.1.1->-r requirements.txt (line 1))

python truffleHog.py https://github.com/dxa4481/truffleHog.git

Traceback (most recent call last):
File "truffleHog.py", line 2, in
from git import Repo
ImportError: No module named git

@sseering
Copy link

sseering commented Jan 3, 2017

see #3

@dxa4481
Copy link
Collaborator

dxa4481 commented Jan 5, 2017

It looks like your dependancies aren't getting installed correctly for the version of python you're using. Make sure the version of pip and python are aligned, then you can also try uninstalling GitPython and reinstalling it.

@jrivard
Copy link
Author

jrivard commented Jan 7, 2017

Bummer, guess one needs to know how to manage the python runtime to get this working. I don't so I give up for now.

@jrivard jrivard closed this as completed Jan 7, 2017
@rupsray
Copy link

rupsray commented May 7, 2018

@jrivard to check both Python and pip are aligned check their versions.
python pip alignment
As you can see in the above image, pip and python3 are pointing to the same version for me. So I have to use python3 instead of python while performing truffleHog scan. Check this document for installation.

@dxa4481
Copy link
Collaborator

dxa4481 commented May 7, 2018

If nothing else you can try the docker container

mcastorina added a commit that referenced this issue Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants