Forums

Cannot run simple python script

Hi,

I'm trying to run a Python script (very simple file) but it does not work after doing "python2.7 myscript.py"

I just uploaded the script directly to my computer to the main folder (where the Dropbox folder is) and tried to run it from a bash console. Is there anything else I should be doing?

Thanks a lot!

That should work. What's the error message?

Whops, my fault, it seems I can't use urlib with a free account so the script was just terminating with no result.

I think you can use urllib - but only with whitelisted sites

@Manuito Maybe add some try / except with prints? ;---)

@Manuito, @rcs1000 is correct -- you can use urllib with a free account but we limit the sites you can access to a whitelist to reduce the possibility of people using us as a launching point for hacking. The list of whitelisted sites is here.

I saw that about the limitation with urllib...

I decided to upgrade the account and now it's working perfectly, thank you once again!

Awesome, thanks!