importing obj data after saving doesn't work #36455

Closed
opened 10 years ago by bliblubli · 6 comments

%%%--- Operating System, Graphics card ---
Only tested on win7 x64 because of holydays

- Blender version with error, and version that worked ---

2.68a and latest svn

- Short description of error ---

importing an .obj on default scene works, but saving that scene and then trying to import creates an error

- Steps for others to reproduce the error (preferably based on attached .blend file) ---

1)Default scene, save
2)Import an .obj data

%%%

%%%--- Operating System, Graphics card --- Only tested on win7 x64 because of holydays - Blender version with error, and version that worked --- 2.68a and latest svn - Short description of error --- importing an .obj on default scene works, but saving that scene and then trying to import creates an error - Steps for others to reproduce the error (preferably based on attached .blend file) --- 1)Default scene, save 2)Import an .obj data %%%
Poster

Changed status to: 'Open'

Changed status to: 'Open'
Owner

%%%"saving that scene and then trying to import creates an error"

Can you explain what the error is?%%%

%%%"saving that scene and then trying to import creates an error" Can you explain what the error is?%%%
Poster

%%% parsing obj file...
5.8500 sec

      loading materials and images...

Traceback (most recent call last):

File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\addons\io_s

cene_obj_init_.py", line 171, in execute

  return import_obj.load(self, context, **keywords)
File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\addons\io_s

cene_obj\import_obj.py", line 1107, in load

  create_materials(filepath, relpath, material_libs, unique_materials, unique_

material_images, use_image_search, float_func)

File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\addons\io_s

cene_obj\import_obj.py", line 367, in create_materials

  load_material_image(context_material, context_material_name, img_filepath, '

Kd')

File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\addons\io_s

cene_obj\import_obj.py", line 108, in load_material_image

  image = obj_image_load(imagepath, DIR, use_image_search, relpath)
File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\addons\io_s

cene_obj\import_obj.py", line 87, in obj_image_load

  return load_image(imagepath, DIR, recursive=recursive, place_holder=True, re

lpath=relpath)

File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\modules\bpy

_extras\image_utils.py", line 139, in load_image

  return _image_load(nfilepath)
File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\modules\bpy

_extras\image_utils.py", line 110, in _image_load

  image.filepath_raw = relpath_fn(path, start=relpath)
File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\modules\bpy

\path.py", line 99, in relpath

  return b"//" + _os.path.relpath(path, start)
File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\python\lib\ntpath.p

y", line 622, in relpath

  raise ValueError(error)

ValueError: path is on mount 'b'D:'', start on mount 'b'C:''

location: :-1

location: :-1%%%

%%% parsing obj file... 5.8500 sec ``` loading materials and images... ``` Traceback (most recent call last): ``` File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\addons\io_s ``` cene_obj\__init__.py", line 171, in execute ``` return import_obj.load(self, context, **keywords) File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\addons\io_s ``` cene_obj\import_obj.py", line 1107, in load ``` create_materials(filepath, relpath, material_libs, unique_materials, unique_ ``` material_images, use_image_search, float_func) ``` File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\addons\io_s ``` cene_obj\import_obj.py", line 367, in create_materials ``` load_material_image(context_material, context_material_name, img_filepath, ' ``` Kd') ``` File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\addons\io_s ``` cene_obj\import_obj.py", line 108, in load_material_image ``` image = obj_image_load(imagepath, DIR, use_image_search, relpath) File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\addons\io_s ``` cene_obj\import_obj.py", line 87, in obj_image_load ``` return load_image(imagepath, DIR, recursive=recursive, place_holder=True, re ``` lpath=relpath) ``` File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\modules\bpy ``` _extras\image_utils.py", line 139, in load_image ``` return _image_load(nfilepath) File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\modules\bpy ``` _extras\image_utils.py", line 110, in _image_load ``` image.filepath_raw = relpath_fn(path, start=relpath) File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\scripts\modules\bpy ``` \path.py", line 99, in relpath ``` return b"//" + _os.path.relpath(path, start) File "C:\Program Files\blender-2.68-r58948-win64-vc11\2.68\python\lib\ntpath.p ``` y", line 622, in relpath ``` raise ValueError(error) ``` ValueError: path is on mount 'b'D:'', start on mount 'b'C:'' location: <unknown location>:-1 location: <unknown location>:-1%%%
Poster

%%%After reading error, i tried something : saving the blend on the same letter as the object to be imported resolves the problem.%%%

%%%After reading error, i tried something : saving the blend on the same letter as the object to be imported resolves the problem.%%%
Owner

%%%Fixed bug r59147.%%%

%%%Fixed bug r59147.%%%
Owner

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
ideasman42 closed this issue 10 years ago
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/Collada
Interest/Compositing
Interest/Core
Interest/Cycles
Interest/Dependency Graph
Interest/Development Management
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/Modeling
Interest/Modifiers
Interest/Motion Tracking
Interest/Nodes & Physics
Interest/Overrides
Interest/Performance
Interest/Performance
Interest/Physics
Interest/Pipeline, Assets & I/O
Interest/Platforms, Builds, Tests & Devices
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
legacy module/Animation & Rigging
legacy module/Core
legacy module/Development Management
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/Triaging
legacy module/User Interface
legacy module/VFX & Video
legacy project/1.0.0-beta.2
legacy project/Asset Browser (Archived)
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Code Quest
legacy project/Datablocks and Libraries
legacy project/Eevee
legacy project/Game Animation
legacy project/Game Audio
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Logic
legacy project/Game Physics
legacy project/Game Python
legacy project/Game Rendering
legacy project/Game UI
legacy project/GPU / Viewport
legacy project/GSoC
legacy project/Infrastructure: Websites
legacy project/LibOverrides - Usability and UX
legacy project/Milestone 1: Basic, Local Asset Browser
legacy project/Nodes
legacy project/OpenGL Error
legacy project/Papercut
legacy project/Pose Library Basics
legacy project/Retrospective
legacy project/Tracker Curfew
legacy project/Wintab High Frequency
Meta/Good First Issue
Meta/Papercut
migration/requires-manual-verification
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 & Devices
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 Information 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
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#36455
Loading…
There is no content yet.