-
Notifications
You must be signed in to change notification settings - Fork 19
UnicodeDecodeError with LSynth parts #75
Comments
If you can fix this issue please add the LSynth path to your script. Thank you. |
@virtualrepublic I am going to look into this ASAP and work on getting this fixed. The error being thrown is really odd, as it should not be happening. Ah well, that's what debugging is for. :) As for the proper location, is |
@virtualrepublic I'm looking at your logs and the example model you sent (BTW, they helped a lot), and I found where the error is stemming from. It's in LS22.dat, line 3. @MinnieTheMoocher Considering your expertise on the LDraw file paths, perhaps you can impart some of your wisdom here. I've run the LSynth installer, and it wants to install the files at |
Thanks for the fast reply. The path should be C:\Program Files (x86)\LDraw\Unofficial\LSynth because that's the official path when you install the official LDRAW package. |
I have tested this with the example model @virtualrepublic sent in #75, and it works as it should (at least, it looks as if it should on my end).
Oops, didn't mean to close this. |
Moved to v1.2.5 milestone per reason at #82 (comment). |
I have a model with LSynth parts (flexible hoses) what can't be loaded.
The .dat files are loacted in "LDRAW > Unofficial > LSynth". But I need to copy them into the "parts" folder otherwise they can't be found. LDView and MLCad will load the model without errors.
When I have copied the files into "parts" I will get the following error when loading my test file with a small LSynth model:
//
[LDR Importer] Attempting to import M:\140000_LEGO\MODO\ISSUES\LDR-Importer\UnicodeDecodeError.ldr - 13:16:57.41
[LDR Importer] ERROR: UnicodeDecodeError
Traceback (most recent call last):
File "C:\Users\michael\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\import_ldraw.py", line 781, in create_model
LDrawFile(context, file_name, mat)
File "C:\Users\michael\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\import_ldraw.py", line 165, in init
self.parse(filename)
File "C:\Users\michael\AppData\Roaming\Blender Foundation\Blender\2.70\scripts\addons\import_ldraw.py", line 291, in parse
lines = f_in.readlines()
File "C:\Program Files\Blender Foundation\Blender\2.70\python\lib\codecs.py", line 300, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 92: invalid start byte
[LDR Importer] ERROR: Reason: UnicodeDecodeError. - 13:16:57.43
//
Here's the test file with the LSynth parts from the LDRAW installation. You need to copy them into the official "parts" folder:
http://lego.virtualrepublic.org/issues/LDR-Importer/LDR-Importer_UnicodeDecodeError.zip
The text was updated successfully, but these errors were encountered: