Skip to main content
Solved

Error executing string `import urllib

  • June 19, 2015
  • 2 replies
  • 49 views

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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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