Save as Runtime addon not working in 2.59 #28555

Closed
opened 2011-09-07 17:10:33 +02:00 by Jim Tucker · 11 comments

%%%After adding GE Addon "Game Engine Save as Runtime", File: Export: Save as Runtime fails with error:

Runtime Error: Can't open file .....standalonetest_exe.blend ...... Permission denied.

System: Windows 7 (64Bit), NVidia Quadro 600, Blender 2.59 r39307

(NB tested in 2.57 (32bit) - worked OK)%%%

%%%After adding GE Addon "Game Engine Save as Runtime", File: Export: Save as Runtime fails with error: Runtime Error: Can't open file .....standalonetest_exe.blend ...... Permission denied. System: Windows 7 (64Bit), NVidia Quadro 600, Blender 2.59 r39307 (NB tested in 2.57 (32bit) - worked OK)%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%Actually, doesn't sound as addon failure. Are you sure you've got permissions to write to the directory you're saving runtime to?
Also, could be useful to know full backtrace (you can copy-paste it from console).%%%

%%%Actually, doesn't sound as addon failure. Are you sure you've got permissions to write to the directory you're saving runtime to? Also, could be useful to know full backtrace (you can copy-paste it from console).%%%
Member

%%%Make sure you can write to the locations you're selecting the runtime to be saved to. I could save fine on Windows 7 ultimate 64bit with current trunk.%%%

%%%Make sure you can write to the locations you're selecting the runtime to be saved to. I could save fine on Windows 7 ultimate 64bit with current trunk.%%%
Author

%%%Thnx for swift replies. Still not working in 64b release; I enclose jpg of full error report. I have tried same test ( same output file) in 2.59-32b release and it
works OK.
Hope I'm not wasting your time!%%%

%%%Thnx for swift replies. Still not working in 64b release; I enclose jpg of full error report. I have tried same test ( same output file) in 2.59-32b release and it works OK. Hope I'm not wasting your time!%%%

%%%It's also important to know where you've got .blend file you opened in Blender and tries to save runtime for. Also, it's important to know in which location and which filename you're using for runtime.And did you try other locations to save runtime to? And did you try to save default scene as a runtime?%%%

%%%It's also important to know where you've got .blend file you opened in Blender and tries to save runtime for. Also, it's important to know in which location and which filename you're using for runtime.And did you try other locations to save runtime to? And did you try to save default scene as a runtime?%%%
Author

%%%Hi Sergey:
The paths you request are:
.blend file - C:\Users\jim\BlenderFiles\Test1\standalonetest.blend
runtime file - standalonetest.exe

I don't think this is a permissions problem, as I have previously made this work (with an
earlier Blender version) using the same test and directories.

But I have some other info that might help. The sequence I followed was:

  1. Unloaded Blender (i.e. Deleted C:\Program\Blender directory)
  2. Re-installed Blender2.59 (using Windows 64-bit .exe install)
  3. Opened Blender - loaded standalonetest file.
   (n.b Save as Game Engine Runtime loaded as default - presumably from a previously-set preferences file)
  1. Export - Save as Runtime
       This worked - standalonetest.exe exported OK and worked OK
  1. (With Blender still loaded) deleted file standalonetest.exe
  2. Switched to Blender, retried Export - Save as Runtime
       Again, this worked - standalonetest.exe exported OK and worked OK
  1. Closed Blender package

  2. Opened Blender again, - loaded standalonetest file.

  3. Export - Save as Runtime

       This crashed, giving error report as previously sent.

So it looks as if "Save as Runtime" works once, but then does not work again when Blender
is closed and re-opened.

Also, I did a similar test on Blender2.57(32b) and the same thing happened.

Hope this helps,%%%

%%%Hi Sergey: The paths you request are: .blend file - C:\Users\jim\BlenderFiles\Test1\standalonetest.blend runtime file - standalonetest.exe I don't think this is a permissions problem, as I have previously made this work (with an earlier Blender version) using the same test and directories. But I have some other info that might help. The sequence I followed was: 1. Unloaded Blender (i.e. Deleted C:\Program\Blender directory) 2. Re-installed Blender2.59 (using Windows 64-bit .exe install) 3. Opened Blender - loaded standalonetest file. ``` (n.b Save as Game Engine Runtime loaded as default - presumably from a previously-set preferences file) ``` 4. Export - Save as Runtime ``` This worked - standalonetest.exe exported OK and worked OK ``` 5. (With Blender still loaded) deleted file standalonetest.exe 6. Switched to Blender, retried Export - Save as Runtime ``` Again, this worked - standalonetest.exe exported OK and worked OK ``` 7. Closed Blender package 8. Opened Blender again, - loaded standalonetest file. 9. Export - Save as Runtime ``` This crashed, giving error report as previously sent. ``` So it looks as if "Save as Runtime" works once, but then does not work again when Blender is closed and re-opened. Also, I did a similar test on Blender2.57(32b) and the same thing happened. Hope this helps,%%%
Member

%%%Could you test with a blender installed from the zip distribution too?%%%

%%%Could you test with a blender installed from the zip distribution too?%%%
Author

%%%Nathan: Have installed from zip distribution and tested with standalonetest. First run did NOT work - gave error as per previous error report .

%%%

%%%Nathan: Have installed from zip distribution and tested with standalonetest. First run did NOT work - gave error as per previous error report . %%%
Author

%%%I am trying a bit of self-help. I have had a look at game_engine_save_as_runtime.py and see that the error apparently
occurs when it is trying to write a temporary file:

line 101: bpy.ops.wm.save_as_mainfile(filepath=blend_path, compress=False, copy=True)

This gives a runtime error:
Can't open C__Users_jim_Blenderfiles_Test1_standalonetest_exe.blend for writing: Permission denied.

I know almost nothing about the Blender system (or Python). Can anyone tell me what directory this
temporary file is being written to?
I will then check to see if I have write permissions to that directory.%%%

%%%I am trying a bit of self-help. I have had a look at game_engine_save_as_runtime.py and see that the error apparently occurs when it is trying to write a temporary file: line 101: bpy.ops.wm.save_as_mainfile(filepath=blend_path, compress=False, copy=True) This gives a runtime error: Can't open C__Users_jim_Blenderfiles_Test1_standalonetest_exe.blend for writing: Permission denied. I know almost nothing about the Blender system (or Python). Can anyone tell me what directory this temporary file is being written to? I will then check to see if I have write permissions to that directory.%%%

%%%Reproduced.

Should be fixed in addons repo, svn revision 2327.
Thanks for the report, closing now.%%%

%%%Reproduced. Should be fixed in addons repo, svn revision 2327. Thanks for the report, closing now.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
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
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
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
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 Info 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
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#28555
No description provided.