← Return to Tree.io
login about faq

Well, after some trial and error, I managed to get tree.io running on Webfaction. Still have one bug hanging around though that I'm not sure what to do with... when I click on the contacts, documents, or knowledge tab on the top of the page, it tries to load the page and then just says "something went wrong". Every other tab works fine though.

My error logs say... ~/treeio/.ve/lib/python2.7/site-packages/coffin/common.py:59: UserWarning: Cannot translate loader: django.template.loaders.eggs.load_template_source warnings.warn('Cannot translate loader: %s' % loader)

Is there something I can do to fix this? Seems to be related to the coffin module.

asked Dec 08 '11 at 15:53

reimdesign's gravatar image

reimdesign
1111

Looks like a Coffin/Jinja2 issue... Can you set DEBUG=True in settings.py and then go directly to yourdomain.com/contacts/ or /knowledge/ etc. and paste the output here?

(Dec 12 '11 at 14:46) Alex Berezovskiy ♦

You seem to have an incorrect version of Django: make sure you use make && make install. We actually apply a small patch to Django (it's being a bit over-protective since 1.3 with model forms).

If you've run "manage.py update_ve" after doing "make", you'll need to apply the patch by doing:

exec ./bin/patch

Alternatively, you can rebuild all the modules:

make clean
make

I've also noticed an additional reference to tree_app/lib/python2.7 in the python path. If the above doesn't help, could you do the following and post the result:

python manage.py shell
from django.db import models
print models.__file__
import django
print django.get_version(), django.__file__

answered Dec 12 '11 at 19:45

Alex%20Berezovskiy's gravatar image

Alex Berezovskiy ♦
62118

edited Dec 12 '11 at 19:56

My logs are full of that, but it doesn't seem to affect what the performance, that relates to the way that the coffin templating system works, which I would guess will be fixed in coffin down the line.

The "Something went wrong" comes back with AJAX calls that return a 500 (internal server error) response. If you set turn Debugging on: Search for DEBUG in your settings.py file and change it from False to True, and then do whatever it is that makes your error and see what the issue is.

The google chrome browser lets you see what's going on by right clicking the page, choose "Inspect element" and then click on the Network tab on the panel at the bottom. Take an action that causes your problem and look for the AJAX call with the 500 response (it should be red)... That will let you see the error page that is being returned and is much more descriptive.

Once you're working, don't forget to turn DEBUG back to False!

JT

answered Dec 08 '11 at 17:44

JT_Q4's gravatar image

JT_Q4
71226

Alex, I went directly to the contacts page with DEBUG=True and this is what showed up. The other problematic pages are similar (Cannot assign None: "KnowledgeItem.folder" does not allow null values. and Cannot assign None: "Document.folder" does not allow null values.)

ValueError at /contacts/

Cannot assign None: "Contact.contact_type" does not allow null values.

Request Method: GET Request URL: http://(removed).com/contacts/

Django Version: 1.3 Exception Type: ValueError Exception Value:

Cannot assign None: "Contact.contact_type" does not allow null values.

Exception Location: /home/jhreimer/webapps/tree_app/treeio/.ve/lib/python2.7/site-packages/django/db/models/fields/related.py in set, line 327 Python Executable: /usr/bin/python Python Version: 2.7.1 Python Path:

['/home/(removed)/webapps/tree_app/lib/python2.7',

'/home/(removed)/webapps/tree_app/treeio/.ve/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg',

'/home/(removed)/lib/python2.7/virtualenv-1.7-py2.7.egg',

'/home/(removed)/lib/python2.7',

'/usr/local/lib/python27.zip',

'/usr/local/lib/python2.7',

'/usr/local/lib/python2.7/plat-linux2',

'/usr/local/lib/python2.7/lib-tk',

'/usr/local/lib/python2.7/lib-old',

'/usr/local/lib/python2.7/lib-dynload',

'/usr/local/lib/python2.7/site-packages',

'/usr/local/lib/python2.7/site-packages/PIL',

'/home/(removed)/webapps/tree_app/treeio/.ve/lib/python2.7/site-packages',

'/home/(removed)/webapps/tree_app/treeio/.ve/lib/python2.7/site-packages/PIL',

'/home/(removed)/webapps/tree_app',

'/home/(removed)/webapps/tree_app/treeio']

Server time: Mon, 12 Dec 2011 16:18:20 -0700

answered Dec 12 '11 at 18:25

reimdesign's gravatar image

reimdesign
1111

Hi all,

This is my first post, and know this is an old post, but I get the same error when doing a clean install of tree.io on OS X. The error I get is:

Environment:

Request Method: GET
Request URL: http://localhost:8000/projects/

Django Version: 1.3
Python Version: 2.7.1
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'django.contrib.markup',
 'django_websocket',
 'django.contrib.messages',
 'treeio.account',
 'treeio.core',
 'treeio.core.api',
 'treeio.core.search',
 'treeio.documents',
 'treeio.events',
 'treeio.finance',
 'treeio.identities',
 'treeio.infrastructure',
 'treeio.knowledge',
 'treeio.messaging',
 'treeio.news',
 'treeio.projects',
 'treeio.reports',
 'treeio.sales',
 'treeio.services',
 'dajaxice',
 'dajax',
 'nuconnector',
 'coffin',
 'captcha',
 'south']
Installed Middleware:
('johnny.middleware.LocalStoreClearMiddleware',
 'johnny.middleware.QueryCacheMiddleware',
 'django.middleware.gzip.GZipMiddleware',
 'treeio.core.middleware.domain.DomainMiddleware',
 'treeio.core.middleware.user.SSLMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'treeio.core.middleware.user.AuthMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'treeio.core.middleware.chat.ChatAjaxMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'treeio.core.middleware.modules.ModuleDetect',
 'minidetector.Middleware',
 'treeio.core.middleware.user.CommonMiddleware',
 'treeio.core.middleware.user.PopupMiddleware',
 'treeio.core.middleware.user.LanguageMiddleware')

Traceback:
File "/Users/garypearman/Downloads/treeio/.ve/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  117.                             response = middleware_method(request, e)
File "/Users/garypearman/Downloads/treeio/.ve/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/Users/garypearman/Downloads/treeio/../treeio/core/decorators.py" in wrap
  118.                 response = f(request, *args, **kwargs)
File "/Users/garypearman/Downloads/treeio/../treeio/core/decorators.py" in wrap
  45.                         return f(request, *args, **kwargs)
File "/Users/garypearman/Downloads/treeio/../treeio/projects/views.py" in wrap
  78.         return f(request, *args, **kwargs)
File "/Users/garypearman/Downloads/treeio/../treeio/projects/views.py" in index
  110.                               context_instance=RequestContext(request), response_format=response_format)
File "/Users/garypearman/Downloads/treeio/../treeio/core/rendering.py" in render_to_response
  192.         rendered_string = render_to_string(template_name, context, context_instance, response_format)
File "/Users/garypearman/Downloads/treeio/../treeio/core/rendering.py" in render_to_string
  56.     rendered_string = loader.render_to_string(template_name, context, context_instance)
File "/Users/garypearman/Downloads/treeio/.ve/lib/python2.7/site-packages/coffin/template/loader.py" in render_to_string
  50.         template = get_template(template_name)
File "/Users/garypearman/Downloads/treeio/.ve/lib/python2.7/site-packages/coffin/template/loader.py" in get_template
  24.     return env.get_template(template_name)
File "/Library/Python/2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py" in get_template
  719.         return self._load_template(name, self.make_globals(globals))
File "/Library/Python/2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py" in _load_template
  693.         template = self.loader.load(self, name, globals)
File "/Library/Python/2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/loaders.py" in load
  127.             code = environment.compile(source, name, filename)
File "/Library/Python/2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py" in compile
  493.         self.handle_exception(exc_info, source_hint=source)
File "/Users/garypearman/Downloads/treeio/templates/html/projects/index.html" in template
  19.     {% if '?' in request.get_full_path() %}<a class="pdf-block-link" href="{{ request.get_full_path()|replace('.ajax','').replace('?','.pdf?') }}"{% else %}<a class="pdf-block-link" href="{{ request.get_full_path()|replace('.ajax','') }}.pdf"{% endif %} target="_self">PDF</a>

Exception Type: TemplateSyntaxError at /projects/
Exception Value: expected token 'end of print statement', got '.'

answered Jan 23 '12 at 17:17

gazsp's gravatar image

gazsp
11

edited Jan 23 '12 at 17:17

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×3
×1

Asked: Dec 08 '11 at 15:53

Seen: 1,406 times

Last updated: Jan 23 '12 at 17:17

© 2012 Tree.io Ltd. All rights reserved.
Registered in England. Company No. 07416236