URL:
  <http://gna.org/bugs/?func=detailitem&item_id=6807>

                 Summary: Importing a *.blend on Windows XP doesn't work
                 Project: Soya 3D
            Submitted by: None
            Submitted on: Wednesday 08/30/2006 at 16:23 CEST
                Category: None
                Priority: 5 - Normal
                Severity: 4 - Important
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: [EMAIL PROTECTED]
             Open/Closed: Open

    _______________________________________________________

Details:

There were a few problems I ran into with the soya-12 release.

Around line 54 in soya/__init__.py :
The line 
os.unlink(tmp_file)
Causes an error on windows.  It cannot find the directory, so what I did was
put a try/except around this line, and it fixed the problem relating to
unlinking the Temp file.

Around line 260
The line 
open(filename or os.path.join(path[0], self.DIRNAME,
self.filename.replace("/", os.sep)) + ".data", "wb").write(data)
Will not work on windows, because path[0] isn't a real directory name.  It
appears to be, but upon closer inspection, you will see that it uses '/' in
one instance instead of '//', thus not yielding a real directory name.

The fix:
path[0] = os.path.join(os.getcwdu(),"data")
open(filename or os.path.join(path[0], self.DIRNAME,
self.filename.replace("/", os.sep)) + ".data", "wb").write(data)

These fixes made soya function properly, so that I was able to load a mesh
from blender.  However, there is still a glitch where my polygon is all
white, and doesn't have the texture applied.





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wednesday 08/30/2006 at 16:23 CEST  Name: __init__.py  Size: 35.39KB  
By: None
Patched __init__.py (from site-packages\soya)
<http://gna.org/bugs/download.php?file_id=1210>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?func=detailitem&item_id=6807>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Soya-user mailing list
[email protected]
https://mail.gna.org/listinfo/soya-user

Reply via email to