Page MenuHome

Non-ASCII characters on blender 2.5 alpha 0
Closed, ResolvedPublic

Description

Hi,

Blender doesn't start correctly when the execution path contain Non-ASCII characters (tested only on Windows XP).

Thanks

found bundled python: D:\9E00~1\.blender\python
Traceback (most recent call last):
File "D:\9E00~1\.blender\scripts\modules\bpy\__init__.py", line 83, in <module
>
_main()
File "D:\9E00~1\.blender\scripts\modules\bpy\__init__.py", line 72, in _main
if "-d" in sys.argv and False: # Enable this to measure startup speed
SystemError: ..\Objects\object.c:601: bad argument to internal function
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_reload_scripts, WM_OT_reload_scripts
search for unknown operator WM_OT_context_toggle, WM_OT_context_toggle
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_cycle_enum, WM_OT_context_cycle_enum
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_toggle, WM_OT_context_toggle
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_cycle_enum, WM_OT_context_cycle_enum
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator MESH_OT_skin, MESH_OT_skin
search for unknown operator WM_OT_context_toggle, WM_OT_context_toggle
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_cycle_enum, WM_OT_context_cycle_enum
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_toggle, WM_OT_context_toggle
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_cycle_enum, WM_OT_context_cycle_enum
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_toggle, WM_OT_context_toggle
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_cycle_enum, WM_OT_context_cycle_enum
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_toggle, WM_OT_context_toggle
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_cycle_enum, WM_OT_context_cycle_enum
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_int, WM_OT_context_set_int
RNA_string_set: OperatorProperties.path not found.
RNA_int_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_toggle_enum, WM_OT_context_toggle_enum

RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value_1 not found.
RNA_string_set: OperatorProperties.value_2 not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_toggle, WM_OT_context_toggle
RNA_string_set: OperatorProperties.path not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator WM_OT_context_set_enum, WM_OT_context_set_enum
RNA_string_set: OperatorProperties.path not found.
RNA_string_set: OperatorProperties.value not found.
search for unknown operator CONSOLE_OT_execute, CONSOLE_OT_execute
search for unknown operator CONSOLE_OT_execute, CONSOLE_OT_execute
search for unknown operator CONSOLE_OT_autocomplete, CONSOLE_OT_autocomplete
search for unknown operator HELP_OT_release_logs, HELP_OT_release_logs
search for unknown operator HELP_OT_manual, HELP_OT_manual
search for unknown operator HELP_OT_blender_website, HELP_OT_blender_website
search for unknown operator HELP_OT_user_community, HELP_OT_user_community
search for unknown operator HELP_OT_python_api, HELP_OT_python_api

Event Timeline

Closed duplicate reports:
http://projects.blender.org/tracker/index.php?func=detail&aid=20079&group_id=9&atid=498
http://projects.blender.org/tracker/index.php?func=detail&aid=20081&group_id=9&atid=498

Relevant information from 20079:
"
I have been trying to find what revision this started to appear, and found it to be r24565. I'm a bit surprised by that,
I'd expect it to have started since the addition of the __init__.py that gets modified in r24565. The commit for said
revision doesn't seem to do anything that is related to paths, but this particular __init__.py does use paths and such.
The latest working revision is r24564.

I mark this as high priority, as there are *many* users out there that have accented characters or even non-latin names
as username.

This behaviour was also confirmed on linux by freakabcd, and I'm pretty sure it will happen on other platforms as well.
"

Python3.x replaced PySys_SetArgv with a function that accepts only wchar_t, this means there is no way to set the python sys.argv other then manually.
Which is how blender does this when it starts - see BPY_start_python ~312
PyUnicode_FromString is supposed to support utf-8 so not sure whats going on here.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Dec 7 2009, 12:05 PM