Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#7015 closed defect (fixed)

cx_Freeze: Python error in main script

Reported by: lokee Owned by:
Priority: normal Milestone: 0.15
Component: None Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking: OS: Windows

Description

Bug description

This error shows at startup:

---------------------------
cx_Freeze: Python error in main script
---------------------------
Traceback (most recent call last):
  File "c:\python26\lib\site-packages\cx_Freeze\initscripts\Console.py",
line 27, in <module>
  File "src/gajim.py", line 158, in <module>
UnicodeEncodeError: 'ascii' codec can't encode characters in position
9-13: ordinal not in range(128)

Recomendations from #5968 and #6927 doesn't help:

  1. Uninstalling, deleting all gajim directories and reinstalling gajim doesn't help.
  2. gajiim.log in AppData? is empty.
  3. Installing MSVC++ 2008 Redist. + step 1 doesn't help.

Software versions

OS version: Win 7 Ultimate 32bit
Gajim version: 0.15 beta 2

Attachments (1)

gajim.vc.diff (473 bytes) - added by Dicson 5 years ago.

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by Dicson

comment:1 Changed 5 years ago by Dicson

patch attached. I hope problem in this

Last edited 5 years ago by Dicson (previous) (diff)

comment:2 follow-up: Changed 5 years ago by asterix

could you test this version? Does that fix your problem?

comment:3 in reply to: ↑ 2 Changed 5 years ago by lokee

Replying to asterix:

could you test this version? Does that fix your problem?

Unfortunately, this version does not work.

comment:4 follow-up: Changed 5 years ago by asterix

what does that mean "does not work" ?

comment:5 in reply to: ↑ 4 Changed 5 years ago by lokee

Replying to asterix:

what does that mean "does not work" ?

the same error shows at startup ("cx_Freeze: Python error in main script...")

comment:6 Changed 5 years ago by lokee

  • Resolution set to worksforme
  • Status changed from new to closed

The problem was in cyrillic name of user profile directory. Renaming that directory into english helps. Gajim now works fine (both 0.15b2 and version from comment:2).

Thanks Dicson for advice!

comment:7 Changed 5 years ago by Yann Leboulanger <asterix@…>

  • Resolution changed from worksforme to fixed

(In [28a01075f7cb]) fix some encoding problems when looking for plugin config with non-ascii chars in path. Fixes #7015

comment:8 Changed 4 years ago by Yann Leboulanger <asterix@…>

(In [ac4eca09dd3d]) fix some encoding problems when looking for plugin config with non-ascii chars in path. Fixes #7015

Note: See TracTickets for help on using tickets.