Hi,
After updating django trunk to r8375 which is currently in 1.0 beta1
phase and should be more stable regarding the feature freeze for 1.0,
I'm still getting the same error as given below :
Traceback (most recent call last):
File "C:\Soft\Dev_soft\Libs\Python\Django\svn\django\core\servers
\basehttp.py", line 277, in run
self.result = application(self.environ, self.start_response)
File "C:\Soft\Dev_soft\Libs\Python\Django\svn\django\core\servers
\basehttp.py", line 634, in __call__
return self.application(environ, start_response)
File "C:\Soft\Dev_soft\Libs\Python\Django\svn\django\core\handlers
\wsgi.py", line 220, in __call__
response = middleware_method(request, response)
File "C:\Soft\Dev_soft\Libs\Python\Django\apps\django-hotclub\trunk
\apps\djangologging\middleware.py", line 153, in process_response
self._rewrite_html(request, response)
File "C:\Soft\Dev_soft\Libs\Python\Django\apps\django-hotclub\trunk
\apps\djangologging\middleware.py", line 187, in _rewrite_html
response.content = close_body_re.sub(r'%s\1' % footer,
response.content)
File "C:\Python25\Lib\re.py", line 269, in _subx
template = _compile_repl(template, pattern)
File "C:\Python25\Lib\re.py", line 256, in _compile_repl
raise error, v # invalid expression
error: bad group name
To resolve the issue by my own I tried the followings successively but
all attempts failed :
1. Updated django trunk to its latest revision (8375)
2. Deleted all compile pyc files from both django and django-hotclub
folders.
3. Checked sys.path after running manage.py shell to see whether every
path entries are pointing to the right directories.
Also note that in every attempt I removed the sqlite3 database dev.db
and ran manage.py syncdb before running manage.py runserver to test
the installation.
I've tried also with commenting out the problematic middleware entry
'djangologging.middleware.LoggingMiddleware' from settings.py, and the
previous error disappeared and the httpresponse emitted but with two
new errors (the first is generated only once for the first hit to site
base url and then the second for all hit):
First error:
Request Method: GET
Request URL:
http://localhost:8000/
Exception Type: TemplateSyntaxError
Exception Value: Caught an exception while rendering: Could not
import friends_app.views. Error was: No module named
gdata.contacts.service Original Traceback (most recent call last):
File "C:\Soft\Dev_soft\Libs\Python\Django\svn\django\template
\debug.py", line 71, in render_node result = node.render(context) File
"C:\Soft\Dev_soft\Libs\Python\Django\svn\django\template
\defaulttags.py", line 365, in render return reverse(self.view_name,
args=args, kwargs=kwargs) File "C:\Soft\Dev_soft\Libs\Python\Django\svn
\django\core\urlresolvers.py", line 307, in reverse *args, **kwargs)))
File "C:\Soft\Dev_soft\Libs\Python\Django\svn\django\core
\urlresolvers.py", line 289, in reverse if lookup_view in
self.reverse_dict: File "C:\Soft\Dev_soft\Libs\Python\Django\svn\django
\core\urlresolvers.py", line 225, in _get_reverse_dict for key, value
in pattern.reverse_dict.iteritems(): File "C:\Soft\Dev_soft\Libs\Python
\Django\svn\django\core\urlresolvers.py", line 228, in
_get_reverse_dict self._reverse_dict[pattern.callback] = (pattern,)
File "C:\Soft\Dev_soft\Libs\Python\Django\svn\django\core
\urlresolvers.py", line 188, in _get_callback raise ViewDoesNotExist,
"Could not import %s. Error was: %s" % (mod_name, str(e))
ViewDoesNotExist: Could not import friends_app.views. Error was: No
module named gdata.contacts.service
Exception Location: C:\Soft\Dev_soft\Libs\Python\Django\svn\django
\template\debug.py in render_node, line 81
Python Executable: C:\Python25\python.exe
Python Version: 2.5.2
Python Path: ['C:\\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\\django-
hotclub\\trunk\\apps', 'c:\\soft\\dev_soft\\libs\\python\\django\\apps\
\django-hotclub\\trunk\\site-packages\\dateutil', 'c:\\soft\\dev_soft\
\libs\\python\\django\\apps\\django-hotclub\\trunk\\site-packages\
\vobject-0.6.6', 'c:\\soft\\dev_soft\\libs\\python\\django\\apps\
\django-hotclub\\trunk\\site-packages\\python-openid-2.1.1', 'c:\\soft\
\dev_soft\\libs\\python\\django\\apps\\django-hotclub\\trunk\\site-
packages\\gdata.py-1.0.13', 'c:\\soft\\dev_soft\\libs\\python\\django\
\apps\\django-hotclub\\trunk\\site-packages\\simplejson-1.9.1', 'c:\
\soft\\dev_soft\\libs\\python\\django\\apps\\django-hotclub\\trunk\
\site-packages\\python-yadis-1.1.0', 'c:\\soft\\dev_soft\\libs\\python\
\django\\apps\\django-hotclub\\trunk\\site-packages\\python-
twitter-0.5', 'c:\\soft\\dev_soft\\libs\\python\\django\\apps\\django-
hotclub\\trunk\\site-packages\\docutils-0.4', 'c:\\soft\\dev_soft\\libs
\\python\\django\\apps\\django-hotclub\\trunk\\site-packages\
\feedparser-4.1', 'c:\\soft\\dev_soft\\libs\\python\\django\\apps\
\django-hotclub\\trunk\\site-packages\\textile-2.0.11', 'c:\\soft\
\dev_soft\\libs\\python\\django\\apps\\django-hotclub\\trunk\\site-
packages\\markdown-1.7', 'c:\\soft\\dev_soft\\libs\\python\\django\
\apps\\django-hotclub\\trunk\\site-packages\\pytz-2008b', 'c:\\soft\
\dev_soft\\libs\\python\\django\\apps\\django-hotclub\\trunk\\site-
packages\\ybrowserauth', 'c:\\soft\\dev_soft\\libs\\python\\django\
\apps\\django-hotclub\\trunk\\site-packages\\misc', 'C:\\Soft\\Dev_soft
\\Libs\\Python\\Django\\apps\\django-hotclub\\trunk\\pinax', 'C:\\Soft\
\Dev_soft\\Libs\\Python\\Django\\svn', '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', 'C:\\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\
\django-hotclub\\trunk\\site-packages', 'C:\\Soft\\Dev_soft\\Libs\
\Python\\Django\\apps\\django-hotclub\\trunk\\site-packages\
\dateutil', 'C:\\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\\django-
hotclub\\trunk\\site-packages\\docutils-0.4', 'C:\\Soft\\Dev_soft\\Libs
\\Python\\Django\\apps\\django-hotclub\\trunk\\site-packages\
\feedparser-4.1', 'C:\\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\
\django-hotclub\\trunk\\site-packages\\gdata.py-1.0.13', 'C:\\Soft\
\Dev_soft\\Libs\\Python\\Django\\apps\\django-hotclub\\trunk\\site-
packages\\markdown-1.7', 'C:\\Soft\\Dev_soft\\Libs\\Python\\Django\
\apps\\django-hotclub\\trunk\\site-packages\\misc', 'C:\\Soft\\Dev_soft
\\Libs\\Python\\Django\\apps\\django-hotclub\\trunk\\site-packages\
\python-openid-2.1.1', 'C:\\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\
\django-hotclub\\trunk\\site-packages\\python-twitter-0.5', 'C:\\Soft\
\Dev_soft\\Libs\\Python\\Django\\apps\\django-hotclub\\trunk\\site-
packages\\python-yadis-1.1.0', 'C:\\Soft\\Dev_soft\\Libs\\Python\
\Django\\apps\\django-hotclub\\trunk\\site-packages\\pytz-2008b', 'C:\
\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\\django-hotclub\\trunk\
\site-packages\\simplejson-1.9.1', 'C:\\Soft\\Dev_soft\\Libs\\Python\
\Django\\apps\\django-hotclub\\trunk\\site-packages\\textile-2.0.11',
'C:\\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\\django-hotclub\\trunk\
\site-packages\\vobject-0.6.6', 'C:\\Soft\\Dev_soft\\Libs\\Python\
\Django\\apps\\django-hotclub\\trunk\\site-packages\\ybrowserauth']
Server time: Fri, 15 Aug 2008 19:12:42 +0600
Second error:
Request Method: GET
Request URL:
http://localhost:8000/
Exception Type: TemplateSyntaxError
Exception Value: Caught an exception while rendering: Reverse for
'pinax.home' not found. Original Traceback (most recent call last):
File "C:\Soft\Dev_soft\Libs\Python\Django\svn\django\template
\debug.py", line 71, in render_node result = node.render(context) File
"C:\Soft\Dev_soft\Libs\Python\Django\svn\django\template
\defaulttags.py", line 369, in render args=args, kwargs=kwargs) File
"C:\Soft\Dev_soft\Libs\Python\Django\svn\django\core\urlresolvers.py",
line 307, in reverse *args, **kwargs))) File "C:\Soft\Dev_soft\Libs
\Python\Django\svn\django\core\urlresolvers.py", line 291, in reverse
raise NoReverseMatch("Reverse for '%s' not found." % lookup_view)
NoReverseMatch: Reverse for 'pinax.home' not found.
Exception Location: C:\Soft\Dev_soft\Libs\Python\Django\svn\django
\template\debug.py in render_node, line 81
Python Executable: C:\Python25\python.exe
Python Version: 2.5.2
Python Path: ['C:\\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\\django-
hotclub\\trunk\\apps', 'c:\\soft\\dev_soft\\libs\\python\\django\\apps\
\django-hotclub\\trunk\\site-packages\\dateutil', 'c:\\soft\\dev_soft\
\libs\\python\\django\\apps\\django-hotclub\\trunk\\site-packages\
\vobject-0.6.6', 'c:\\soft\\dev_soft\\libs\\python\\django\\apps\
\django-hotclub\\trunk\\site-packages\\python-openid-2.1.1', 'c:\\soft\
\dev_soft\\libs\\python\\django\\apps\\django-hotclub\\trunk\\site-
packages\\gdata.py-1.0.13', 'c:\\soft\\dev_soft\\libs\\python\\django\
\apps\\django-hotclub\\trunk\\site-packages\\simplejson-1.9.1', 'c:\
\soft\\dev_soft\\libs\\python\\django\\apps\\django-hotclub\\trunk\
\site-packages\\python-yadis-1.1.0', 'c:\\soft\\dev_soft\\libs\\python\
\django\\apps\\django-hotclub\\trunk\\site-packages\\python-
twitter-0.5', 'c:\\soft\\dev_soft\\libs\\python\\django\\apps\\django-
hotclub\\trunk\\site-packages\\docutils-0.4', 'c:\\soft\\dev_soft\\libs
\\python\\django\\apps\\django-hotclub\\trunk\\site-packages\
\feedparser-4.1', 'c:\\soft\\dev_soft\\libs\\python\\django\\apps\
\django-hotclub\\trunk\\site-packages\\textile-2.0.11', 'c:\\soft\
\dev_soft\\libs\\python\\django\\apps\\django-hotclub\\trunk\\site-
packages\\markdown-1.7', 'c:\\soft\\dev_soft\\libs\\python\\django\
\apps\\django-hotclub\\trunk\\site-packages\\pytz-2008b', 'c:\\soft\
\dev_soft\\libs\\python\\django\\apps\\django-hotclub\\trunk\\site-
packages\\ybrowserauth', 'c:\\soft\\dev_soft\\libs\\python\\django\
\apps\\django-hotclub\\trunk\\site-packages\\misc', 'C:\\Soft\\Dev_soft
\\Libs\\Python\\Django\\apps\\django-hotclub\\trunk\\pinax', 'C:\\Soft\
\Dev_soft\\Libs\\Python\\Django\\svn', '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', 'C:\\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\
\django-hotclub\\trunk\\site-packages', 'C:\\Soft\\Dev_soft\\Libs\
\Python\\Django\\apps\\django-hotclub\\trunk\\site-packages\
\dateutil', 'C:\\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\\django-
hotclub\\trunk\\site-packages\\docutils-0.4', 'C:\\Soft\\Dev_soft\\Libs
\\Python\\Django\\apps\\django-hotclub\\trunk\\site-packages\
\feedparser-4.1', 'C:\\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\
\django-hotclub\\trunk\\site-packages\\gdata.py-1.0.13', 'C:\\Soft\
\Dev_soft\\Libs\\Python\\Django\\apps\\django-hotclub\\trunk\\site-
packages\\markdown-1.7', 'C:\\Soft\\Dev_soft\\Libs\\Python\\Django\
\apps\\django-hotclub\\trunk\\site-packages\\misc', 'C:\\Soft\\Dev_soft
\\Libs\\Python\\Django\\apps\\django-hotclub\\trunk\\site-packages\
\python-openid-2.1.1', 'C:\\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\
\django-hotclub\\trunk\\site-packages\\python-twitter-0.5', 'C:\\Soft\
\Dev_soft\\Libs\\Python\\Django\\apps\\django-hotclub\\trunk\\site-
packages\\python-yadis-1.1.0', 'C:\\Soft\\Dev_soft\\Libs\\Python\
\Django\\apps\\django-hotclub\\trunk\\site-packages\\pytz-2008b', 'C:\
\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\\django-hotclub\\trunk\
\site-packages\\simplejson-1.9.1', 'C:\\Soft\\Dev_soft\\Libs\\Python\
\Django\\apps\\django-hotclub\\trunk\\site-packages\\textile-2.0.11',
'C:\\Soft\\Dev_soft\\Libs\\Python\\Django\\apps\\django-hotclub\\trunk\
\site-packages\\vobject-0.6.6', 'C:\\Soft\\Dev_soft\\Libs\\Python\
\Django\\apps\\django-hotclub\\trunk\\site-packages\\ybrowserauth']
Server time: Fri, 15 Aug 2008 19:19:42 +0600
Also please note that both of the above errors are actually generating
while processing site_base.html template in line 24 with marked {% url
home %} in red and the whole line is :
{% block logo_link_image %}<a href="{% url home %}"><img src="/
site_media/logo.png" alt="Pinax"/></a>{% endblock %}
For your convenience I wanted to attach the full debug response (after
saving those as html files from browser) here, but google group's
interface is not supporting attachment files. So, I've uploaded those
files to
http://dhost.info/sphinx/temp/ so that you can see the
details of the errors.
PS: I'm running windows vista home premium at my development
environment, is this an issue? If it is, why I'm not getting similar
errors in other applications that I'm running on same machine to learn
advanced django techniques? Also all my written apps are functioning
properly with the latest trunk.
I'm really interested to fix these problems and play with pinux to
utilize some of its apps in one of my planned off-time personal
website to avoid re-invention of the wheel.
Regards,
Shihan
On Aug 15, 2:19 am, "Ariel Mauricio Nunez Gomez"
>
http://groups.google.com/group/django-users/browse_thread/thread/9112...