Ubuntu Tweak failed to open the menu Personal>Scripts

Bug #336516 reported by Javier
46
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Fix Released
Medium
Ding Zhou

Bug Description

When trying to display the content of this menu, Ubuntu Tweak tried to load it, failed, an error message was displayed and the only content of the menu after that is a message saying "This module is error while loading."

Revision history for this message
Ding Zhou (tualatrix) wrote :

Please post the error message here.

Revision history for this message
Javier (javiergarcia77-gmail) wrote :

Of course:

Traceback (most recent call last):
  File "/usr/share/ubuntu-tweak/mainwindow.py", line 507, in setup_notebook
    page = page()
  File "/usr/share/ubuntu-tweak/scripts.py", line 144, in __init__
    self.enable_scripts = EnableScripts()
  File "/usr/share/ubuntu-tweak/scripts.py", line 100, in __init__
    DirView.__init__(self, self.userdir)
  File "/usr/share/ubuntu-tweak/common/widgets/treeviews.py", line 38, in __init__
    self.do_update_model(self.dir, iter)
  File "/usr/share/ubuntu-tweak/scripts.py", line 115, in do_update_model
    self.do_update_model(fullname, child_iter)
  File "/usr/share/ubuntu-tweak/scripts.py", line 115, in do_update_model
    self.do_update_model(fullname, child_iter)
  File "/usr/share/ubuntu-tweak/scripts.py", line 118, in do_update_model
    os.chmod(fullname, stat.S_IRWXU)
OSError: [Errno 1] Operation not permitted: '/home/javier/.gnome2/nautilus-scripts/Subversion/Properties.../svn.xpm'

(I thought it would be attached automatically)

Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
assignee: nobody → tualatrix
importance: Undecided → Medium
milestone: none → 0.4.6
status: New → Fix Committed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Fix Committed → Fix Released
Revision history for this message
Siemien (siemieniecki) wrote :

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/ubuntutweak/mainwindow.py", line 436, in setup_notebook
    page = module()
  File "/usr/lib/pymodules/python2.6/ubuntutweak/modules/scripts.py", line 142, in __init__
    self.config_test()
  File "/usr/lib/pymodules/python2.6/ubuntutweak/modules/scripts.py", line 191, in config_test
    self.default.create()
  File "/usr/lib/pymodules/python2.6/ubuntutweak/modules/scripts.py", line 81, in create
    shutil.copy(os.path.join(DATA_DIR, 'scripts/%s' % file), os.path.join(self.systemdir,realname))
  File "/usr/lib/python2.6/shutil.py", line 88, in copy
    copyfile(src, dst)
  File "/usr/lib/python2.6/shutil.py", line 52, in copyfile
    fsrc = open(src, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/share/ubuntu-tweak/scripts/copy-to'

Revision history for this message
Ding Zhou (tualatrix) wrote :

Thanks for your report. I will fix it soon.

Revision history for this message
przekop (przekop) wrote :

I just got almost the same error

Distribution: Ubuntu 13.04 raring
Application: Ubuntu Tweak 0.8.5-1~precise2
Desktop:ubuntu

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/main.py", line 498, in _load_module
    page = module()
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/admins/scripts.py", line 147, in __init__
    TweakModule.__init__(self, 'templates.ui')
TypeError: expected string or buffer

I have 4 scripts in .local/share/nautilus/scripts and they working fine.
Error don't occur after application restart.

Revision history for this message
Cihad GÜNDÜZ (cihad-gunduz) wrote :

I just got almost the same error

Distribution: Ubuntu 13.10 saucy
Application: Ubuntu Tweak 0.8.6-1~saucy1
Desktop:ubuntu

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/main.py", line 495, in _load_module
    page = module()
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/admins/scripts.py", line 152, in __init__
    self.enable_scripts = EnableScripts()
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/admins/scripts.py", line 108, in __init__
    DirView.__init__(self, self.user_dir)
  File "/usr/lib/python2.7/dist-packages/ubuntutweak/gui/treeviews.py", line 51, in __init__
    os.makedirs(self.dir)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Erişim engellendi: '/home/cihad/.gnome2/nautilus-scripts'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.