Dice3ds: Has anyone installed recently, tobytes needs to replace testing
Boyer, Jeffrey S (397H)
Jeffrey.S.Boyer at jpl.nasa.gov
Fri Nov 2 01:02:12 UTC 2018
Hi,
py27-dice3ds @0.13 python/py-dice3ds
installed with:
freeglut @3.0.0 x11/freeglut
to have a GUI.
When attempting load a 3ds, a tostrings error occurs:
view3ds-2.7 -g glut Cassini_no_Huygens_03.3ds
Loading model....
(If it's taking too long, try running command
with "-n none" to shut off normals calculation.)
Traceback (most recent call last):
File "/opt/local/bin/view3ds-2.7", line 596, in <module>
main()
File "/opt/local/bin/view3ds-2.7", line 589, in main
run_glut(filename,options)
File "/opt/local/bin/view3ds-2.7", line 135, in run_glut
dl,center,scale = prerender_model(filename,options)
File "/opt/local/bin/view3ds-2.7", line 97, in prerender_model
model = load_model_from_filesystem(filename,options)
File "/opt/local/bin/view3ds-2.7", line 36, in load_model_from_filesystem
return glmodel.GLModel(dom,load_texture,options.nfunc,options.frameno)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Dice3DS/example/basicmodel.py", line 127, in __init__
self.extract_materials(dom)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Dice3DS/example/basicmodel.py", line 136, in extract_materials
m = self.create_material(mat)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Dice3DS/example/basicmodel.py", line 152, in create_material
mat.texmap.filename.value))
File "/opt/local/bin/view3ds-2.7", line 28, in load_texture
return gltexture.Texture(os.path.join(texdir,texfilename))
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Dice3DS/example/gltexture.py", line 89, in __init__
imagedata = anyimgload.load_image(filespec)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Dice3DS/example/anyimgload.py", line 78, in load_image
return load_image_specific(flo,hint)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Dice3DS/example/anyimgload.py", line 182, in load_image_PIL
data = img.tostring("raw",format,0,-1)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PIL/Image.py", line 755, in tostring
raise NotImplementedError("tostring() has been removed. "
NotImplementedError: tostring() has been removed. Please call tobytes() instead.
Is this a known problem? If so, is a fix in the works?
Thanks, Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20181102/6c966167/attachment.html>
More information about the macports-users
mailing list