benoitfragit / google2ubuntu

1.1.5 publcation Nedd Translation
https://plus.google.com/u/0/communities/103854623082229435165
133 stars 28 forks source link

1.1.4: empty google2ubuntu-manager window #50

Open hotice opened 10 years ago

hotice commented 10 years ago

I've upgraded to version 1.1.4 in Ubuntu 14.04 and the googl2ubuntu-manager window is empty: the commands / hot-words are not displayed:

google2ubuntu-bug

Here's the terminal output displayed when running google2ubuntu-manager.py:

Error while reading config file
<type 'exceptions.AttributeError'>
("'NoneType' object has no attribute 'text'",)
'NoneType' object has no attribute 'text'
/usr/share/google2ubuntu/librairy/MainWindow.py:46: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  label_main = Gtk.Label("main")
/usr/share/google2ubuntu/librairy/SetupWindow.py:27: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  label1=Gtk.Label(_('Select your language'))
/usr/share/google2ubuntu/librairy/SetupWindow.py:31: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  label2=Gtk.Label(_('Set the recording time (seconds)'))
/usr/share/google2ubuntu/librairy/SetupWindow.py:34: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  label3=Gtk.Label(_("Set the music player's play command"))
/usr/share/google2ubuntu/librairy/SetupWindow.py:37: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  label4=Gtk.Label(_("Set the music player's pause command"))
/usr/share/google2ubuntu/librairy/SetupWindow.py:40: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  label5=Gtk.Label(_('Hotword mode'))
/usr/share/google2ubuntu/librairy/SetupWindow.py:43: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  label6=Gtk.Label(_('Set the noise threshold'))
/usr/share/google2ubuntu/librairy/SetupWindow.py:46: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  label7 = Gtk.Label(_('Set the hotword'))
/usr/share/google2ubuntu/librairy/MainWindow.py:48: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations
  label_config = Gtk.Label("config")
benoitfragit commented 10 years ago

For the first error:

Error while reading config file <type 'exceptions.AttributeError'> ("'NoneType' object has no attribute 'text'",) 'NoneType' object has no attribute 'text'

You just have to remove the old ~/.config/google2ubuntu/google2ubuntu.xml and you can also remove ~/.config/google2ubuntu/modules because the way we store module has changed

thank you to report this

2014-03-03 12:20 GMT+01:00 Andrew notifications@github.com:

I've upgraded to version 1.1.4 (from PPA) recently in Ubuntu 14.04 and the googl2ubuntu-manager window is empty: the commands / hot-words are not displayed:

[image: google2ubuntu-bug]https://f.cloud.github.com/assets/325449/2308827/9481f89e-a2c5-11e3-8f10-0ce830e0828f.png

Here's the terminal output displayed when running google2ubuntu-manager.py:

Error while reading config file <type 'exceptions.AttributeError'> ("'NoneType' object has no attribute 'text'",) 'NoneType' object has no attribute 'text' /usr/share/google2ubuntu/librairy/MainWindow.py:46: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations labelmain = Gtk.Label("main") /usr/share/google2ubuntu/librairy/SetupWindow.py:27: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label1=Gtk.Label(('Select your language')) /usr/share/google2ubuntu/librairy/SetupWindow.py:31: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label2=Gtk.Label(('Set the recording time (seconds)')) /usr/share/google2ubuntu/librairy/SetupWindow.py:34: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label3=Gtk.Label(("Set the music player's play command")) /usr/share/google2ubuntu/librairy/SetupWindow.py:37: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label4=Gtk.Label(("Set the music player's pause command")) /usr/share/google2ubuntu/librairy/SetupWindow.py:40: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label5=Gtk.Label(('Hotword mode')) /usr/share/google2ubuntu/librairy/SetupWindow.py:43: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label6=Gtk.Label(('Set the noise threshold')) /usr/share/google2ubuntu/librairy/SetupWindow.py:46: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label7 = Gtk.Label(('Set the hotword')) /usr/share/google2ubuntu/librairy/MainWindow.py:48: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label_config = Gtk.Label("config")

Reply to this email directly or view it on GitHubhttps://github.com/benoitfragit/google2ubuntu/issues/50 .

hotice commented 10 years ago

Indeed, removing ~/.config/google2ubuntu/google2ubuntu.xml and ~/.config/google2ubuntu/modules fixes this. So google2ubuntu should remove those folders automatically so it doesn't break the app for everybody who's upgrading from an older version...

benoitfragit commented 10 years ago

for the rest "deprecated constructor" I haven't got this error, because I don't have the same version of GTK and PyGobject but I will try to fix it by modifying constructor

2014-03-03 18:25 GMT+01:00 benoit franquet benoitfranquet@gmail.com:

For the first error:

Error while reading config file <type 'exceptions.AttributeError'> ("'NoneType' object has no attribute 'text'",) 'NoneType' object has no attribute 'text'

You just have to remove the old ~/.config/google2ubuntu/google2ubuntu.xml and you can also remove ~/.config/google2ubuntu/modules because the way we store module has changed

thank you to report this

2014-03-03 12:20 GMT+01:00 Andrew notifications@github.com:

I've upgraded to version 1.1.4 (from PPA) recently in Ubuntu 14.04 and the

googl2ubuntu-manager window is empty: the commands / hot-words are not displayed:

[image: google2ubuntu-bug]https://f.cloud.github.com/assets/325449/2308827/9481f89e-a2c5-11e3-8f10-0ce830e0828f.png

Here's the terminal output displayed when running google2ubuntu-manager.py:

Error while reading config file <type 'exceptions.AttributeError'> ("'NoneType' object has no attribute 'text'",) 'NoneType' object has no attribute 'text' /usr/share/google2ubuntu/librairy/MainWindow.py:46: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations labelmain = Gtk.Label("main") /usr/share/google2ubuntu/librairy/SetupWindow.py:27: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label1=Gtk.Label(('Select your language')) /usr/share/google2ubuntu/librairy/SetupWindow.py:31: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label2=Gtk.Label(('Set the recording time (seconds)')) /usr/share/google2ubuntu/librairy/SetupWindow.py:34: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label3=Gtk.Label(("Set the music player's play command")) /usr/share/google2ubuntu/librairy/SetupWindow.py:37: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label4=Gtk.Label(("Set the music player's pause command")) /usr/share/google2ubuntu/librairy/SetupWindow.py:40: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label5=Gtk.Label(('Hotword mode')) /usr/share/google2ubuntu/librairy/SetupWindow.py:43: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label6=Gtk.Label(('Set the noise threshold')) /usr/share/google2ubuntu/librairy/SetupWindow.py:46: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label7 = Gtk.Label(('Set the hotword')) /usr/share/google2ubuntu/librairy/MainWindow.py:48: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keywords for label or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/InitializerDeprecations label_config = Gtk.Label("config")

Reply to this email directly or view it on GitHubhttps://github.com/benoitfragit/google2ubuntu/issues/50 .

benoitfragit commented 10 years ago

Yes, I will put a version file ine the ~/.config/google2ubuntu folder to see if version has changed then automaticcaly remove ~/.config/google2ubuntu/ folder

2014-03-03 18:30 GMT+01:00 Andrew notifications@github.com:

Indeed, removing ~/.config/google2ubuntu/google2ubuntu.xml and ~/.config/google2ubuntu/modules fixes this. So google2ubuntu should remove those folders automatically so it doesn't break the app for everybody who's upgrading from an older version...

Reply to this email directly or view it on GitHubhttps://github.com/benoitfragit/google2ubuntu/issues/50#issuecomment-36534881 .

uudruid74 commented 10 years ago

I'm having the same issue with "Unable To Translate", using a fresh install of the latest Ubuntu. Any ideas on where to begin?

Thanks

VMF214 commented 10 years ago

samething for me. installing on unbuntu 14.04 with PPA, use on french Unable to translate message