lvidarte / lai-client

A command line program to store notes and keep them synchronized between multiple computers.
http://lai.nerdlabs.com.ar
GNU General Public License v3.0
4 stars 3 forks source link

pygithub must be optional? #29

Open lvidarte opened 12 years ago

lvidarte commented 12 years ago

If I don't have the pygithub module I get the message:

Traceback (most recent call last):
  File "/home/xleo/src/lvidarte/lai/client/lai/app.py", line 13, in <module>
    from lai import Client, Database, Document
  File "/home/xleo/src/lvidarte/lai/client/lai/__init__.py", line 2, in <module>
    from lai.client import Client
  File "/home/xleo/src/lvidarte/lai/client/lai/client.py", line 8, in <module>
    from lai.gist import Gist, GistException
  File "/home/xleo/src/lvidarte/lai/client/lai/gist.py", line 1, in <module>
    from github import Github, InputFileContent
ImportError: No module named github

I don't know if pygithub must be required. Moreover, the error message is not clear because github module doesn't exist. May be something like that:

"You need the pygithub module"

alfredormz commented 12 years ago

Yes indeed! Like the child's father, I take it. :smirk: