Doug<br>Here's what I did:<br><br><span style="color: rgb(51, 51, 255);">[root@mythtv ~]# python26</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">Python 2.6 (r26:66714, Feb 13 2009, 15:01:48)</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">Type "help", "copyright", "credits" or "license" for more information.</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">>>> import urlib</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">Traceback (most recent call last):</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> File "<stdin>", line 1, in <module></span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">ImportError: No module named urlib</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">>>> import urlib2</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">Traceback (most recent call last):</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> File "<stdin>", line 1, in <module></span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">ImportError: No module named urlib2</span><br>
>>><br><br>How do I import urlib/urlib2 here?<br><br>Thanks,<br>Ash<br><br><div class="gmail_quote">On Sun, May 30, 2010 at 3:35 PM, Doug Vaughan <span dir="ltr"><<a href="mailto:r.d.vaughan@rogers.com">r.d.vaughan@rogers.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Ash,<br>
I am grasping at straws but please check your python versions of urllib and urllib2. Here is an example of how to do it and the versions I am using. If your installed versions are old then you may want to update them,<br>
<br>
> python<br>
Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)<br>
[GCC 4.4.1] on linux2<div class="im"><br>
Type "help", "copyright", "credits" or "license" for more information.<br></div>
>>> import urllib<br>
>>> urllib.__version__<br>
'1.17'<br>
>>> import urllib2<br>
>>> urllib2.__version__<br>
'2.6'<br>
<br>
CTRL-D to exit python<div><div></div><div class="h5"><br>
<br>
Doug<br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br>