marclave / Jasper-Google-Calendar

Jasper Google Calendar Module
12 stars 10 forks source link

Issue on running "python modules/Calendar.py --noauth_local_webserver" #1

Closed dansinclair25 closed 9 years ago

dansinclair25 commented 9 years ago
pi@raspberrypi ~/jasper/client $ python modules/Calendar.py --noauth_local_webserver
Traceback (most recent call last):
  File "modules/Calendar.py", line 7, in <module>
    from app_utils import getTimezone
ImportError: No module named app_utils
dansinclair25 commented 9 years ago

I've tried changing the import to;

from client.app_utils import getTimezone

But still no luck. Any idea?

/Dan

dansinclair25 commented 9 years ago

I worked it out. There were 3 problems.

1) The import line should read from client.app_utils import getTimezone 2) The Client ID in Google needs to be for a native application. 3) running; python modules/Calendar.py --noauth_local_webserver doesn't work. You need to kill Jasper, then restart it manually using ./jasper.py. Once that has restarted and authenticated, restart your Pi so that Jasper starts as it normally would.

Please can you update the README to show these changes?

/Dan

marclave commented 9 years ago

@dansinclair25 about to update, thoughts on the README?

dansinclair25 commented 9 years ago

@marclave The README is much better!! Just a couple more things...

The README says cp Software-Projects/JasperCalendar/Calendar.py <path to ..client/jasper/modules> but Software-Projects is NOT the name of the directory that the gist was cloned to. It should be cp Jasper-Google-Calendar/Calendar.py <path to ..client/jasper.modules>.

You should also change the README to something like the following after you have downloaded and copied the Calendar.py file over to the modules directory;

marclave commented 9 years ago

@dansinclair25 Updated!