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

"pip install git-relevant-history" is not working #5

Closed
Astro03 opened this issue Feb 18, 2022 · 0 comments · Fixed by #7
Closed

"pip install git-relevant-history" is not working #5

Astro03 opened this issue Feb 18, 2022 · 0 comments · Fixed by #7

Comments

@Astro03
Copy link

Astro03 commented Feb 18, 2022

I think there are two issues with installing this with pip.

I think you used the old "gitrelevanthistory.py" to create the package but had it pointing to "main.py".

Repro steps

$ python3 -m venv venv               # create a python virtual environment
$ source venv/bin/activate
$ pip3 install git-relevant-history
$ git-relevant-history --help
Traceback (most recent call last):
  File "/usr/local/bin/git-relevant-history", line 5, in <module>
    from gitrelevanthistory import main
ImportError: cannot import name 'main' from 'gitrelevanthistory' (/OBFUSCATED PATH/gitrelevanthistory/__init__.py)
$ mv /OBFUSCATED PATH/gitrelevanthistory/gitrelevanthistory.py /OBFUSCATED PATH/gitrelevanthistory/main.py
$ git-relevant-history --help
Traceback (most recent call last):
  File "/usr/local/bin/git-relevant-history", line 5, in <module>
    from gitrelevanthistory import main
  File "/OBFUSCATED PATH/gitrelevanthistory/main.py", line 33, in <module>
    from docopt import docopt
ModuleNotFoundError: No module named 'docopt' 
$ pip install docopt
$ git-relevant-history --help         # works

Also, is it typical that we need to install docopt ourselves or should it automatically have been installed?

hterik added a commit to hterik/git-relevant-history that referenced this issue Apr 21, 2022
kwesolowski pushed a commit that referenced this issue Apr 21, 2022
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

Successfully merging a pull request may close this issue.

1 participant