Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#227 closed defect (duplicate)

no encoding declared in winswitch/util/xkbmap_util.py

Reported by: 235 Owned by: Antoine Martin
Priority: major Milestone: 0.12
Component: Server Keywords:
Cc:

Description

in a recent package for ubuntu 12.10

[ee] 2012/10/12 11:21:14.363124 Traceback (most recent call last):
[ee] 2012/10/12 11:21:14.363149   File "/usr/lib/python2.7/dist-packages/winswitch/server/controller.py", line 316, in ready
[ee] 2012/10/12 11:21:14.363166     self.assign_virt_utils()
[ee] 2012/10/12 11:21:14.363181   File "/usr/lib/python2.7/dist-packages/winswitch/server/controller.py", line 405, in assign_virt_utils
[ee] 2012/10/12 11:21:14.363209     from winswitch.virt.vnc_server_util import VNCServerUtil
[ee] 2012/10/12 11:21:14.363225   File "/usr/lib/python2.7/dist-packages/winswitch/virt/vnc_server_util.py", line 16, in <module>
[ee] 2012/10/12 11:21:14.363240     from winswitch.virt.server_util_base import ServerUtilBase
[ee] 2012/10/12 11:21:14.363255   File "/usr/lib/python2.7/dist-packages/winswitch/virt/server_util_base.py", line 40, in <module>
[ee] 2012/10/12 11:21:14.363270     from winswitch.util.xkbmap_util import set_keymap
[ee] 2012/10/12 11:21:14.363286   File "/usr/lib/python2.7/dist-packages/winswitch/util/xkbmap_util.py", line 173
[ee] 2012/10/12 11:21:14.363312 SyntaxError: Non-ASCII character '\xc3' in file /usr/lib/python2.7/dist-packages/winswitch/util/xkbmap_util.py on line 173, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Change History (4)

comment:1 Changed 11 years ago by Antoine Martin

Resolution: duplicate
Status: newclosed

Duplicate of #223, was also reported as #225 - see those for details

comment:2 Changed 11 years ago by Antoine Martin

Component: AndroidServer
Milestone: 0.12

comment:3 Changed 11 years ago by 235

hi Antoine, just because you are quick in response and around, can you suggest where to dig in order to fix this issue:

[II] 2012/10/12 11:36:20.902996 XpraServerUtil.start_dbus(ServerSession(:63 - xpra - starting)) dbus_pid=7652, dbus_address=unix:abstract=/tmp/dbus-eULED7xLDB,guid=3aec7f129f1c23acef7aaf0650c5c934
[II] 2012/10/12 11:36:20.976181 virt_server_daemonizer.grab_daemon_pid(['/usr/lib/winswitch/virt_server_daemonizer', '--quiet', '--print-pid', '--daemon', '--log-file', '/home/sasha/.winswitch/server/sessions/63/pulse.log', '--', '/usr/bin/pulseaudio', '--start', '-vvvv', '--disable-shm=true', '--daemonize=false', '--use-pid-file=false', '--system=false', '--exit-idle-time=-1', '-n', '--load=module-suspend-on-idle', '--load=module-null-sink', '--load=module-native-protocol-unix socket=/tmp/pulse-63/native'],None,{'USERNAME': 'sasha', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm', 'SHELL': '/bin/bash', 'XAUTHORITY': '/run/gdm/auth-for-sasha-xSe5jV/database', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-eULED7xLDB,guid=3aec7f129f1c23acef7aaf0650c5c934', 'PWD': '/home/sasha', 'USER': 'sasha', 'HOME': '/home/sasha/.winswitch/server/sessions/63', 'PATH': '/home/sasha/.bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-oracle/', 'DISPLAY': ':63'}) <subprocess.Popen object at 0x5acd350>.returncode=0, stdoutdata=7660\n, stderrdata=, pid=7660
[II] 2012/10/12 11:36:20.978116 XpraServerUtil.start_daemon(ServerSession(:63 - xpra - starting),{'USERNAME': 'sasha', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm', 'SHELL': '/bin/bash', 'XAUTHORITY': '/run/gdm/auth-for-sasha-xSe5jV/database', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-eULED7xLDB,guid=3aec7f129f1c23acef7aaf0650c5c934', 'PWD': '/home/sasha', 'PULSE_SERVER': 'unix:/tmp/pulse-63/native', 'USER': 'sasha', 'HOME': '/home/sasha', 'PATH': '/home/sasha/.bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-oracle/', 'DISPLAY': ':63', 'ALSA_PCM_NAME': 'pulse'},True) starting ['/usr/bin/xpra', '--bind-tcp=127.0.0.1:15064', '--password-file=/home/sasha/.winswitch/server/sessions/63/session.pass', '--no-daemon', '--no-pulseaudio', '--session-name=Mines', 'start', ':63'], logging to /home/sasha/.winswitch/server/sessions/63/xpra.log
[II] 2012/10/12 11:36:21.039688 virt_server_daemonizer.grab_daemon_pid(['/usr/lib/winswitch/virt_server_daemonizer', '--quiet', '--print-pid', '--daemon', '--log-file', '/home/sasha/.winswitch/server/sessions/63/xpra.log', '--', '/usr/bin/xpra', '--bind-tcp=127.0.0.1:15064', '--password-file=/home/sasha/.winswitch/server/sessions/63/session.pass', '--no-daemon', '--no-pulseaudio', '--session-name=Mines', 'start', ':63'],/home/sasha,{'USERNAME': 'sasha', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm', 'SHELL': '/bin/bash', 'XAUTHORITY': '/run/gdm/auth-for-sasha-xSe5jV/database', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-eULED7xLDB,guid=3aec7f129f1c23acef7aaf0650c5c934', 'PWD': '/home/sasha', 'PULSE_SERVER': 'unix:/tmp/pulse-63/native', 'USER': 'sasha', 'HOME': '/home/sasha', 'PATH': '/home/sasha/.bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-oracle/', 'DISPLAY': ':63', 'ALSA_PCM_NAME': 'pulse'}) <subprocess.Popen object at 0x5acd590>.returncode=0, stdoutdata=7670\n, stderrdata=, pid=7670
[II] 2012/10/12 11:36:21.039970 XpraServerUtil.session_process_started(7670,ServerSession(:63 - xpra - starting))
[II] 2012/10/12 11:36:21.040495 XpraServerUtil.do_watch_session_log(/home/sasha/.winswitch/server/sessions/63/xpra.log,29,ServerSession(:63 - xpra - starting)) watching log with gio: <__main__.GInotifyFileMonitor object at 0x3c69500 (GInotifyFileMonitor at 0x2707e50)>
[II] 2012/10/12 11:36:21.044526 WinSwitchServer.send_session_to_all(ServerSession(:63 - xpra - starting)) clients=[WinSwitchClientChannel(User(Sasha : a973cec42f494d8baefb8e442302383b))]
[II] 2012/10/12 11:36:21.044954 XpraServerUtil.wait_for_session_readyness(ServerSession(:63 - xpra - starting),User(Sasha : a973cec42f494d8baefb8e442302383b),<function session_started at 0x3e44050>,<function session_error at 0x3c89140>) adding/firing session status update callbacks
[II] 2012/10/12 11:36:22.159974 XpraServerUtil.detect_sessions() found: [('DEAD', ':63')]
[II] 2012/10/12 11:36:22.160112 XpraServerUtil.detected_dead_session(:63) ignoring initial dead session during early startup - will re-probe it shortly
[II] 2012/10/12 11:36:24.161059 process_util.kill0(7670) error polling pid: [Errno 3] No such process
[II] 2012/10/12 11:36:24.161165 XpraServerUtil.do_session_process_ended(7670,poll failed,ServerSession(:63 - xpra - starting))
[II] 2012/10/12 11:36:24.161264 WinSwitchServer.send_session_status_to_all(ServerSession(:63 - xpra - starting),closed) clients=[WinSwitchClientChannel(User(Sasha : a973cec42f494d8baefb8e442302383b))]
[II] 2012/10/12 11:36:24.161971 XpraServerUtil.session_cleanup(ServerSession(:63 - xpra - closed)) clearing /home/sasha/.winswitch/server/sessions/63


[EE] 2012/10/12 11:30:39.892703 XpraServerUtil.session_error(ServerSession(:62 - xpra - closed),Session failed to start,closed) notification handler=<bound method WinSwitchServer.session_failed of <winswitch.server.controller.WinSwitchServer instance at 0x3ac5cf8>>

cheers!

Last edited 11 years ago by 235 (previous) (diff)

comment:4 Changed 11 years ago by Antoine Martin

Please do not hijack bug entries, create a new one if needed.

Session debugging is well documented on the website.

Note: See TracTickets for help on using tickets.