Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Vte.Terminal.set_word_chars() argument 1 must be string, not None #567

Closed
tawanda opened this issue Jun 15, 2015 · 9 comments
Closed
Milestone

Comments

@tawanda
Copy link

tawanda commented Jun 15, 2015

guake version:
globals.py:VERSION = '0.7.2'

I am on arch linux, I removed the /etc/gconf directory so i could remove guake preferences then i

pacman -R guake

then

pacman -S guake

now if i run guake in a terminal to start it up i get

INFO:guake.guake_app:Logging configuration complete
/usr/lib/python2.7/site-packages/guake/guake_app.py:1614: GtkWarning: gtk_box_pack: assertion 'child->parent == NULL' failed
  self.mainframe.pack_start(self.mainframe, expand=True, fill=True, padding=0)
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/site-packages/guake/main.py", line 239, in <module>
    exec_main()
  File "/usr/lib/python2.7/site-packages/guake/main.py", line 235, in exec_main
    if not main():
  File "/usr/lib/python2.7/site-packages/guake/main.py", line 151, in main
    instance = Guake()
  File "/usr/lib/python2.7/site-packages/guake/guake_app.py", line 300, in __init__
    self.add_tab()
  File "/usr/lib/python2.7/site-packages/guake/guake_app.py", line 1360, in add_tab
    box = GuakeTerminalBox()
  File "/usr/lib/python2.7/site-packages/guake/terminal.py", line 274, in __init__
    self.terminal = GuakeTerminal()
  File "/usr/lib/python2.7/site-packages/guake/terminal.py", line 82, in __init__
    self.configure_terminal()
  File "/usr/lib/python2.7/site-packages/guake/terminal.py", line 100, in configure_terminal
    self.set_word_chars(word_chars)
TypeError: Vte.Terminal.set_word_chars() argument 1 must be string, not None

any solutions?

@pypingou
Copy link
Member

I seem to remember a similar bug on an old version of guake, are you using the latest one?

@tawanda
Copy link
Author

tawanda commented Jun 15, 2015

globals.py:VERSION = '0.7.2'

@pypingou
Copy link
Member

On Sun, Jun 14, 2015 at 11:20:41PM -0700, Tawanda Minya wrote:

globals.py:VERSION = '0.7.2'

Odd, something in the gconf scheme installed then maybe?

@tawanda
Copy link
Author

tawanda commented Jun 15, 2015

I removed the /etc/gconf directory, and reinstalled guake, thats when all hell broke loose

now i only have one file in there %gconf-tree.xml

do you have default files which i can copy in there

@gsemet
Copy link
Member

gsemet commented Jun 15, 2015

what is /etc/gconf ? Code looks ok, for an unknown reason it get None when reading a gconf key in /general/word_chars. Remove the complete gconf keys (gconf-editor > apps > guake) and reinstall

@gsemet gsemet closed this as completed in dab261f Jun 15, 2015
@tawanda
Copy link
Author

tawanda commented Jun 15, 2015

how do i access gconf-editor
tried to get it in the terminal

➜  ~  gconf-editor
zsh: command not found: gconf-editor

@tawanda
Copy link
Author

tawanda commented Jun 15, 2015

i installed the git version with the fix so

terminal.py:

      if word_chars:
           self.set_word_chars(word_chars)

still get this trace

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.

(guake:25257): libglade-WARNING **: unknown attribute `swapped' for <signal>.
INFO:guake.guake_app:Logging configuration complete
/usr/lib/python2.7/site-packages/guake/guake_app.py:1633: GtkWarning: gtk_box_pack: assertion 'child->parent == NULL' failed
  self.mainframe.pack_start(self.notebook, expand=True, fill=True, padding=0)
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/guake/gconfhandler.py", line 269, in fpalette_changed
    client.get_string(KEY('/style/font/color')))
TypeError: color_parse() argument 1 must be string, not None
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/site-packages/guake/main.py", line 239, in <module>
    exec_main()
  File "/usr/lib/python2.7/site-packages/guake/main.py", line 235, in exec_main
    if not main():
  File "/usr/lib/python2.7/site-packages/guake/main.py", line 151, in main
    instance = Guake()
  File "/usr/lib/python2.7/site-packages/guake/guake_app.py", line 328, in __init__
    keyval, mask = gtk.accelerator_parse(key)
TypeError: Gtk.accelerator_parse() argument 1 must be string, not None

/etc/gconf is a folder which i thought was the guake preferences folder and i deleted it, that's when all this pain began

@gsemet
Copy link
Member

gsemet commented Jun 15, 2015

ubuntu: apt-get install gconf-editor
your system: ???? install gconf-editor

@tawanda
Copy link
Author

tawanda commented Jun 17, 2015

I have done it, i now get a window with

Guake can not init

Gconf Error
Have you installed guake.schemas properly?

Manually installing the schemas with the following command fixed the problem

gconftool-2 --install-schema-file=/usr/share/gconf/schemas/guake.schemas

@gsemet gsemet added this to the 0.8.0 milestone Jun 17, 2015
gsemet added a commit that referenced this issue Jan 30, 2017
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
gsemet added a commit that referenced this issue Jan 30, 2017
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants