Hey, Friedel!

Thank you for response, I've been waiting for it.

I have patched pocommon.py
But it did not help - still the same exception when I click login link.

Pay attention that the exception is thrown not only for Terminology
project, but even when I press "login" link.
Also, our exception trace is different, i have quoted it once again, just
in case.
Looks like the error we experience has another nature.

This error is critical for our project.
We are moving to the new server, but login link just does not work.
I feel helpless with Pootle on our new server - we need to setup it as soon
as possible, but it just does not work.

However  Pootle on our old server runs flawlessly and used by many
translators. I have setup it half a year ago.


I hope you can help us.

Is there any step by step tutorial how to install Pootle 2.1.6 on Apache?
I have not found one.
I'm afraid that I may have installed some bad Python package along the way.


Pasha, YoWindow <http://yowindow.com/> author

-----

MOD_PYTHON ERROR

ProcessId:      12058
Interpreter:    'pootle'

ServerName:
DocumentRoot:   '/var/www'

URI:            '/pootle/accounts/login/'
Location:       '/pootle'
Directory:      None
Filename:       '/var/www/pootle/wsgi.py'
PathInfo:       '/accounts/login/'

Phase:          'PythonHandler'
Handler:        'django.core.handlers.modpython'

Traceback (most recent call last):

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line
1537, in HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line
1229, in _process_target
    result = _execute_target(config, req, object, arg)

  File "/usr/lib/python2.7/dist-packages/mod_python/importer.py", line
1128, in _execute_target
    result = object(arg)

  File 
"/usr/local/lib/python2.7/dist-packages/django/core/handlers/modpython.py",
line 228, in handler
    return ModPythonHandler()(req)

  File 
"/usr/local/lib/python2.7/dist-packages/django/core/handlers/modpython.py",
line 205, in __call__
    response = middleware_method(request, response)

  File "/usr/local/lib/python2.7/dist-packages/django/middleware/csrf.py",
line 276, in process_response
    resp2 = self.response_middleware.process_response(request, resp)

  File "/usr/local/lib/python2.7/dist-packages/django/middleware/csrf.py",
line 242, in process_response
    response.content, n = _POST_FORM_RE.subn(add_csrf_field, response.content)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position
551: ordinal not in range(128)-




On 22 February 2012 12:54, F Wolff <frie...@translate.org.za> wrote:

> Op Ma, 2012-02-20 om 17:34 +0400 skryf Pavel Repkin:
> > Dear Pootle team,
> >
> > I have installed Pootle 2.1.6 over Apache on our Ubuntu 11 server.
> > It is a clean install.
> > I have downloaded the package and copied its contents to the server
> public
> > folder.
> > It all goes very well.
> > After opening Pootle front page I see Terminology and Tutorial projects
> and
> > all default languages.
> >
> > However, when I'm trying to login I get the error I have quoted below.
> >
> > "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position
> 551:
> > ordinal not in range(128)"
> >
> > The same error displayed when I'm trying to translate strings in
> > Terminologogy project for example.
> >
> >
> > I'm sorry if this question has already been asked, but I was not able to
> > find anything similar on the list.
> > I've spent several hours trying to find a solution - but no luck.
> > What could go wrong?
> > Please help.
>
> Hallo Pavel
>
> I believe what you are describing is the same as this issue:
> http://bugs.locamotion.org/show_bug.cgi?id=1951
>
> Luckily this has already been addressed. You can fix this temporarily by
> removing the non-ascii characters from the #: comments in the po files
> in the terminology project and rereading the files into the database.
> Alternatively you can overwrite your copy of
> translate/storage/pocommon.py with this version that should form part of
> the next release where it is fixed:
>
> https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/translate/storage/pocommon.py
>
> (this is in the Translate Toolkit, not in Pootle).
>
> I hope that helps.
> Friedel
>
> --
> Recently on my blog:
>
> http://translate.org.za/blogs/friedel/en/content/survey-about-usability-virtaal
>
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Translate-pootle mailing list
> Translate-pootle@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/translate-pootle
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Translate-pootle mailing list
Translate-pootle@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/translate-pootle

Reply via email to