Skip to main content
Solved

Error executing string `import urllib


Hi,

 

I have an FME workspace that includes a Python start-up script used to download some zip files from a website:

 

 

import urllib

 

# Get Mining tenement zip files.

 

urllib.urlretrieve ("http://geodownloads.dmp.wa.gov.au/datacentre/download/mineral_inf/tenements.zip", save_path + "tenements.zip")

 

 

The script works fine in FME Desktop, but fails when run by FME Server with the error:

 

 

Error executing string `import urllib

 

 

Any ideas what the problem could be?

 

 

Thanks

 

Dave LL

Best answer by david_r

Hi

 

 

urllib is part of the Python standard library, I would be surprised if that was the problem. I suspect something else is the problem. A frequent issue is by default FME Server has no rights on the local network shares, could that be the issue here? Also, have you verified that the FME Server machine has internet access?

 

 

What is the complete error in the FME log?

 

 

David
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • Best Answer
  • June 19, 2015
Hi

 

 

urllib is part of the Python standard library, I would be surprised if that was the problem. I suspect something else is the problem. A frequent issue is by default FME Server has no rights on the local network shares, could that be the issue here? Also, have you verified that the FME Server machine has internet access?

 

 

What is the complete error in the FME log?

 

 

David

  • Author
  • June 19, 2015
Hi,

 

Thanks for the quick reply! Actually, your reply clued me in on the problem - local network shares. Resolved.

 

Thanks for you help.

 

Dave LL

 

 

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings