From fd730c8aa1a7bcc877c621740a9ae22a44ce610a Mon Sep 17 00:00:00 2001 From: John Evans Date: Thu, 24 Aug 2017 11:52:12 +0100 Subject: [PATCH] Added populate error workaround I have added the workaround if one receives an error caused by the python interpreter trying to use python3 to execute the populate.py file. As the current docs simply say "python populate.py" this may cause issues where the python executable is symlinked to python3.x. --- documentation/configuration/index.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/documentation/configuration/index.md b/documentation/configuration/index.md index 913ea06..c057a58 100644 --- a/documentation/configuration/index.md +++ b/documentation/configuration/index.md @@ -20,6 +20,23 @@ python populate.py The process is fairly self-explanatory: fill in the requested information, or hit 'Enter' to defer at any step. By default, the resulting profile will be stored as a [YML](http://fdik.org/yml/) file at `~/.jasper/profile.yml`. +If, instead of being asked for your First Name you get the following error: +{% highlight bash %} +Traceback (most recent call last): + File "populate.py", line 146, in + run() + File "populate.py", line 26, in run + simple_request('first_name', 'First name') + File "populate.py", line 19, in simple_request + input = raw_input(cleanVar + ": ") +NameError: name 'raw_input' is not defined +{% endhighlight %} +then simply run +{% highlight bash %} +python2 populate.py +{% endhighlight %} +As this error is caused by python3.x being linked to your python executable and not python2.x + **Important**: _populate.py_ will request your Gmail password. Of course, this is purely optional and will never leave the device. This password allows Jasper to report on incoming emails _and_ send you text or email notifications, but be aware that the password will be stored as plaintext in _profile.yml_. The Gmail _address_ can be entered alone (without a password) and will be used to send you notifications if you configure a Mailgun account, as described below.