1

I am new to python and I am having trouble downloading a module from GitHub: https://github.com/petercerno/good-morning

I have looked online for solutions, but each solution I try does not work. I have tried:

pip install https://github.com/petercerno/good-morning.git

I get an error that says, "Cannot unpack file" & "Cannot determine archive format." I have no idea why I am getting this error.

miken32
  • 42,008
  • 16
  • 111
  • 154
vdub32
  • 193
  • 1
  • 5
  • 12
  • 1
    the answer depends on what you're going to do with the downloaded code. Are you going to import this code, or run static analysis, or get some git metadata? – Marat May 26 '17 at 17:08
  • 1
    pip will not install from this repo because it is not a proper module (i.e. it doesn't have `setup.py` and other stuffs) – Marat May 26 '17 at 17:09
  • If you tried `pip install`, can we assume you want to USE the module in your python installation? – Alfabravo May 26 '17 at 17:10
  • clone the repo and add it to your python path – scrappedcola May 26 '17 at 17:10
  • so, if it had the setup.py it would of worked with the code I tried? – vdub32 May 26 '17 at 17:45

1 Answers1

3

Just save good_download.py and good_morning.py to the same directory as your Python script, and then import them:

import good_morning
import good_download
# do stuff!
miken32
  • 42,008
  • 16
  • 111
  • 154