Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCDB insert error #43

Closed
bendmorris opened this issue May 7, 2012 · 4 comments
Closed

MCDB insert error #43

bendmorris opened this issue May 7, 2012 · 4 comments
Labels

Comments

@bendmorris
Copy link
Member

I'm getting this error on mysql, postgres, and sqlite (Ubunt 12.04)

INSERT INTO MCDB_communities (record_id, site_id, initial_year, species_id, presence_only, abundance, mass) VALUES (null, 1008, 2002, CHPE, '0', 52, null);

psycopg2.ProgrammingError: column "chpe" does not exist

@ethanwhite
Copy link
Member

Weird. I don't get this for any of the DBMS using the current master on Ubuntu 12.04. However, I am now seeing a different error when importing the trapping table (new issue coming momentarily).

@bendmorris
Copy link
Member Author

This is kind of funny - I had previously tested all scripts using every engine, including CSV. CSV created a file in my retriever directory called MCDB_communities.csv, which also happens to be the name of the raw data file. So it was trying to use that file instead of the actual raw data file. Nothing to see here.

@ethanwhite
Copy link
Member

What's even funnier is that in getting ready to report the new error I'm seeing I checked to see if it happened on CSV as well, it didn't, I switched back to get the error message and then started getting something like your error message. If I hadn't glanced at my email I would have been totally confused.

@bendmorris
Copy link
Member Author

Yeah, I spent a decent amount of time trying to figure this one out. I blame the MCDB people; how dare they use such reasonable file names for their data.

ethanwhite pushed a commit to ethanwhite/retriever that referenced this issue Dec 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants