add_curve_sapling fails to export presets #37819

Closed
opened 2013-12-14 21:10:36 +01:00 by Bob Dowling · 4 comments

System Information
Operating system and graphics card

MacOSX 10.8
iMac, Intel Core i3
ATI Radeon HD 5670

Blender Version
Broken: Blender 2.69.0 r60597

Short description of error
Exporting a preset from add_curve_sapling gives a permission error as it attempts to store the user's preset in a system location.

Exact steps for others to reproduce the error

  1. Activate add_curve_sapling addon.
  2. Add > Curve > Tree.
  3. Change any parameter. (Set bevel in this example.)
  4. Enter FOO for preset name.
  5. Click "export preset".

Console error message

location: :-1

PermissionError: [Errno 13] Permission denied: '/Applications/blender.app/Contents/MacOS/2.69/scripts/addons/add_curve_sapling/presets/FOO.py'

   f = open(os.path.join(getpresetpath(), filename + '.py'), 'w')
 File "/Applications/blender.app/Contents/MacOS/2.69/scripts/addons/add_curve_sapling/__init__.py", line 108, in execute

Traceback (most recent call last):

During the handling of the above exception, another exception occurred:

FileNotFoundError: [Errno 2]: No such file or directory: /Applications/blender.app/Contents/MacOS/2.69/scripts/addons/add_curve_sapling/presets/FOO.py'

   f = open(os.path.join(getpresetpath(), filename + '.py'), 'r')
 File "/Applications/blender.app/Contents/MacOS/2.69/scripts/addons/add_curve_sapling/__init__.py", line 100, in execute

Traceback (most recent call last):

[ And it really does end there. There's no further traceback. - Bob]

Based on a (as simple as possible) attached .blend file with minimum amount of steps

sapling_bug.blend

**System Information** Operating system and graphics card MacOSX 10.8 iMac, Intel Core i3 ATI Radeon HD 5670 **Blender Version** Broken: Blender 2.69.0 r60597 **Short description of error** Exporting a preset from add_curve_sapling gives a permission error as it attempts to store the user's preset in a system location. **Exact steps for others to reproduce the error** 1. Activate add_curve_sapling addon. 2. Add > Curve > Tree. 3. Change any parameter. (Set bevel in this example.) 4. Enter FOO for preset name. 5. Click "export preset". **Console error message** location: <unknown location>:-1 PermissionError: [Errno 13] Permission denied: '/Applications/blender.app/Contents/MacOS/2.69/scripts/addons/add_curve_sapling/presets/FOO.py' ``` f = open(os.path.join(getpresetpath(), filename + '.py'), 'w') File "/Applications/blender.app/Contents/MacOS/2.69/scripts/addons/add_curve_sapling/__init__.py", line 108, in execute ``` Traceback (most recent call last): During the handling of the above exception, another exception occurred: FileNotFoundError: [Errno 2]: No such file or directory: /Applications/blender.app/Contents/MacOS/2.69/scripts/addons/add_curve_sapling/presets/FOO.py' ``` f = open(os.path.join(getpresetpath(), filename + '.py'), 'r') File "/Applications/blender.app/Contents/MacOS/2.69/scripts/addons/add_curve_sapling/__init__.py", line 100, in execute ``` Traceback (most recent call last): [ And it really does end there. There's no further traceback. - Bob] Based on a (as simple as possible) attached .blend file with minimum amount of steps [sapling_bug.blend](https://archive.blender.org/developer/F41118/sapling_bug.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @RobertDowling

Added subscriber: @RobertDowling
Andrew Hale was assigned by Brecht Van Lommel 2013-12-17 22:40:27 +01:00
Member

Changed status from 'Open' to: 'Duplicate'

Changed status from 'Open' to: 'Duplicate'
Member

✘ Merged into #38495.

✘ Merged into #38495.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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-addons#37819
No description provided.