Page MenuHome

Problem with importing OBJ file
Closed, ArchivedPublic

Description

System Information
Operating system and graphics card

Blender Version
Broken: (example: 2.69.7 4b206af, see splash screen)
Worked: (optional)
I use v2.78

Short description of error

When I try to import obj file I get Report:Error
__init__.py line 147
import_obj.py line 1182
import_obj.py line 337
could not convert string to float : b'0,000000'

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

I downloaded osm file from openstreetmap
then I converted it into obj with osm2world program
and then I tried to import it with blender.

It seems its problem with material importing, but there's no option in Import OBJ to uncheck them to be imported.

Event Timeline

Vuk Gardašević (lijenstina) lowered the priority of this task from 90 to 30.EditedFeb 27 2017, 7:15 PM

Can you provide us with a small and simple obj file that demonstrates the issue?

A guideline for making a good bug report can be found here:
https://wiki.blender.org/index.php/Dev:Doc/Process/Bug_Reports

Marking as incomplete until the requested data is provided.

Vuk Gardašević (lijenstina) raised the priority of this task from 30 to 90.Feb 27 2017, 10:53 PM

The provided file opened fine in Blender Win 7 b16fd22, no errors apart from
some UTF-8 names in the file, maybe there is some problem with reading those.
For instance:
BusStop Stocznia Szczeci�ska

These could be just a font issue, I'm not sure if they can cause parsing problems.

The problem may be related to materials, because the line 1182 of import_obj.py shows the function: create_materials(...).
But as the materials in map_test.obj.mtl were not provided. It is still not possible to reproduce the bug :\

map_test.obj.mtl is using comma's for some decimal separators but, points for others, sounds like a bug the osm2world people should fix .

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Archived.Mar 1 2017, 5:00 AM
Brecht Van Lommel (brecht) claimed this task.

This indeed appears to be a bug in osm2world that you may consider reporting to them, not a bug in Blender. As far as I can tell using a , as a decimal mark is not valid for .obj or .mtl file.

Writing , instead of . happens when using a float to string conversion that is influenced by the locale, which can be good for displaying in the UI but is not valid for writing such data files.