Non-ascii characters in pathnames (again)

Tech support and suggestions forum. If you only have a basic question on how to get started, please use the "newbies" forum in the community section.

Moderator: joepal

Non-ascii characters in pathnames (again)

Postby ThomasL » Sat Jan 15, 2011 9:04 am

I didn't realize that I was the root of all these non-ascii problems. But now the problems should fixed in svn, although today's nightly build will not work if you have strange characters in your paths.

The code has been checked under Windows as the user Åke Öst. Apparently it is not possible to use scandinavian characters as user names under Linux; a user called Åke would have the home directory /home/ake.

Here is the debug prints when Åke is exporting a Collada file. MHX is similar but longer.

Code: Select all
Writing Collada file C:\Users\\xc5 ke \xd6 st\Documents\makehuman\exports\foo.dae
*** Cannot open C:\Users\Åke Öst\makehuman\proxy.cfg
*** Cannot open C:\proxy.cfg
    Using config file C:\Users\Åke Öst\Downloads\makehuman\proxy.cfg
Proxy configuration: Use ['Obj', 'Mhx', 'Dae']
   ('Proxy', True, True, True, ('./data/templates/Rorkimaru.proxy', 'Proxy', 2))
   ('Clothes', True, True, True, ('./data/templates/sweater.mhclo', 'Clothes', 4))
   ('Clothes', True, True, True, ('./data/templates/jeans.mhclo', 'Clothes', 4))
WARNING: Collada export with several meshes. Ignored Rorkimaru
Wrote Collada file in 2.21032 s: C:\Users\\xc5 ke \xd6 st\Documents\makehuman\exports\foo.dae


Here are some other issues which arose when starting MH and exporting an obj as Åke Öst.

1.
Code: Select all
Unable to open data/targets/expression/female_young/neutral_female_young_hopefull.target
Expression loaded


2.
Code: Select all
Could not load rendering_aqsis
'ascii' codec can't encode character u'\xc5' in position 77: ordinal not in range(128)


3.
Code: Select all
Traceback (most recent call last):
  File "./core\module3d.py", line 1424, in mouseButtonUp
    self.application.mouseUp(button, x, y)
  File "./core\gui3d.py", line 528, in mouseUp
    self.mouseDownObject.callEvent('onClicked', event)
  File "./core\events3d.py", line 93, in callEvent
    getattr(self, eventType)(event)
  File "./core\gui3d.py", line 146, in onClicked
    self.view.callEvent('onClicked', event)
  File "./core\events3d.py", line 93, in callEvent
    getattr(self, eventType)(event)
  File "./core\gui3d.py", line 1173, in onClicked
    self.onFileSelected(self.edit.getText())
  File "./apps\gui\guifiles.py", line 213, in onFileSelected
    mh2obj.exportObj(self.app.scene3d.selectedHuman.meshData, os.path.join(exportPath, filename + ".obj"), 'data/3dobjs/base.obj', self.exportGroups.selected)
  File "./apps\mh2\mh2obj.py", line 55, in exportObj
    f.write('mtllib ' + filename + '.mtl\n')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc5' in position 16: ordinal not in range(128)
ThomasL
 
Posts: 1139
Joined: Tue Sep 15, 2009 2:46 am

Re: Non-ascii characters in pathnames (again)

Postby VonCarpentier » Mon Jan 24, 2011 3:08 pm

My username is Tomás, so my folder in the user folders on windows has non-ascii characters i think, i don't really know if the diacritic isn't an ascii character but i have the same problem when i try to export or save. I know that is not a smart solution, but i just activated the guest account and use makehuman alpha 5.1 on this account and now i'm able to export and save models without problems.

PS: sorry, but my english sucks xD
VonCarpentier
 
Posts: 1
Joined: Mon Jan 24, 2011 2:27 pm


Return to Bugs, problems and feature requests

Who is online

Users browsing this forum: No registered users and 1 guest