TemplateSyntaxError at /

58 views
Skip to first unread message

sridhe...@gmail.com

unread,
Sep 30, 2008, 1:51:24 PM9/30/08
to django-hotclub
Hi everybody, i just checked pinax from svn. The fallowing error i am
getting when i run pinax with python 2.5.1 with django 1.0 on
WindowsXP SP2.


TemplateSyntaxError at /

Caught an exception while rendering: Non-ASCII character '\xb1' in
file f:\djpj\django-hotclub\external_libs\ybrowserauth\ybrowserauth.py
on line 104, but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details (ybrowserauth.py, line 104)

Original Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\django\template\debug.py", line
71, in render_node
result = node.render(context)
File "C:\Python25\Lib\site-packages\django\template\defaulttags.py",
line 373, in render
url = reverse(self.view_name, args=args, kwargs=kwargs)
File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
line 252, in reverse
*args, **kwargs)))
File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
line 226, in reverse
possibilities, pattern = self.reverse_dict.get(lookup_view, [(),
()])
File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
line 160, in _get_reverse_dict
for name, (matches, pat) in pattern.reverse_dict.iteritems():
File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
line 168, in _get_reverse_dict
self._reverse_dict[pattern.callback] = bits, p_pattern
File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
line 129, in _get_callback
self._callback = get_callable(self._callback_str)
File "C:\Python25\Lib\site-packages\django\utils\functional.py",
line 130, in wrapper
result = func(*args)
File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
line 56, in get_callable
lookup_view = getattr(__import__(mod_name, {}, {}, ['']),
func_name)
File "F:\djpj\django-hotclub\core_apps\friends_app\views.py", line
10, in <module>
from friends_app.forms import ImportVCardForm
File "F:\djpj\django-hotclub\core_apps\friends_app\forms.py", line
6, in <module>
from friends.importer import import_vcards
File "F:\djpj\django-hotclub\external_apps\friends\importer.py",
line 6, in <module>
import ybrowserauth
File "f:\djpj\django-hotclub\external_libs\ybrowserauth
\ybrowserauth.py", line 104
SyntaxError: Non-ASCII character '\xb1' in file f:\djpj\django-hotclub
\external_libs\ybrowserauth\ybrowserauth.py on line 104, but no
encoding declared; see http://www.python.org/peps/pep-0263.html for
details (ybrowserauth.py, line 104)

Request Method: GET
Request URL: http://localhost/
Exception Type: TemplateSyntaxError
Exception Value:

Caught an exception while rendering: Non-ASCII character '\xb1' in
file f:\djpj\django-hotclub\external_libs\ybrowserauth\ybrowserauth.py
on line 104, but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details (ybrowserauth.py, line 104)

Original Traceback (most recent call last):
File "C:\Python25\Lib\site-packages\django\template\debug.py", line
71, in render_node
result = node.render(context)
File "C:\Python25\Lib\site-packages\django\template\defaulttags.py",
line 373, in render
url = reverse(self.view_name, args=args, kwargs=kwargs)
File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
line 252, in reverse
*args, **kwargs)))
File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
line 226, in reverse
possibilities, pattern = self.reverse_dict.get(lookup_view, [(),
()])
File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
line 160, in _get_reverse_dict
for name, (matches, pat) in pattern.reverse_dict.iteritems():
File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
line 168, in _get_reverse_dict
self._reverse_dict[pattern.callback] = bits, p_pattern
File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
line 129, in _get_callback
self._callback = get_callable(self._callback_str)
File "C:\Python25\Lib\site-packages\django\utils\functional.py",
line 130, in wrapper
result = func(*args)
File "C:\Python25\Lib\site-packages\django\core\urlresolvers.py",
line 56, in get_callable
lookup_view = getattr(__import__(mod_name, {}, {}, ['']),
func_name)
File "F:\djpj\django-hotclub\core_apps\friends_app\views.py", line
10, in <module>
from friends_app.forms import ImportVCardForm
File "F:\djpj\django-hotclub\core_apps\friends_app\forms.py", line
6, in <module>
from friends.importer import import_vcards
File "F:\djpj\django-hotclub\external_apps\friends\importer.py",
line 6, in <module>
import ybrowserauth
File "f:\djpj\django-hotclub\external_libs\ybrowserauth
\ybrowserauth.py", line 104
SyntaxError: Non-ASCII character '\xb1' in file f:\djpj\django-hotclub
\external_libs\ybrowserauth\ybrowserauth.py on line 104, but no
encoding declared; see http://www.python.org/peps/pep-0263.html for
details (ybrowserauth.py, line 104)

Exception Location: C:\Python25\Lib\site-packages\django\template
\debug.py in render_node, line 81
Python Executable: C:\Python25\python.exe
Python Version: 2.5.1
Python Path: ['F:\\djpj\\django-hotclub\\core_apps', 'F:\\djpj\
\django-hotclub\\local_apps', 'F:\\djpj\\django-hotclub\
\external_apps', 'f:\\djpj\\django-hotclub\\external_libs\\misc', 'f:\
\djpj\\django-hotclub\\external_libs\\python-yadis-1.1.0', 'f:\\djpj\
\django-hotclub\\external_libs\\pownce-api-0.2', 'f:\\djpj\\django-
hotclub\\external_libs\\pytz-2008b', 'f:\\djpj\\django-hotclub\
\external_libs\\dateutil', 'f:\\djpj\\django-hotclub\\external_libs\
\textile-2.0.11', 'f:\\djpj\\django-hotclub\\external_libs\
\genshi-0.5.1', 'f:\\djpj\\django-hotclub\\external_libs\\python-
twitter-0.5', 'f:\\djpj\\django-hotclub\\external_libs\
\simplejson-1.9.1', 'f:\\djpj\\django-hotclub\\external_libs\
\creoleparser-0.5.0', 'f:\\djpj\\django-hotclub\\external_libs\\geopy-
trunk', 'f:\\djpj\\django-hotclub\\external_libs\\docutils-0.4', 'f:\
\djpj\\django-hotclub\\external_libs\\markdown-1.7', 'f:\\djpj\\django-
hotclub\\external_libs\\vobject-0.6.6', 'f:\\djpj\\django-hotclub\
\external_libs\\gdata.py-1.0.13', 'f:\\djpj\\django-hotclub\
\external_libs\\pygments-0.11.1', 'f:\\djpj\\django-hotclub\
\external_libs\\python-openid-2.1.1', 'f:\\djpj\\django-hotclub\
\external_libs\\feedparser-4.1', 'f:\\djpj\\django-hotclub\
\external_libs\\ybrowserauth', 'F:\\djpj\\django-hotclub\\pinax', 'C:\
\Python25\\lib\\site-packages\\setuptools-0.6c8-py2.5.egg', 'C:\
\Python25\\lib\\site-packages\\sphinx-0.4.2-py2.5.egg', 'C:\\Python25\
\lib\\site-packages\\docutils-0.5-py2.5.egg', 'C:\\Python25\\lib\\site-
packages\\jinja-1.2-py2.5-win32.egg', 'C:\\Python25\\lib\\site-packages
\\pygments-0.11.1-py2.5.egg', 'C:\\Python25\\lib\\site-packages\
\mysql_python-1.2.2-py2.5-win32.egg', 'C:\\Python25\\lib\\site-packages
\\django_tinymce-1.0-py2.5.egg', 'C:\\WINDOWS\\system32\
\python25.zip', 'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\
\Python25\\lib\\plat-win', 'C:\\Python25\\lib\\lib-tk', 'C:\
\Python25', 'C:\\Python25\\lib\\site-packages', 'C:\\Python25\\lib\
\site-packages\\PIL', 'F:\\djpj\\django-hotclub\\external_libs', 'F:\
\djpj\\django-hotclub\\external_libs\\dateutil', 'F:\\djpj\\django-
hotclub\\external_libs\\docutils-0.4', 'F:\\djpj\\django-hotclub\
\external_libs\\feedparser-4.1', 'F:\\djpj\\django-hotclub\
\external_libs\\gdata.py-1.0.13', 'F:\\djpj\\django-hotclub\
\external_libs\\markdown-1.7', 'F:\\djpj\\django-hotclub\\external_libs
\\misc', 'F:\\djpj\\django-hotclub\\external_libs\\pownce-api-0.2', 'F:
\\djpj\\django-hotclub\\external_libs\\python-openid-2.1.1', 'F:\\djpj\
\django-hotclub\\external_libs\\python-yadis-1.1.0', 'F:\\djpj\\django-
hotclub\\external_libs\\ybrowserauth']
Server time: Tue, 30 Sep 200

griff

unread,
Oct 3, 2008, 11:18:49 AM10/3/08
to django-hotclub
Got the same problem on python 2.4 on freebsd.

On Sep 30, 6:51 pm, "sridher.ja...@gmail.com"
<sridher.ja...@gmail.com> wrote:
> Hi everybody, i just checked pinax  from svn. The fallowing error i am
> getting when i run pinax with python 2.5.1 with django 1.0 on
> WindowsXP SP2.
>
> TemplateSyntaxError at /
>
> Caught an exception while rendering: Non-ASCII character '\xb1' in
> file f:\djpj\django-hotclub\external_libs\ybrowserauth\ybrowserauth.py
> on line 104, but no encoding declared; seehttp://www.python.org/peps/pep-0263.html
> on line 104, but no encoding declared; seehttp://www.python.org/peps/pep-0263.html

griff

unread,
Oct 3, 2008, 11:25:59 AM10/3/08
to django-hotclub
Wait, no, looked similar but it's not never mind.

Trey Piepmeier

unread,
Oct 4, 2008, 6:12:41 PM10/4/08
to django-hotclub
I'm getting:

TemplateSyntaxError at /
Caught an exception while rendering: Reverse for
'complete_project.home' with arguments '()' and keyword arguments '{}'
not found.

This is with a fresh checkout of django-hotclub with no
modifications. I was getting it with a custom project as well, but I
did a fresh checkout of the code to make sure it wasn't something I
had done.

-Trey

Alex_Gaynor

unread,
Oct 4, 2008, 9:16:57 PM10/4/08
to django-hotclub
This was an issue caused by a check in earlier today, if you svn up
again it should be fixed.

Trey Piepmeier

unread,
Oct 5, 2008, 5:31:52 PM10/5/08
to django-...@googlegroups.com
Yup, it's working now. Thanks.

sridhe...@gmail.com

unread,
Oct 22, 2008, 1:36:06 PM10/22/08
to django-hotclub
Hi ,

Afer svn update on oct 22 the old error not comming but it is
producing Trey error

TemplateSyntaxError at /
Caught an exception while rendering: Reverse for
'complete_project.home' with arguments '()' and keyword arguments '{}'
not found.



On Oct 6, 2:31 am, "Trey Piepmeier" <tpiepme...@gmail.com> wrote:
> Yup, it's working now.  Thanks.
>

Alan Justino

unread,
Nov 2, 2008, 10:05:37 AM11/2/08
to django-hotclub
I have same problem. But simple_project works (???)

Any ideas?

On Oct 22, 3:36 pm, "sridher.ja...@gmail.com"
<sridher.ja...@gmail.com> wrote:
> Hi ,
>
> Afer svn update on oct 22 the old error not comming but it is
> producing Trey error
>
> TemplateSyntaxErrorat /
> Caught an exception while rendering: Reverse for
> 'complete_project.home' with arguments '()' and keyword arguments '{}'
> not found.
>
> On Oct 6, 2:31 am, "Trey Piepmeier" <tpiepme...@gmail.com> wrote:
>
> > Yup, it's working now.  Thanks.
>
> > On Sat, Oct 4, 2008 at 8:16 PM, Alex_Gaynor <alex.gay...@gmail.com> wrote:
>
> > > This was an issue caused by a check in earlier today, if you svn up
> > > again it should be fixed.
>
> > > On Oct 4, 6:12 pm, Trey Piepmeier <tpiepme...@gmail.com> wrote:
> > >> I'm getting:
>
> > >>TemplateSyntaxErrorat /

Alan Justino

unread,
Nov 2, 2008, 10:18:46 AM11/2/08
to django-hotclub
Solved: you should NOT copy complete_project to another place. It need
to be a subfolder of pinax/projects

Silly.

Att. Alan

bobhaugen

unread,
Nov 11, 2008, 7:27:35 AM11/11/08
to django-hotclub
On Nov 2, 9:18 am, Alan Justino <alan.justino.si...@gmail.com> wrote:
> Solved: you should NOT copy complete_project to another place. It need
> to be a subfolder of pinax/projects

You can certainly export complete_project or basic_projectc to another
place, but you need to follow http://pinaxproject.com/docs/trunk/customization.html
(if you're using trunk) or http://pinaxproject.com/docs/0.5.0/customization.html
(if you're using 0.5.0) and set your PINAX_ROOT correctly.

But as jtauber wrote, these discussions should move to
http://groups.google.com/group/pinax-users
Reply all
Reply to author
Forward
0 new messages