← Back to team overview

clicompanion-devs team mailing list archive

[Bug 1043706] Re: CLI companion error 'MainWindow' object has no attribute 'cmd_notebook'

 

Hi,

I've tested your branch on an up to date precise installation, I've
followed these steps:

$ bzr branch lp:~dcaro/clicompanion/fix-1043706  && cd fix-*
$ python clicompanion
ERROR: locales dir not found.

Which is related with bug #1072253

So then I continued with:

$  wget https://launchpadlibrarian.net/121680964/fix.patch
$ patch -p1 -i fix.patch
patching file clicompanion
patching file clicompanionlib/view.py
$ python clicompanion //ask me to install python-vte
Using locale in source code folder 
$ sudo apt-get install python-vte
$ python clicompanion
Using locale in source code folder
INFO: Reading config file at /home/chilicuil/.config/clicompanion/config.
Traceback (most recent call last):
  File "clicompanion", line 66, in <module>
    run( options )
  File "/home/chilicuil/fix-1043706/clicompanionlib/view.py", line 582, in run
    config=config)
  File "/home/chilicuil/fix-1043706/clicompanionlib/view.py", line 227, in __init__
    self.cmd_notebook = CommandsNotebook(config, self.pluginloader)
  File "/home/chilicuil/fix-1043706/clicompanionlib/view.py", line 95, in __init__
    self.draw_all()
  File "/home/chilicuil/fix-1043706/clicompanionlib/view.py", line 106, in draw_all
    self.config.get_plugin_conf('LocalCommandList'))
  File "/home/chilicuil/fix-1043706/plugins/LocalCommandList.py", line 76, in __init__
    self.config.get('default', 'cheatsheet'))
  File "/home/chilicuil/fix-1043706/plugins/LocalCommandList.py", line 476, in __init__
    self.load()
  File "/home/chilicuil/fix-1043706/plugins/LocalCommandList.py", line 488, in load
    open(self.ceatsheet, 'w').close()
AttributeError: Cheatsheet instance has no attribute 'ceatsheet'

$ python --version
Python 2.7.3

$ cat ~/.config/clicompanion/config 
[profile::default]
update_login_records = True
colorb = #000000
encoding = UTF-8
antialias = True
scrollb = 500
bold_text = False
use_system_colors = False
use_system_font = False
font = Monospace 10
sel_word = -A-Za-z0-9,./?%&#:_
colorf = #FFFFFF
color_scheme = Custom

[LocalCommandList::default]
cheatsheet = /home/chilicuil/.clicompanion2

[general::default]
debug = False
plugins = LocalCommandList, CommandLineFU, StandardURLs

[keybindings]
previous_tab = unused
toggle_maximize = F11
edit_command = unused
cancel_command = ctrl+C
next_tab = unused
close_tab = unused
move_tab_right = unused
toggle_hide_ui = F9
add_command = F5
add_tab = F7
remove_command = F6
move_tab_left = unused
copy = shift+ctrl+C
paste = shift+ctrl+V
toggle_fullscreen = F12
run_command = F4

So.., it doesn't work here, greetings.

-- 
You received this bug notification because you are a member of CLI
Companion Development Team, which is subscribed to CLI Companion.
https://bugs.launchpad.net/bugs/1043706

Title:
  CLI companion error 'MainWindow' object has no attribute
  'cmd_notebook'

Status in CLI Companion:
  Fix Committed

Bug description:
  I am using Ubuntu 12.04 in the netbook. I used the terminal to get
  clicompanion from the PPA. It downloaded and is installed in my menu
  but, when I run it from the menu nothing happens. In the terminal gave
  an error message:

  File "/usr/bin/clicompanion", line 66, in <module>
      run( options )
    File "/usr/lib/python2.7/dist-packages/clicompanionlib/view.py", line 575, in run
      config=config)
    File "/usr/lib/python2.7/dist-packages/clicompanionlib/view.py", line 225, in __init__
      self.init_config()
    File "/usr/lib/python2.7/dist-packages/clicompanionlib/view.py", line 397, in init_config
      self.cmd_notebook.set_netbook(True)
  AttributeError: 'MainWindow' object has no attribute 'cmd_notebook'

To manage notifications about this bug go to:
https://bugs.launchpad.net/clicompanion/+bug/1043706/+subscriptions


References