arches3: Newby problems: TemplateDoesNotExist etc.

111 views
Skip to first unread message

H Pirker

unread,
May 7, 2015, 9:56:27 AM5/7/15
to arches...@googlegroups.com

Dear all


I have been fiddling around with arches3 / HIP for a week or so and am still running into nasty problems :-(
I am new to arches (and Django and postgres and and and ... ) so  just for a quick "sanity check", before I spend even more time with fruitless debugging:  can you confirm that the following problems are  actually specific to my local installation?


=== 1) "TemplateDoesNotExist" 

Under the "Ressource Manager" I got a "TemplateDoesNotExist" error for the majority of Menu-Items. 
E.g. see the Error-message for "Location" below. 

The missing templates are obviously nowhere to be found in the file-system. (cf. APPENDIX 1)

So just the important question: is this a bug or a feature :-) ? 

Are  these template files are missing because 
a) my installation failed? 
b) they should be generated dynamically, and this generation-process is failing?
c) it is my responsibility to provide these templates? 
d) none of the above?

Note, that ARCHES is basically blank right now. I just added a few fake concepts in RDM but did not (was not able to) add any "Cultural Ressources" )  

=== 2) "UnboundLocalError concept_graph' referenced before assignment" when exporting Schemes
 
Whenever I try to RDM -> Tools -> Export Scheme  I get the following error (cf. APPENDIX 2)

Exception Type: UnboundLocalError
Exception Value:
local variable 'concept_graph' referenced before assignment

Once again: can you confirm that this is a problem that is due to *my* installation / or my spoiled understanding on how Arches/HIP is supposed to work ? 

Thanks a lot & all the best

Hannes 



=== APPENDIX 1: Info about the "TemplateDoesNotExist" 

FYI: Other templates which the system is not able to find are e.g. 

views/forms/related-files.htm   -> for both "Related Resources" AND "Images and Files"
views/forms/designation.htm
views/forms/evaluation.htm
views/forms/activity-summary.htm
views/forms/historical-event-summary.htm
...

Complete list of all  /views/forms/*.htm  instllaed in my Arches / HIP:


./ENV/lib/python2.7/site-packages/arches/app/templates/views/forms/wizard-base.htm
./ENV/lib/python2.7/site-packages/arches/app/templates/views/forms/edit-history.htm
./ENV/lib/python2.7/site-packages/arches/app/templates/views/forms/delete-resource.htm
./ENV/lib/python2.7/site-packages/arches/app/templates/views/forms/base.htm
./ENV/lib/python2.7/site-packages/arches_hip/templates/views/forms/summary.htm
./ENV/lib/python2.7/site-packages/arches_hip/templates/views/forms/classification.htm
./ENV/lib/python2.7/site-packages/arches_hip/templates/views/forms/condition.htm
./ENV/lib/python2.7/site-packages/arches_hip/templates/views/forms/description.htm
./ENV/lib/python2.7/site-packages/arches_hip/templates/views/forms/measurement.htm


### Error Message in Areches when Accessing "Location" 
TemplateDoesNotExist at /resources/HERITAGE_RESOURCE.E18/location/
views/forms/location.htm
Request Method: GET
Django Version: 1.6.2
Exception Type: TemplateDoesNotExist
Exception Value:
views/forms/location.htm
Exception Location: /opt/arches3/Projects/ENV/local/lib/python2.7/site-packages/django/template/loader.py in find_template, line 131
Python Executable: /opt/arches3/Projects/ENV/bin/python
Python Version: 2.7.6
Python Path:
['/opt/arches3/Projects/defc_site_1_224',
 '/opt/arches3/Projects/ENV/lib/python2.7',
 '/opt/arches3/Projects/ENV/lib/python2.7/plat-x86_64-linux-gnu',
 '/opt/arches3/Projects/ENV/lib/python2.7/lib-tk',
 '/opt/arches3/Projects/ENV/lib/python2.7/lib-old',
 '/opt/arches3/Projects/ENV/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/opt/arches3/Projects/ENV/local/lib/python2.7/site-packages',
 '/opt/arches3/Projects/ENV/local/lib/python2.7/site-packages/arches']
Server time: Thu, 7 May 2015 08:34:12 -0500
Template-loader postmortem

Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.Loader:
/opt/arches3/Projects/defc_site_1_224/defc_site_1_224/templates/views/forms/location.htm (File does not exist)
/opt/arches3/Projects/defc_site_1_224/defc_site_1_224/templatetags/views/forms/location.htm (File does not exist)
/opt/arches3/Projects/ENV/local/lib/python2.7/site-packages/arches_hip/templates/views/forms/location.htm (File does not exist)
/opt/arches3/Projects/ENV/local/lib/python2.7/site-packages/arches_hip/templatetags/views/forms/location.htm (File does not exist)
/opt/arches3/Projects/ENV/local/lib/python2.7/site-packages/arches/app/templates/views/forms/location.htm (File does not exist)
Using loader django.template.loaders.app_directories.Loader:
/opt/arches3/Projects/ENV/local/lib/python2.7/site-packages/django/contrib/admin/templates/views/forms/location.htm (File does not exist)
/opt/arches3/Projects/ENV/local/lib/python2.7/site-packages/django/contrib/auth/templates/views/forms/location.htm (File does not exist)
/opt/arches3/Projects/ENV/local/lib/python2.7/site-packages/django/contrib/gis/templates/views/forms/location.htm (File does not exist)
/opt/arches3/Projects/ENV/local/lib/python2.7/site-packages/arches_hip/templates/views/forms/location.htm (File does not exist)
/opt/arches3/Projects/defc_site_1_224/defc_site_1_224/templates/views/forms/location.htm (File does not exist)

==== APPENDIX 2 === Erorr when trying to Export a Concept in RMD 

UnboundLocalError at /concepts/3ef89ea1-8630-4f14-8127-43c7e3fcbd9b
local variable 'concept_graph' referenced before assignment
Request Method: GET
Django Version: 1.6.2
Exception Type: UnboundLocalError
Exception Value:
local variable 'concept_graph' referenced before assignment
Exception Location: /opt/arches3/Projects/ENV/local/lib/python2.7/site-packages/arches/app/views/concept.py in concept, line 156
Python Executable: /opt/arches3/Projects/ENV/bin/python
Python Version: 2.7.6
Python Path:
['/opt/arches3/Projects/defc_site_1_224',
 '/opt/arches3/Projects/ENV/lib/python2.7',
 '/opt/arches3/Projects/ENV/lib/python2.7/plat-x86_64-linux-gnu',
 '/opt/arches3/Projects/ENV/lib/python2.7/lib-tk',
 '/opt/arches3/Projects/ENV/lib/python2.7/lib-old',
 '/opt/arches3/Projects/ENV/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/opt/arches3/Projects/ENV/local/lib/python2.7/site-packages',
 '/opt/arches3/Projects/ENV/local/lib/python2.7/site-packages/arches']
Server time: Thu, 7 May 2015 08:30:24 -0500









Alexei Peters

unread,
May 7, 2015, 1:29:35 PM5/7/15
to H Pirker, arches...@googlegroups.com
Hi Hannes,
By looking at your list of installed templates in the views/forms directory, it appears that you are missing most of the forms.
I just re-installed arches_hip myself and I'm seeing the same problem you are.  It looks like the install package is missing those files.  I apologize for that!
I'll have to push up a fix for that and notify the community.
Once I've done that you'll need to run:

pip install arches_hip --upgrade

to get the latest.

Sorry for the confusion there.

I'll let you know when that fix becomes available (hopefully in the next day or two)

Cheers,

Alexei



Director of Web Development - Farallon Geographics, Inc. - 971.227.3173

--
-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to archesprojec...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en
---
You received this message because you are subscribed to the Google Groups "Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archesprojec...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Piyush Shah

unread,
May 9, 2015, 8:26:45 AM5/9/15
to arches...@googlegroups.com, hpr...@gmail.com
Dear All

As H Pirker I am also facing same problem.

And addition to that when I run command for "Start ElasticSearch:" it won't complete and stuck at "[2015-05-09 17:44:02,494][INFO ][gateway                  ] [Reeva Payge] recovered [4] indices into cluster_state"

So can you help me to solve this issue.

Alexei Peters I am waiting for your response.

Thank you for making such a great app for Heritage Inventory Management.

Regards
piyush

Adam Cox

unread,
May 9, 2015, 1:29:24 PM5/9/15
to arches...@googlegroups.com, hpr...@gmail.com
Hi Piyush and Hannes, while the arches team is working on updating the version of arches-hip available through pip, you can get the current version of the arches-hip app from the bitbucket repo: https://bitbucket.org/arches/hip.  All you need to do is clone or download this repo, and then copy the directory called "arches-hip" into the virtual environment python installation.

The commands I used on Ubuntu were:
-- $: cp ~/hip/arches_hip ~/Projects/ENV/lib/python2.7/site-packages/arches_hip -r

The first line clones the repo, and the second one copies it into the site-packages directory.  All you really need is for that arches-hip directory to exist in the virtual environment lib/python2.7/site-packages directory.  The bitbucket repo has all the templates, and you should be good to go.

H Pirker

unread,
May 11, 2015, 6:22:08 AM5/11/15
to arches...@googlegroups.com, mr.ad...@gmail.com, hpr...@gmail.com
Hi Adam, 

thanks for the hint with bitbucket.
With all the templates in place I could get rid of the  "TemplateDoesNotExist" 

Nevertheless I still got the very same error as before when trying to export a schema :-(  "local variable 'concept_graph' referenced before assignment"

So I suppose I still will need to wait for a bug-fix for *that* problem -- or am I the only one who experiences this error ? (Alexei Peters was not explicit about this point)

all the best

Hannes

Adam Cox

unread,
May 11, 2015, 10:22:11 AM5/11/15
to H Pirker, arches...@googlegroups.com
Hannes, I hadn't tried exporting a scheme yet, but yes, I hit the same error.

--
-- To post, send email to arches...@googlegroups.com. To unsubscribe, send email to archesprojec...@googlegroups.com. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Arches Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/archesproject/bUwfK0RzOPI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to archesprojec...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages