Zulko/vapory

Vapory for WireFrame box

vashokv opened this issue · 0 comments

**Hi,

I was trying to create wire frame box using vapory. The code is from this link:** [http://images.google.de/imgres?imgurl=http://www.f-lohmueller.de/pov_tut/all_shapes/im/Wire_Box.jpg&imgrefurl=http://www.f-lohmueller.de/pov_tut/all_shapes/shapes330e.htm&h=180&w=240&tbnid=OyVVnVtBWL9sRM:&tbnh=90&tbnw=120&docid=gkkf1TSqB_6vyM&usg=__7Lzn7XAfsWIENEguNvit45kbg9k=&sa=X&ved=0ahUKEwitspvmo-nOAhXLtRQKHWyiAeE4ChD1AQgvMAM.]

I wrote the following class:
class WireBox(POVRayElement):
""" Wire_Box element. Wire_Box(corner1_xyz, corner2_xyz, WireRadius, Merge, *a) """

I call it like this:
WireBox([-lx/2,-ly/2,-lz/2], [lx/2,ly/2,lz/2], 0.1, 0, Pigment('color', [0, 0, 0]),
Finish('phong', 0.9),
'translate', (0, 0, 0), 'rotate', (0, 0, 0)))

However, when I run it throws the following error:
Traceback (most recent call last):
File "p8.py", line 53, in
VideoClip(make_frame, duration=1).write_gif("anim1.gif",fps=4)
File "/home/hema/anaconda3/lib/python3.5/site-packages/moviepy/video/VideoClip.py", line 106, in init
self.size = self.get_frame(0).shape[:2][::-1]
File "", line 2, in get_frame
File "/home/hema/anaconda3/lib/python3.5/site-packages/moviepy/decorators.py", line 89, in wrapper
return f(_new_a, *_new_kw)
File "/home/hema/anaconda3/lib/python3.5/site-packages/moviepy/Clip.py", line 95, in get_frame
return self.make_frame(t)
File "p8.py", line 51, in make_frame
return scene(t).render(width = image_width, height=image_height)
File "/home/hema/anaconda3/lib/python3.5/site-packages/vapory/vapory.py", line 102, in render
quality, antialiasing, remove_temp)
File "/home/hema/anaconda3/lib/python3.5/site-packages/vapory/io.py", line 114, in render_povstring
raise IOError("POVRay rendering failed with the following error: "+err)
TypeError: Can't convert 'bytes' object to str implicitly

**What am I doing wrong?

Many Thanks!
Hema.**