Page MenuHome

Ply import Error
Closed, ResolvedPublic

Description

System Information
osx 10.9.1, mcbr 13.1

Blender Version
Broken: all tried (official 2.6.9, current trunk a9e7c7b
Worked: (optional)

Short description of error
import of ply (from meshlab) does not work, gives error:

Traceback (most recent call last):
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/__init__.py", line 86, in execute
     import_ply.load(self, context, path)
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/import_ply.py", line 393, in load
     return load_ply(filepath)
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/import_ply.py", line 377, in load_ply
     mesh = load_ply_mesh(filepath, ply_name)
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/import_ply.py", line 220, in load_ply_mesh
     obj_spec, obj, texture = read(filepath)
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/import_ply.py", line 208, in read
     obj = obj_spec.load(format_specs[format], plyf)
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/import_ply.py", line 112, in load
     return dict([(i.name, [i.load(format, stream) for j in range(i.count)]) for i in self.specs])
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/import_ply.py", line 112, in <listcomp>
     return dict([(i.name, [i.load(format, stream) for j in range(i.count)]) for i in self.specs])
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/import_ply.py", line 112, in <listcomp>
     return dict([(i.name, [i.load(format, stream) for j in range(i.count)]) for i in self.specs])
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/import_ply.py", line 39, in load
     return [x.load(format, stream) for x in self.properties]
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/import_ply.py", line 39, in <listcomp>
     return [x.load(format, stream) for x in self.properties]
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/import_ply.py", line 101, in load
     return self.read_format(format, 1, self.numeric_type, stream)[0]
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/import_ply.py", line 76, in read_format
     ans = [mapper(x) for x in stream[:count]]
   File "/Applications/blender/blender.app/Contents/MacOS/2.69/scripts/addons/io_mesh_ply/import_ply.py", line 76, in <listcomp>
     ans = [mapper(x) for x in stream[:count]]
 ValueError: could not convert string to float:

Exact steps for others to reproduce the error
download sample.ply
start blender
File - Import - Stanford (.ply)
select downloaded ply
hit Import Ply

Event Timeline

Sorry, the .ply file is made from openmvg (photogrammetry) - not touched by meshlab

If i open it in Meshlab and re-save it as .ply the import works flawless.