[Tutor] Python gmail script for conky

Don Jennings dfjennings at gmail.com
Sun Jan 20 03:33:16 CET 2013


On Jan 19, 2013, at 8:15 PM, tutor-request at python.org wrote:

> Date: Sat, 19 Jan 2013 18:27:46 -0500
> From: Polo Heysquierdo <brownboyrx at gmail.com>
> To: Tutor at python.org
> Subject: [Tutor] Python gmail script for conky
> Message-ID:
> 	<CAGkuPx3jV6EEGrmFwR1p7aG_sSEEhRiH9D3c4pJiEw58VDnuKQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> I'm getting the following error on my script for conky.
> 
> "Traceback (most recent call last):
>  File "/home/troll/.gmail/gmail.py", line 1, in <module>
>    import urllib.request
> ImportError: No module named request"

(Probably someone will beat me to the punch since I get the digest of this list, still…)

Most likely, you are using python 2 to run python 3 code as the urllib.request is available in python 3 (see note at top of this page [1]).

Take care,
Don

[1] http://docs.python.org/2/library/urllib.html


More information about the Tutor mailing list