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

Error opening form for method #146

Open
smrgeoinfo opened this issue Jul 1, 2017 · 2 comments
Open

Error opening form for method #146

smrgeoinfo opened this issue Jul 1, 2017 · 2 comments
Labels

Comments

@smrgeoinfo
Copy link

I've loaded a backup of my EarthChem ODM2 database into the Postgres running in the ODM2-Admin docker container. To do that I did a pg_dump (to a directory, with -E for SQL_ASCII encoding and -O), and put the dump in a directory attached to my docker container when I run it. I'm not genereating all the ODM2 tables in my EC database, just the ones that are used or I think we'll need.

I dropped the ODM2 schema from the container postgres db, and then used pg_restore to bring in the backup. No errors reported. I have to configure my container to map container port 5432 to a different port (I'm using 5437) to connect to the db using pgAdmin on my host machine. (there's some other tweaks necessary, but that's a differnent topic) All the tables appear to be OK.

I can connect to ODM2-Admin with browser on my host machine (e.g. http://127.0.0.1:8010/odm2admin/samplingfeatures/) but for some entities (action, method) when I click on a link to drill into the entity I get an error with a heading like "TypeError at /odm2admin/methods/22/change/
'NoneType' object has no attribute 'getitem' ".

Any ideas what might be causing this? I'm attaching and example of the whole error report (ends up being several pages): TypeError-at_odm2admin_methods_22_change_.pdf

@lsetiawan
Copy link
Member

@smrgeoinfo From the error message, it seems like maybe one of the attribute within Method or Action is blank, giving a None and one of the code is trying to get the value of that attribute... From the error message maybe actiondescription.

@miguelcleon
Copy link
Member

Hi @smrgeoinfo this got buried in my inbox while I was traveling. Did @lsetiawan's suggestion help?

@lsetiawan lsetiawan added the bug label Jul 11, 2017
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

3 participants