DHunscher / urlnet-python-library

Automatically exported from code.google.com/p/urlnet-python-library
0 stars 0 forks source link

ImportError: cannot import name Url #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The first example I run python urltree1.py produces...

File "/opt/local/lib/python2.5/site-packages/urlnet/urlutils.py", line 40, in 
<module>
ImportError: cannot import name Url

The code reads, from url import Url, but shouldn't it be ...

from urlnet.url import Url 

..?

Original issue reported on code.google.com by remarkability@gmail.com on 24 Mar 2010 at 12:11

GoogleCodeExporter commented 9 years ago
I moved...

 from urlutils import Sleep 

... to within RetrieveUrlContent() and it fixed it. Is it something to do with 
this?
http://codingrecipes.com/python-importerror-cannot-import-name-x

Original comment by remarkability@gmail.com on 24 Mar 2010 at 12:23

GoogleCodeExporter commented 9 years ago
Sorry for the delayed response. I was out of the country when this message came 
and
without reliable Internet access, and as soon as I got back I started a new job 
and
have been swamped ever since.

I will look into this ASAP and try to figure out what's going on.

-- Dale

Original comment by dalehunscher on 9 Apr 2010 at 2:31

GoogleCodeExporter commented 9 years ago
No probs

Original comment by remarkability@gmail.com on 9 Apr 2010 at 3:02