Ply import Error #38462

Closed
opened 2014-02-03 16:19:28 +01:00 by Sebastian Röthlisberger · 7 comments

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

sceneStart.ply

**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 [sceneStart.ply](https://archive.blender.org/developer/F75854/sceneStart.ply)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @SebastianRothlisberger

Added subscriber: @SebastianRothlisberger

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

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.

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

This issue was referenced by blender/blender-addons@d9fcbd0601

This issue was referenced by blender/blender-addons@d9fcbd06018165cc2cfca0673c7c2db44b04a833

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Closed by commit blender/blender-addons@d9fcbd0601.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#38462
No description provided.