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

Issue with running ureport #577

Open
savicm opened this issue Apr 13, 2020 · 4 comments
Open

Issue with running ureport #577

savicm opened this issue Apr 13, 2020 · 4 comments

Comments

@savicm
Copy link

savicm commented Apr 13, 2020

Hello!

I am trying to build a POC with ureport connected to a rapidpro instance. After following the instructions outlined in the , installing the requirements, migrating the database, and finally calling to the published address, all I'm getting is an exception:

Exception Type: | AttributeError
-- | --
'NoneType' object has no attribute 'get_gender_stats'
/opt/ureport_src/ureport/public/views.py in get_context_data, line 54

which is:
/root/opt/ureport_src/ureport/public/views.py in get_context_data
        context["gender_stats"] = org.get_gender_stats() 

Could you hint any possible causes for this?

Thank you in advance!

@norkans7
Copy link
Contributor

I think you might have not set up an org on the ureport so that is missing.

@savicm
Copy link
Author

savicm commented Apr 15, 2020

Hi,

Sure, that would be reasonable. How would I go with adding one? API endpoints are only GETs, and, perhaps due to some misconfiguration on my side, there is no other functional endpoint to go to manage organizations?

Thanks for your time!

@norkans7
Copy link
Contributor

You create one from /manage/org/

@savicm
Copy link
Author

savicm commented Apr 15, 2020

Well, thank you! I needed that missing piece. It further didn't work, because of lessc, but i managed to fix that. I've got something to work with now :) It might seem that installation instructions could use an update.

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants