hurlbertlab / core-transient

Data and code for NSF funded research on core vs transient species
7 stars 3 forks source link

EcoData Retriever learning curve #11

Closed bsevansunc closed 9 years ago

bsevansunc commented 10 years ago

I've gotten an this error when I try to install my code: "SyntaxError: Non-ASCII character '\xa0' in file /home/bsevans/.retriever/scripts/EDR-retrieve_COM02Q.py on line 10, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details". Looked through the script for a while and couldn't figure out the problem. Can you check through "Retriever-scripts/EDR-retrieve_COM02Q.script" and point me in the right direction? Additionally, in testing out running other scripts from command line (to make sure I was running it correctly), I wasn't able to download the MOM dataset but was able to download the other testers (USDA plants and avian body size).

ethanwhite commented 10 years ago

With respect to the error message, you've got a non-standard space character in the script file, probably by writing it in something other than a plane text editor (e.g., Word of Open Office). Cutting and pasting it into a standard text editor and resaving should probably take care of it. If not just retype the offending line.

I can't replicate the issue with MOM (i.e., it works fine for me). If it still isn't working could you file an issue in the Retriever's queue https://github.com/weecology/retriever/issues?state=open so that I can talk you though some steps to help me figure out what's going on.

Thanks!

bsevansunc commented 10 years ago

I was able to get the script to run just now. I was using gedit when I wrote the script, which should be just plain text. Maybe the problem was because I copied stuff over from the Excel table? Allen and I found that the table was in a strange format. I re-wrote it in Notepad++ and it ran fine. I'll check soon (but not tonight) re the MOM dataset.

ethanwhite commented 9 years ago

Is everything working well on this end now? If so you can go ahead and close the issue.