Bug#496041: roundup-demo fails with UnicodeDecodeError
[ resent to the bug, so it is more visible ] Hi Steko, On Fri, 22.08.2008 at 11:48:50 +0200, Stefano Costa <[EMAIL PROTECTED]> wrote: > roundup-demo starts OK, but when I load the web page I get > this stacktrace of errors in the terminal: I've reconfigured my Lenny box to have your locale, and tried to reproduce your problem: $ roundup-demo Server running - connect to: http://localhost:8917/demo/ 1. Log in as "demo"/"demo" or "admin"/"admin". 2. Hit Control-C to stop the server. 3. Re-start the server by running "roundup-demo" again. 4. Re-initialise the server by running "roundup-demo nuke". Demo tracker is set up to be accessed by localhost browser. If you run demo on a server host, please stop the demo, open file "demo/config.ini" with your editor, change the host name in the "web" option in section "[tracker]", save the file, then re-run the demo program. 192.168.1.6 - - [02/Sep/2008 10:41:40] "GET /demo/ HTTP/1.1" 200 - 192.168.1.11 - - [02/Sep/2008 10:43:30] "GET /demo/ HTTP/1.1" 200 - 192.168.1.11 - - [02/Sep/2008 10:43:30] "GET /demo/@@file/style.css HTTP/1.1" 200 - 192.168.1.11 - - [02/Sep/2008 12:43:31] "GET /favicon.ico HTTP/1.1" 200 - 192.168.1.11 - - [02/Sep/2008 10:44:00] "POST /demo/ HTTP/1.1" 302 - 192.168.1.11 - - [02/Sep/2008 10:44:00] "GET /demo/ HTTP/1.1" 200 - 192.168.1.11 - - [02/Sep/2008 10:44:00] "GET /demo/@@file/style.css HTTP/1.1" 200 - 192.168.1.11 - - [02/Sep/2008 12:44:01] "GET /favicon.ico HTTP/1.1" 200 - 192.168.1.11 - - [02/Sep/2008 10:44:04] "GET /demo/issue?status=-1,1,2,3,4,5,6,7&@sort=-activity&@search_text=&@dispname=Your%20Issues&@filter=status,assignedto&@group=priority&@columns=id,activity,title,creator,status&assignedto=3&@pagesize=50&@startwith=0 HTTP/1.1" 200 - 192.168.1.11 - - [02/Sep/2008 10:44:07] "GET /demo/user3 HTTP/1.1" 200 - 192.168.1.11 - - [02/Sep/2008 10:44:12] "GET /demo/issue?status=-1,1,2,3,4,5,6,7&@sort=-activity&@search_text=&@dispname=Show%20Unassigned&@filter=status,assignedto&@group=priority&@columns=id,activity,title,creator,status&assignedto=-1&@pagesize=50&@startwith=0 HTTP/1.1" 200 - 192.168.1.11 - - [02/Sep/2008 10:44:13] "GET /demo/[EMAIL PROTECTED] HTTP/1.1" 200 - 192.168.1.11 - - [02/Sep/2008 10:44:47] "POST /demo/issue HTTP/1.1" 302 - 192.168.1.11 - - [02/Sep/2008 10:44:47] "GET /demo/[EMAIL PROTECTED]&@template=item HTTP/1.1" 200 - 192.168.1.11 - - [02/Sep/2008 10:44:53] "GET /demo/issue?status=-1,1,2,3,4,5,6,7&@sort=-activity&@search_text=&@dispname=Show%20All&@filter=status&@group=priority&@columns=id,activity,title,creator,assignedto,status&@pagesize=50&@startwith=0 HTTP/1.1" 200 - ^CKeyboard Interrupt: exiting [EMAIL PROTECTED]:~ $ locale LANG=it_IT.UTF-8 LC_CTYPE="it_IT.UTF-8" LC_NUMERIC="it_IT.UTF-8" LC_TIME="it_IT.UTF-8" LC_COLLATE="it_IT.UTF-8" LC_MONETARY="it_IT.UTF-8" LC_MESSAGES="it_IT.UTF-8" LC_PAPER="it_IT.UTF-8" LC_NAME="it_IT.UTF-8" LC_ADDRESS="it_IT.UTF-8" LC_TELEPHONE="it_IT.UTF-8" LC_MEASUREMENT="it_IT.UTF-8" LC_IDENTIFICATION="it_IT.UTF-8" LC_ALL= [EMAIL PROTECTED]:~ $ dpkg -l roundup Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Nome Versione Descrizione +++--- ii roundup 1.4.4-2 an issue-tracking system As you can see, I've selected the same locale you're using, but I can't see the problem. I dimly remember that such Unicode decoding errors are often caused by some other breakage in one's Python installation, but don't recall the details. Kind regards, --Toni++ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#496041: roundup-demo fails with UnicodeDecodeError
tags 496041 moreinfo thanks Hi Steko, On Fri, 22.08.2008 at 11:48:50 +0200, Stefano Costa <[EMAIL PROTECTED]> wrote: > roundup-demo starts OK, but when I load the web page I get > this stacktrace of errors in the terminal: > > [EMAIL PROTECTED]:~$ roundup-demo > http://localhost:8917/demo/ > ... [ clipped ] > > 127.0.0.1 - - [22/Aug/2008 09:47:41] "GET /demo/ HTTP/1.1" 400 - > EXCEPTION AT Fri Aug 22 09:47:41 2008 > Traceback (most recent call last): > File > "/usr/lib/python2.5/site-packages/roundup/scripts/roundup_server.py", > line 188, in run_cgi > self.inner_run_cgi() > File > ... more traceack info clipped I can't reproduce it right now. This is what I get: [ on the Lenny VM: ] $ roundup-demo nuke Enter directory path to create demo tracker [./demo]: Trying to set up web server on port 8917 ... should be ok. Server running - connect to: http://localhost:8917/demo/ 1. Log in as "demo"/"demo" or "admin"/"admin". 2. Hit Control-C to stop the server. 3. Re-start the server by running "roundup-demo" again. 4. Re-initialise the server by running "roundup-demo nuke". Demo tracker is set up to be accessed by localhost browser. If you run demo on a server host, please stop the demo, open file "demo/config.ini" with your editor, change the host name in the "web" option in section "[tracker]", save the file, then re-run the demo program. 192.168.1.11 - - [23/Aug/2008 11:04:25] "GET /demo/index HTTP/1.1" 200 - 192.168.1.11 - - [23/Aug/2008 11:04:25] "GET /demo/@@file/style.css HTTP/1.1" 200 - I have Lenny running in a VM and access roundup 1.4.4-2 on Lenny via SSH port forwarding. > Versions of packages roundup suggests: > pn libapache2-mod-python (no description available) > ii python-gdbm 2.5.2-1GNU dbm database support for > Pytho > ii python-mysqldb1.2.2-7A Python interface to MySQL > ii python-openssl0.7-2 Python wrapper around the > OpenSSL > ii python-psycopg2 2.0.7-4Python module for PostgreSQL > pn python-pyme(no description available) > pn python-sqlite (no description available) > ii python-tz 2008c-2Python version of the Olson > timezo > ii python-xapian 1.0.7-3Xapian search engine interface > for > pn runit (no description available) You have some different packages installed. I will need some time to find out what actually happens. Kind regards, --Toni++ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#496041: roundup-demo fails with UnicodeDecodeError
Package: roundup Version: 1.4.4-2 Severity: important roundup-demo starts OK, but when I load the web page I get this stacktrace of errors in the terminal: [EMAIL PROTECTED]:~$ roundup-demo Server running - connect to: http://localhost:8917/demo/ 1. Log in as "demo"/"demo" or "admin"/"admin". 2. Hit Control-C to stop the server. 3. Re-start the server by running "roundup-demo" again. 4. Re-initialise the server by running "roundup-demo nuke". Demo tracker is set up to be accessed by localhost browser. If you run demo on a server host, please stop the demo, open file "demo/config.ini" with your editor, change the host name in the "web" option in section "[tracker]", save the file, then re-run the demo program. 127.0.0.1 - - [22/Aug/2008 09:47:41] "GET /demo/ HTTP/1.1" 400 - EXCEPTION AT Fri Aug 22 09:47:41 2008 Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/roundup/scripts/roundup_server.py", line 188, in run_cgi self.inner_run_cgi() File "/usr/lib/python2.5/site-packages/roundup/scripts/roundup_server.py", line 362, in inner_run_cgi tracker.Client(tracker, self, env).main() File "/usr/lib/python2.5/site-packages/roundup/cgi/client.py", line 252, in main self.inner_main() File "/usr/lib/python2.5/site-packages/roundup/cgi/client.py", line 381, in inner_main self.write_html(cgitb.html(i18n=self.translator)) File "/usr/lib/python2.5/site-packages/roundup/cgi/cgitb.py", line 120, in html head = head + (_('A problem occurred while running a Python script. ' File "/usr/lib/python2.5/site-packages/roundup/cgi/TranslationService.py", line 40, in gettext return self.ugettext(msgid).encode(self.OUTPUT_ENCODING) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 15: ordinal not in range(128) Best regards, Steko -- Stefano Costa http://www.iosa.it/ -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-486 Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages roundup depends on: ii adduser 3.110 add and remove users and groups ii python2.5.2-2An interactive high-level object-o ii python-central0.6.8 register and build utility for Pyt roundup recommends no packages. Versions of packages roundup suggests: pn libapache2-mod-python (no description available) ii python-gdbm 2.5.2-1GNU dbm database support for Pytho ii python-mysqldb1.2.2-7A Python interface to MySQL ii python-openssl0.7-2 Python wrapper around the OpenSSL ii python-psycopg2 2.0.7-4Python module for PostgreSQL pn python-pyme(no description available) pn python-sqlite (no description available) ii python-tz 2008c-2Python version of the Olson timezo ii python-xapian 1.0.7-3Xapian search engine interface for pn runit (no description available) -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]