Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#26093] Install Add-On Fails and deletes script

Date:
2011-02-15 10:20
Priority:
3
State:
Closed
Submitted by:
Jonathan Smith (jaydez)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Python
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Install Add-On Fails and deletes script
Detailed description
This is *NOT* something that just happens with one script, I have tested it on a couple (The add mesh ANT Landscape, the Dynamic Spacebar Menu, Add Masonry from contrib, and add mesh 3d function surface)

Whenever I try to install a new add-on and select the script in the file browser, the script is deleted (after I leave the file browser), which then causes the following error:

Traceback (most recent call last):
File "/home/jonathan/programming/blender-src/install/linux2/2.56/scripts/ui/space_userpref.py", line 1243, in execute
shutil.copyfile(pyfile, path_dest)
File "/home/jonathan/programming/blender-src/install/linux2/2.56/python/lib/python3.1/shutil.py", line 66, in copyfile
fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: '/home/jonathan/programming/blender-src/install/linux2/2.56/scripts/addons/add_mesh_3d_function_surface.py'

This happens both when I try to install an add-on that is already there (AKA reinstall), and also when I try to add an add-on that is not already there (the one I tried was the masonry script from contrib). For all of these tests, the script was deleted (On the hard drive, not just in Blender) as soon as I selected it to install and pressed enter.

r34860
Linux Ubuntu 10.04

Followup

Message
  • Date: 2011-02-16 15:04
  • Sender: Campbell Barton
  • Note, I checked this briefly and re-installing addons works for me, will have to test further if there is some path problem or permissions.
  • Date: 2011-02-21 08:37
  • Sender: Campbell Barton
  • Removing the file happens when the source and target path are the same, installing an already installed addon from the addon path.

    Added a check which aborts when trying to install an addon from on of the addon search paths.
    fixed r35017.
 

Attached Files:

No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2011-02-21 08:37campbellbarton
close_dateNone2011-02-21 08:37campbellbarton
StatusInvestigate2011-02-21 08:37campbellbarton
StatusNew2011-02-16 15:04campbellbarton
assigned_tonone2011-02-15 10:48campbellbarton