← Back to team overview

phatch-dev team mailing list archive

[Bug 458366] Re: Blender book action fails

 

With the help of Juho I fixed it like this:
$ bzr diff
=== modified file 'data/blender/object.py'
--- data/blender/object.py	2009-09-26 08:42:57 +0000
+++ data/blender/object.py	2009-12-10 15:51:11 +0000
@@ -361,7 +361,7 @@
             left_page.save(temporary_image.path)
             args[image_arg] = temporary_image.path
 
-        if args['page_mapping'] == 'Wrap Both':
+        if args['page_mapping'].startswith('Wrap'):
             im_path = args['input_image_1']
             im = PILImage.open(im_path)
             width, height = im.size

The underlaying issue should be still fixed though:
Juho: The issue has to do with arguments. It's probably missing "'s somewhere as the latter part does not get parsed
properly.

** Changed in: phatch
       Status: Confirmed => Fix Committed

-- 
Blender book action fails
https://bugs.launchpad.net/bugs/458366
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.

Status in Phatch = Photo & Batch!: Fix Committed

Bug description:
I've attached an action list.

Compiled with Python version 2.6.4rc2.
Checking for installed Python... got it!
Traceback (most recent call last):
  File "runner.py", line 103, in <module>
  File "runner.py", line 37, in render
  File "/home/stani/sync/python/phatch/repo/trunk/data/blender/object.py", line 579, in set_up_render
    image = self.selected_mode.execute(input_image, blender_object)
  File "/home/stani/sync/python/phatch/repo/trunk/data/blender/object.py", line 416, in execute
    return Image.Load(input_image_path)
IOError: couldn't load image





References