running shareabouts locally - can't add data to map?

43 views
Skip to first unread message

Georgia Bullen

unread,
Nov 19, 2013, 1:37:45 PM11/19/13
to shareab...@googlegroups.com
Hi!

I'm running shareabouts locally on my machine as I setup a new map, but I can't seem to add data to my instance. The application hangs on submit.

Is there something I need to set to fix that? Or is that just a known issue when working locally?

-Georgia

----
Georgia Bullen

Frank Hebbert

unread,
Nov 19, 2013, 1:59:27 PM11/19/13
to shareab...@googlegroups.com, shareab...@googlegroups.com
What do you see in the browser console? This is not a known issue, should work locally. 
--
-- --
Shareabouts Developers group.
Unsubscribe: https://groups.google.com/d/forum/shareabouts-dev?hl=en
---
You received this message because you are subscribed to the Google Groups "Shareabouts Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shareabouts-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Georgia Bullen

unread,
Nov 19, 2013, 8:34:10 PM11/19/13
to shareab...@googlegroups.com
The error in the webconsole is "TypeError: Attempted to assign to readonly property"

We had some trouble installing Shareabouts on this computer, and it seemed to relate to having sudo permissions on the machine. Do you think it could be related to that?

-Georgia

Frank Hebbert

unread,
Nov 19, 2013, 8:44:35 PM11/19/13
to shareab...@googlegroups.com
Hmm. Can you be more specific about the install process problems? 

If you have a github URL I'm happy to take a look at the config. 

Georgia Bullen

unread,
Nov 19, 2013, 8:53:32 PM11/19/13
to shareab...@googlegroups.com
We weren't able to run 'pip install -r requirements.txt' successfully the first time, so we installed/updated python libraries, and then eventually were able to run it.

Whenever we run the server locally, we actually have to call "python manage.py runserver" within the virtualenv, because we get a write access issue when just calling the script on it's own.

I was thinking since the error in the browser is also about "readonly" that that might be a related issue.

-Georgia

Georgia Bullen

unread,
Nov 20, 2013, 1:36:41 AM11/20/13
to shareab...@googlegroups.com
OK. It appears to have initially been a permissions issue, which fixed most of what I was seeing (not sure how it happened), but now when I try to save a place running Shareabouts locally I get the following error in the console:
Uncaught TypeError: Cannot set property 'geometry' of undefined
On line 150 of models.js

I've got my students flavor on a branch in this repo: https://github.com/civichacking/shareabouts/tree/caroline-f13

-Georgia

Frank Hebbert

unread,
Nov 20, 2013, 12:26:50 PM11/20/13
to shareab...@googlegroups.com
There are a couple of steps you need to take to get this working:

Firstly, on line 281, change input_type to location_type. 

Secondly, make sure each of the values in the "Name your input" dropdown correspond with the names of the place types. So, "OrganizationCommunity" on line 272 should match the place_type name on line 33. The values in the dropdown look good, make sure the place type titles match up. If you don't do this, Shareabouts doesn't know which location type matches up with the styling.

Finally, in your local settings, make sure the API url says v2 rather than v1, e.g. http://api.shareabouts.org/api/v2/demo-user/datasets/demo-data/

I am in the #shareabouts irc channel on irc.freenode.net if you want to chat through these changes.


 
Frank Hebbert
OpenPlans | http://openplans.org | 720 432-2378 | @fkh

Georgia Bullen

unread,
Nov 20, 2013, 2:33:01 PM11/20/13
to shareab...@googlegroups.com
Since I'm sure others on the list are worried....

We fixed it! The issue was that the location_type names weren't matched up to the variable names. I was editing them in the wrong place!

-Georgia

----
Georgia Bullen


You received this message because you are subscribed to a topic in the Google Groups "Shareabouts Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/shareabouts-dev/c9mLlVVQj24/unsubscribe.
To unsubscribe from this group and all its topics, send an email to shareabouts-d...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages