Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Pinux is broken with current django trunk
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 26 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
M. N. Islam Shihan  
View profile  
 More options Aug 14 2008, 12:16 pm
From: "M. N. Islam Shihan" <mnis4...@gmail.com>
Date: Thu, 14 Aug 2008 09:16:06 -0700 (PDT)
Local: Thurs, Aug 14 2008 12:16 pm
Subject: Pinux is broken with current django trunk
Hi,

I'm using r8349 of django and getting the following error for each of
the pages.

Can any one tell me which revision of django trunk is required to work
with pinux?

As I'm a newbie in django-python programming can't fix the internals.

Thanks in advance.

Regards,
Shihan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
M. N. Islam Shihan  
View profile  
 More options Aug 14 2008, 12:17 pm
From: "M. N. Islam Shihan" <mnis4...@gmail.com>
Date: Thu, 14 Aug 2008 09:17:07 -0700 (PDT)
Local: Thurs, Aug 14 2008 12:17 pm
Subject: Re: Pinux is broken with current django trunk
Forgot to include the error message in my previous post:

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

On Aug 14, 10:16 pm, "M. N. Islam Shihan" <mnis4...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ariel Mauricio Nunez Gomez  
View profile  
 More options Aug 14 2008, 12:17 pm
From: "Ariel Mauricio Nunez Gomez" <ingenieroar...@gmail.com>
Date: Thu, 14 Aug 2008 11:17:18 -0500
Local: Thurs, Aug 14 2008 12:17 pm
Subject: Re: Pinux is broken with current django trunk

Which error?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
M. N. Islam Shihan  
View profile  
 More options Aug 14 2008, 12:19 pm
From: "M. N. Islam Shihan" <mnis4...@gmail.com>
Date: Thu, 14 Aug 2008 09:19:03 -0700 (PDT)
Local: Thurs, Aug 14 2008 12:19 pm
Subject: Re: Pinux is broken with current django trunk
Thanks for your quick response.
Please refer to my second post.

Thanks
Shihan

On Aug 14, 10:17 pm, "Ariel Mauricio Nunez Gomez"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
M. N. Islam Shihan  
View profile  
 More options Aug 14 2008, 12:24 pm
From: "M. N. Islam Shihan" <mnis4...@gmail.com>
Date: Thu, 14 Aug 2008 09:24:17 -0700 (PDT)
Local: Thurs, Aug 14 2008 12:24 pm
Subject: Re: Pinux is broken with current django trunk
Also if anyone running pinux successfully with django trunk version,
let me know the exact revision number you are using so that I can play
with the apps provided by pinux without diving into fixing cores of
pinux to be compatible with current django trunk.

Regards,
Shihan

On Aug 14, 10:17 pm, "Ariel Mauricio Nunez Gomez"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ariel  
View profile  
 More options Aug 14 2008, 12:24 pm
From: Ariel <ingenieroar...@gmail.com>
Date: Thu, 14 Aug 2008 09:24:52 -0700 (PDT)
Local: Thurs, Aug 14 2008 12:24 pm
Subject: Re: Pinux is broken with current django trunk
Seems like a bug in django, please wait a couple of hours (or
minutes?) and do a svn up, or do a svn up -r8339 in the meantime.

Django trunk is very unstable right now as the feature freeze is
aproaching. After tomorrow you would probably not have to deal with
this kind of issues.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
M. N. Islam Shihan  
View profile  
 More options Aug 14 2008, 3:42 pm
From: "M. N. Islam Shihan" <mnis4...@gmail.com>
Date: Thu, 14 Aug 2008 12:42:41 -0700 (PDT)
Local: Thurs, Aug 14 2008 3:42 pm
Subject: Re: Pinux is broken with current django trunk
Hi Ariel,
Thanx for your reply. I understand the fact & decided to wait till
tomorrow to get the feature freeze release.
Thanks again.
Shihan

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dougn  
View profile  
 More options Aug 14 2008, 4:08 pm
From: Dougn <doug.napole...@gmail.com>
Date: Thu, 14 Aug 2008 13:08:34 -0700 (PDT)
Local: Thurs, Aug 14 2008 4:08 pm
Subject: Re: Pinux is broken with current django trunk
I have not been able to reproduce the problem described. I dont see
any changes to django_logging (which is where the re error is from and
is not actually directly related to any django code).

I have been continually updating and running pinax for the past 24
hours and have not had any problems.

Version: SVN-754 - Django: SVN-8351

django-notification SVN-90
django-email-confirmation SVN-34
django-robots SVN-14
django-databasetemplateloader SVN-36
django-friends SVN-45
django-mailer SVN-35
django-messages SVN-63
django-announcements SVN-30
django-oembed SVN-21
django-logging SVN-None
django-crashlog SVN-3
django-pagination SVN-24
django-threadedcomments SVN-119
django-wikiapp SVN-153
django-timezones SVN-27
django-feedutil SVN-4
django-app-plugins SVN-13
django-voting SVN-64
django-bookmarks SVN-30
django-avatar SVN-21
django-ajax-validation SVN-11
django-photologue SVN-289

On Aug 14, 3:42 pm, "M. N. Islam Shihan" <mnis4...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ariel Mauricio Nunez Gomez  
View profile  
 More options Aug 14 2008, 4:19 pm
From: "Ariel Mauricio Nunez Gomez" <ingenieroar...@gmail.com>
Date: Thu, 14 Aug 2008 15:19:36 -0500
Local: Thurs, Aug 14 2008 4:19 pm
Subject: Re: Pinux is broken with current django trunk

Doug, there is a problem with sessions after a recent change.

It apears after you syncdb and delete your session data on the browser.

Here is more info, I think this is fixed now.

http://groups.google.com/group/django-users/browse_thread/thread/9112...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
M. N. Islam Shihan  
View profile  
 More options Aug 15 2008, 9:40 am
From: "M. N. Islam Shihan" <mnis4...@gmail.com>
Date: Fri, 15 Aug 2008 06:40:21 -0700 (PDT)
Local: Fri, Aug 15 2008 9:40 am
Subject: Re: Pinux is broken with current django trunk
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', ...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ariel Mauricio Nunez Gomez  
View profile  
 More options Aug 15 2008, 10:27 am
From: "Ariel Mauricio Nunez Gomez" <ingenieroar...@gmail.com>
Date: Fri, 15 Aug 2008 09:27:16 -0500
Local: Fri, Aug 15 2008 10:27 am
Subject: Re: Pinux is broken with current django trunk

Sinhan,

1. Please, please stop refering to Pinax as Pinux.
2. Please delete all your browsers history and start from fresh database
(drop your pg database or erase your dev.db)
3. Delete your pinax checkout and check it out again. (optional) (with svn,
not hg or git)
4. Delete your django checkout and check it out again. (optional)

Why am I suggesting all this? Well, in part because the session bug was a
really nasty one and it was about sessions in your browser not found on the
db. Please clean all your sessions, in browser and db and try again. Steps 3
and 4 are not required (in fact using pinax via svn is) there are a couple
of problems with svn:externals linking to branches of some of the apps.

Let me know how it goes. It is a shame you are having so much trouble, but
remember: Calm after the storm.

Best,
Ariel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "pinax is broken with current django trunk" by M N Islam Shihan
M N Islam Shihan  
View profile  
 More options Aug 15 2008, 12:16 pm
From: "M N Islam Shihan" <mnis4...@gmail.com>
Date: Fri, 15 Aug 2008 22:16:24 +0600
Local: Fri, Aug 15 2008 12:16 pm
Subject: Re: pinax is broken with current django trunk

Hi Ariel,

Thanks for your reply. I'm really ashamed to call pinax as pinux all the times. This really a silly mistake and I promise it won't be repeated again.

I've tried all 2,3,4 solution strategies successively as you mentioned, but no luck.

I'm really now feeling frustrating and as the errors are same I'm not replicating again.

PS: Now I'm thinking the issue might be with the Python installation, I'm using Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) and am planning to use other versions as well.

Thanks for your help.

Regards,
Shihan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
M. N. Islam Shihan  
View profile  
 More options Aug 16 2008, 11:10 am
From: "M. N. Islam Shihan" <mnis4...@gmail.com>
Date: Sat, 16 Aug 2008 08:10:30 -0700 (PDT)
Local: Sat, Aug 16 2008 11:10 am
Subject: Re: pinax is broken with current django trunk
Hi,

At last I've fixed the issue with running pinax in windows. I'm
mentioning this as in my understanding any windows user will encounter
the same issue while running pinax and now I am thinking I was the
first pinax user in windows.

The issue was not with pinax instead with a third party library named
gdata on which pinax is dependednt. The gdata package is currently
shipped with two sym-links to the src/gdata and src/atom folders
within the actual site-packages/gdata.py-1.0.13 folder and as windows
does not support sym-linking to other folder as the unix genre OSs,
Pyhton was failing to locate this package. As a resolution I've copied
both the gdata and atom folders from site-packages/gdata.py-1.0.13/src
folder to site-packages/gdata.py-1.0.13 after removing the sym-links
to those folder. I believe somewhere in the pinax document (may be the
README file) this issue should be mentioned so that other windows
users like me won't have this issue.

Also another thing I must note this gdata issue could be fixed with
minimum investigation but it became worst and misleading due to an
issue with django-logging app which failed generically with all
exception pages generated by django. I am thinking to post a ticket
(or may be a patch) on django-logging site so that they update the
middleware code not to intercept the exception pages (as exception
pages have enough info than the logging middleware).

Thanks for your help.
Regards,
Shihan

On Aug 15, 10:16 pm, "M N Islam Shihan" <mnis4...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Allan  
View profile  
 More options Aug 17 2008, 10:50 am
From: Allan <amet...@mindspring.com>
Date: Sun, 17 Aug 2008 07:50:42 -0700 (PDT)
Local: Sun, Aug 17 2008 10:50 am
Subject: Re: pinax is broken with current django trunk
I seem to be having the same issue (Windows, django-1.0-beta-1, pinax
Rev: 769).  Unfortunately for me, replacing the symlinks in gdata
didn't seem to resolve the issue.

I only have about 45 minutes of experience with pinax thus far, so my
problem could definitely be a newbie issue.  Any suggestions on how I
can debug this?  My stack trace appears below.

Traceback (most recent call last):

  File "c:\python25\Lib\site-packages\django\core\servers
\basehttp.py", line 277, in run
    self.result = application(self.environ, self.start_response)

  File "c:\python25\Lib\site-packages\django\core\servers
\basehttp.py", line 634, in __call__
    return self.application(environ, start_response)

  File "c:\python25\Lib\site-packages\django\core\handlers\wsgi.py",
line 220, in __call__
    response = middleware_method(request, response)

  File "C:\Users\allan\src\django\app\pinax\apps\djangologging
\middleware.py", line 153, in process_response
    self._rewrite_html(request, response)

  File "C:\Users\allan\src\django\app\pinax\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 261, in _subx
    template = _compile_repl(template, pattern)

  File "c:\python25\lib\re.py", line 248, in _compile_repl
    raise error, v # invalid expression

error: bad group name


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin  
View profile  
 More options Aug 18 2008, 4:51 pm
From: Robin <rober...@gmail.com>
Date: Mon, 18 Aug 2008 13:51:06 -0700 (PDT)
Local: Mon, Aug 18 2008 4:51 pm
Subject: Re: pinax is broken with current django trunk
Hi !

as a possible solution for django in windows, I think also have some
solution for the sym-links, is the instant django: http://www.instantdjango.com/

And also helps a lot with the testing and development of django, and
also pinax. I have tried it and works fine with the latest version of
pinax and no problem found there.

r

On Aug 17, 4:50 pm, Allan <amet...@mindspring.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ariel Mauricio Nunez Gomez  
View profile  
 More options Aug 18 2008, 5:26 pm
From: "Ariel Mauricio Nunez Gomez" <ingenieroar...@gmail.com>
Date: Mon, 18 Aug 2008 16:26:19 -0500
Local: Mon, Aug 18 2008 5:26 pm
Subject: Re: pinax is broken with current django trunk

+1 for instantdjango


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
M. N. Islam Shihan  
View profile  
 More options Aug 19 2008, 10:10 am
From: "M. N. Islam Shihan" <mnis4...@gmail.com>
Date: Tue, 19 Aug 2008 07:10:21 -0700 (PDT)
Local: Tues, Aug 19 2008 10:10 am
Subject: Re: pinax is broken with current django trunk
Hi Robin,

I'm not sure how instantdjango helped to recover any sym-link related
issues in windows platform. instantdjango is a nice package for
newbies and I used to use instantdjango in my initial days with
django. But when I learned the internals and felt comfortable to do
the details by myself I switched to manual installation of django and
django apps with standalone python-based installation to have greater
flexibilities and controls.

Basically what instantdjango does is just to provide all needed parts
(along with some useful windows tools) along with a utility windows
batch file to set all the necessary python path needed for django
development. I go through and play with the batch file a lot but never
saw anything related to handle sym-links (and its usual as sym-links
are not supported in windows environment, so there should be no native
way in windows batch to deal with unix sym-links).

Anyway, which version of windows you are using with instant-django?

Also are you using manual installation of gdata package using setup.py
into your python_home/lib/site_packages/? Manual installation
shouldn't have the sym-link issue but I liked to avoid it for any
actively developed package checked out from svn repository to stay up-
to-date with recent revisions and utilize the manual update of
pythonpath environment variable. But if you are using the manual
pyhtonpath update strategy like me can you please tell me the revision
number of your gdata package (I think old revisions don't have this
sym-link issue)?

BTW, I'm also a newbie and don't think me otherwise. I am just a bit
curious to know the actual fact that helped you to overcome the gdata
package's sym-link issue in windows platform.

Regards,
Shihan

On Aug 19, 2:51 am, Robin <rober...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
M. N. Islam Shihan  
View profile  
 More options Aug 19 2008, 10:33 am
From: "M. N. Islam Shihan" <mnis4...@gmail.com>
Date: Tue, 19 Aug 2008 07:33:42 -0700 (PDT)
Local: Tues, Aug 19 2008 10:33 am
Subject: Re: pinax is broken with current django trunk
Hi Allan,

You can try the followings:

1. You can run the "setup.py build" and "setup.py install" commands
from a shell prompt in your django-hotclub/site-packages/
gdata.py-1.0.13 folder or manually update your pythonpath environment
variable to have the full path of the django-hotclub/site-packages/
gdata.py-1.0.13/src folder. Depending on your windows version setting
this variable might vary : but the usual steps to get the environment
variable section is "Control Panel->System->Advanced->Environment
variables"

2. As manage.py in "django-hotclub/pinax" folder set the necessary
python paths, you can try removing anything named "gdata" and "atom"
found in "django-hotclub/site-packages/gdata.py-1.0.13" folder, copy
the contents of "django-hotclub/site-packages/gdata.py-1.0.13/src"
into "django-hotclub/site-packages/gdata.py-1.0.13" folder. If this
doesn't work, open the "packages.pth" file found in "django-hotclub/
trunk/site-packages" using any text editor like notepad++ or editplus
(you shouldn't use notepad as it can't understand unix newline chars)
add any text to that file, save it, remove the added text and save it
again. What you'll do with this can be done very easily in an unix box
using touch command but in windows platform there isn't any native
equivalent.

3. Make sure you ran "manage.py syncdb" command at least once from the
"django-hotclub/pinax" folder.

If the above steps doesn't work for you anyhow, open the settings.py
file "django-hotclub/pinax" folder and comment out the line

'djangologging.middleware.LoggingMiddleware',

in "MIDDLEWARE_CLASSES" configuration by appending a # before that
line to view the actual error that is happening in your browser. You
can also post that response so that we can help you to find out and
resolve the actual issue.

Regards,
Shihan

On Aug 17, 8:50 pm, Allan <amet...@mindspring.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robin  
View profile  
 More options Aug 19 2008, 3:27 pm
From: Robin <rober...@gmail.com>
Date: Tue, 19 Aug 2008 12:27:01 -0700 (PDT)
Local: Tues, Aug 19 2008 3:27 pm
Subject: Re: pinax is broken with current django trunk
Hello Shihan,

don't know exactly why you have problems with pinax and instantdjango
and I haven't. I didn't install anything special (gdata), and don't
make any special sym-link. I am using windows XP. And just grab a
fresh copy of pinax and everything works for me.

Related to the sym-link stuff, I was refering to 'junction' which is
bundled with instantdjango (instantdjango\Utilities\junction.exe) and
is suppose to do the same job as 'ln' on Unix, don't know if this is
usefull to you. Probably you can use this tool to create the proper
links related to gdata lib.

regards, r

On Aug 19, 4:10 pm, "M. N. Islam Shihan" <mnis4...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
M. N. Islam Shihan  
View profile  
 More options Aug 20 2008, 11:14 am
From: "M. N. Islam Shihan" <mnis4...@gmail.com>
Date: Wed, 20 Aug 2008 08:14:45 -0700 (PDT)
Local: Wed, Aug 20 2008 11:14 am
Subject: Re: pinax is broken with current django trunk
Hi Robin,

Surprisingly there isn't any junction.exe in the utilities folder (and
neither in other folders as well) in the instanddjango distribution. I
thought I had a backdated installer and so I've just downloaded the
package again a few while ago but still couldn't found that
junction.exe in current package. Are you using any older version of
instantdjango package which used to include the junction tool (
http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx )
provided by system internals, but removed that tool from recent
package anyhow?

But AFAIK, junction.exe can't help to resolve/understand/transform
symlinks created in unix platform to windows equivalent which could
solve this recent gdata symlink issue. I'm not sure how everything is
being special in your environment, but I must congratulate for you to
have a better luck than me.

Anyway, I think this investigation for me to solve this gdata symlink
issue was very useful and I learned quite a few things.

Allan,

Did you find any luck with your pinax installation issue in windows
platform?

I've created a patch for django-hotclub/apps/djangologging/
management.py file so that django logging middleware don't intercept
the exception responses generated by django which is djangologging's
current behaviour and the cause for the misleading exception stack
trace in the browser instead of showing the actual and very useful
exception info generated by django for any exception. I know I need to
place this patch in djangologging's site, but also sharing it here if
anyone needs it while using pinax due to pinax's dependency on
djangologging app. The block next to my signature is the patch code.

Thanks & Regards,
Shihan

Index: middleware.py
===================================================================
--- middleware.py       (revision 25)
+++ middleware.py       (working copy)
@@ -14,6 +14,7 @@
 from django.shortcuts import render_to_response
 from django.template import loader
 from django.utils.cache import add_never_cache_headers
+from django.http import
Http404,HttpResponseBadRequest,HttpResponseForbidden,HttpResponseNotAllowed ,HttpResponseNotFound,
HttpResponseServerError
 try:
     from django.utils.encoding import smart_str
 except ImportError:
@@ -140,6 +141,9 @@

     def process_response(self, request, response):

+        if isinstance(response,
(Http404,HttpResponseBadRequest,HttpResponseForbidden,HttpResponseNotAllowe d,HttpResponseNotFound,
HttpResponseServerError,)):
+            return response
+
         if logging_output_enabled and \
                 request.META.get('REMOTE_ADDR') in
settings.INTERNAL_IPS and \
                 not getattr(response, SUPPRESS_OUTPUT_ATTR, False):

On Aug 20, 1:27 am, Robin <rober...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
M. N. Islam Shihan  
View profile  
 More options Aug 20 2008, 11:22 am
From: "M. N. Islam Shihan" <mnis4...@gmail.com>
Date: Wed, 20 Aug 2008 08:22:39 -0700 (PDT)
Local: Wed, Aug 20 2008 11:22 am
Subject: Re: pinax is broken with current django trunk
I've posted the patch for django-logging app into their site's issue
tracker as well and the link is http://code.google.com/p/django-logging/issues/detail?id=16#c1

Thanks,
Shihan

On Aug 20, 9:14 pm, "M. N. Islam Shihan" <mnis4...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
M. N. Islam Shihan  
View profile  
 More options Aug 21 2008, 8:59 am
From: "M. N. Islam Shihan" <mnis4...@gmail.com>
Date: Thu, 21 Aug 2008 05:59:29 -0700 (PDT)
Local: Thurs, Aug 21 2008 8:59 am
Subject: Re: pinax is broken with current django trunk
Hi,

As per the issue and patch submission to django-logging site by me,
the author of django-logging app has updated the middleware.py with
the necessary fixes (using much better way than my patch) and
committed the change to r26 in svn repository.

So, updating django-logging app to latest revision should help many
like me and Allan to avoid viewing the exception generated in django-
logging app instead of the actual error response.

Regards,
Shihan

On Aug 20, 9:22 pm, "M. N. Islam Shihan" <mnis4...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ingenutrix10  
View profile  
 More options Sep 26 2008, 4:57 pm
From: Ingenutrix10 <ingenut...@gmail.com>
Date: Fri, 26 Sep 2008 13:57:10 -0700 (PDT)
Local: Fri, Sep 26 2008 4:57 pm
Subject: Re: pinax is broken with current django trunk
Shihan , Thanks for your detailed writeup.  I got the Pinax truck on
20080926 and was having problems running it on WinXPPro + Python 2.5.2
+ Django 1.0 final release. I just ran the "setup.py build" and
"setup.py install" commands you have documented and the problems were
resolved. :-)

On Aug 19, 7:33 pm, "M. N. Islam Shihan" <mnis4...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
j1z0  
View profile  
 More options Sep 28 2008, 9:45 pm
From: j1z0 <johnso...@gmail.com>
Date: Sun, 28 Sep 2008 18:45:39 -0700 (PDT)
Local: Sun, Sep 28 2008 9:45 pm
Subject: Re: pinax is broken with current django trunk
Thanks Shinah,

You solution worked like a charm for me. :)

Cheers,
j1z0

On Aug 16, 11:10 pm, "M. N. Islam Shihan" <mnis4...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jlin  
View profile  
 More options Oct 5 2008, 10:58 pm
From: jlin <jhs...@gmail.com>
Date: Sun, 5 Oct 2008 19:58:35 -0700 (PDT)
Local: Sun, Oct 5 2008 10:58 pm
Subject: Re: pinax is broken with current django trunk
Hi Shihan,

Thanks for you diligence in tracking this down! I had the same
problem, and ended up making an ntfs hard link for those directories.

Thanks again
Jonathan

On Aug 16, 11:10 am, "M. N. Islam Shihan" <mnis4...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 26   Newer >
« Back to Discussions « Newer topic     Older topic »