On Mon, Nov 9, 2009 at 6:29 PM, Penn <powderd...@gmail.com> wrote:
> I just installed PyDev into Eclipse using the 'update' method and did
> the standard installation.  I allowed it to Auto Configure itself and
> ran a "Hello World" module to make sure I was in the ballpark.
>
> I got an starting module up and have run "Hello World" but now am
> stuck on getting urlopen to import from urllib2 for the following
> example.
>
> from urllib2 import *    # doesn't give me an error
> ur = urlopen("http://www.daniweb.com/forums/thread161312.html";) #
> gives me Undefined Variable: urlopen
>
> so I tried just
>
> import urllib2        # Eclipse gives "Unresolved Import"
>
> Is urllib2 not on my path?  Isn't urllib2 in the standard installation
> and shouldn't that automatically be on my path?  If not, how can I get
> it on the path?
>
> ThankS!!

This sounds more like a PyDev and/or Eclipse problem than an urllib2 problem. :)

One thing you can check: open the "raw" python interpreter outside of
Eclipse and try importing urllib2 there.  You might also try the
interpreter interface within Eclipse (if it provides one.)

HTH
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to