Bug 1051949 - [abrt] turpial: worker.py:509:get_window_size:KeyError: 'Window'
Summary: [abrt] turpial: worker.py:509:get_window_size:KeyError: 'Window'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: turpial
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Edwind Richzendy Contreras Soto
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:5a9ec20e3ade17ce951d08d434e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-13 00:00 UTC by Gustavo Rodrigues
Modified: 2014-05-17 00:04 UTC (History)
2 users (show)

Fixed In Version: python-libturpial-1.7.0-1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-12 05:20:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (792 bytes, text/plain)
2014-01-13 00:00 UTC, Gustavo Rodrigues
no flags Details
File: environ (1.80 KB, text/plain)
2014-01-13 00:00 UTC, Gustavo Rodrigues
no flags Details

Description Gustavo Rodrigues 2014-01-13 00:00:17 UTC
Description of problem:
It happened as soon as I launched turpial. I am running the latest version on Fedora 20. 
I run it and then I get the error, but the application still launches, but it's stuck on the loading screen.
Running on terminal I get the following output:

** Message: pygobject_register_sinkfunc is deprecated (GstObject)
DEBUG::Using gst as sound system
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:122: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)
"KConfigIni: In file /home/gustavo/.kde/share/icons/oxyfaenza-master/index.theme, line 31: " Invalid entry (missing '=') 
loaded the Generic plugin 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/main.py", line 592, in after_core_initialized
    width, height = self.core.get_window_size()
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/worker.py", line 509, in get_window_size
    config['Window']['size'] = "320,480"
KeyError: 'Window'


Version-Release number of selected component:
turpial-3.0-3.fc20

Additional info:
reporter:       libreport-2.1.11
cmdline:        /usr/bin/python2 /usr/bin/turpial
executable:     /usr/bin/turpial
kernel:         3.12.6-300.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
worker.py:509:get_window_size:KeyError: 'Window'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/main.py", line 592, in after_core_initialized
    width, height = self.core.get_window_size()
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/worker.py", line 509, in get_window_size
    config['Window']['size'] = "320,480"
KeyError: 'Window'

Local variables in innermost frame:
self: <turpial.ui.qt.worker.CoreWorker object at 0x1de0200>
config: {'Services': {'shorten-url': 'is.gd', 'upload-pic': 'twitpic'}, 'Proxy': {'username': '', 'password': '', 'protocol': 'http', 'port': '', 'server': ''}, 'Advanced': {'socket-timeout': '20', 'show-user-avatars': 'on'}, 'General': {'update-interval': '5', 'statuses': '60', 'queue-interval': '30'}}

Comment 1 Gustavo Rodrigues 2014-01-13 00:00:30 UTC
Created attachment 849085 [details]
File: backtrace

Comment 2 Gustavo Rodrigues 2014-01-13 00:00:36 UTC
Created attachment 849086 [details]
File: environ

Comment 3 Edwind Richzendy Contreras Soto 2014-01-28 14:16:24 UTC
You can test this using a new version of python-libturpial? (1.5.9-1)

Comment 4 Juan Dayer 2014-01-28 14:49:05 UTC
Hi. I've been the same problem. I've updated python-libturpial to 1.5.9-1 and I've could add my account.
However, I can't access to preferences, I get this error in console:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/main.py", line 278, in show_preferences_dialog
    self.preferences_dialog = PreferencesDialog(self)
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/preferences.py", line 44, in __init__
    self.browser_page = BrowserPage(base)
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/preferences.py", line 256, in __init__
    self.command.setText(current_browser)
TypeError: QLineEdit.setText(QString): argument 1 has unexpected type 'NoneType'

Comment 5 Gustavo Rodrigues 2014-01-28 15:04:35 UTC
With the latest version I had some problems at first when I tried to add my Twitter account:

** Message: pygobject_register_sinkfunc is deprecated (GstObject)
DEBUG::Using gst as sound system
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:122: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)
loaded the Generic plugin 
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/accounts.py", line 162, in __register_twitter_account
    self.base.save_account(account)
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/main.py", line 363, in save_account
    self.core.save_account(account)
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/worker.py", line 333, in save_account
    self.load_account(account_id, trigger_signal=False)
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/worker.py", line 342, in load_account
    self.core.accman.load(account_id)
AttributeError: Core instance has no attribute 'accman'

<type 'exceptions.AttributeError'>: Core instance has no attribute 'accman'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/accounts.py", line 174, in __relogin_account
    index = selection.selectedIndexes()[0]
IndexError: list index out of range

<type 'exceptions.IndexError'>: list index out of range
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/accounts.py", line 162, in __register_twitter_account
    self.base.save_account(account)
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/main.py", line 363, in save_account
    self.core.save_account(account)
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/worker.py", line 332, in save_account
    account_id = self.core.register_account(account)
  File "/usr/lib/python2.7/site-packages/libturpial/api/core.py", line 120, in register_account
    return self.account_manager.register(account)
  File "/usr/lib/python2.7/site-packages/libturpial/api/managers/accountmanager.py", line 70, in register
    raise AccountAlreadyRegistered
AccountAlreadyRegistered

<class 'libturpial.exceptions.AccountAlreadyRegistered'>: 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/accounts.py", line 135, in __delete_account
    index = selection.selectedIndexes()[0]
IndexError: list index out of range
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/accounts.py", line 162, in __register_twitter_account
    self.base.save_account(account)
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/main.py", line 363, in save_account
    self.core.save_account(account)
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/worker.py", line 333, in save_account
    self.load_account(account_id, trigger_signal=False)
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/worker.py", line 342, in load_account
    self.core.accman.load(account_id)
AttributeError: Core instance has no attribute 'accman'

<type 'exceptions.AttributeError'>: Core instance has no attribute 'accman'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/accounts.py", line 176, in __relogin_account
    self.base.load_account(account_id)
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/main.py", line 366, in load_account
    self.core.load_account(account_id)
  File "/usr/lib/python2.7/site-packages/turpial/ui/qt/worker.py", line 339, in load_account
    self.register(self.core.accman.load, (account_id),
AttributeError: Core instance has no attribute 'accman'

<type 'exceptions.AttributeError'>: Core instance has no attribute 'accman'

----------------------------------------------------------------------------

Then, I restarted Turpial and it detected my twitter account:

[gustavo@localhost ~]$ turpial
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
DEBUG::Using gst as sound system
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:122: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
  set_interactive(1)
loaded the Generic plugin 
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com
--Created timer for gustavokrm-twitter-timeline every 300000 sec
INFO:urllib3.connectionpool:Starting new HTTPS connection (1): api.twitter.com

--

Now it is working. :)

Comment 6 Fedora Update System 2014-05-01 19:07:48 UTC
python-libturpial-1.7.0-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/python-libturpial-1.7.0-1.el6

Comment 7 Fedora Update System 2014-05-01 19:08:40 UTC
python-libturpial-1.7.0-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-libturpial-1.7.0-1.fc19

Comment 8 Fedora Update System 2014-05-01 19:09:39 UTC
python-libturpial-1.7.0-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-libturpial-1.7.0-1.fc20

Comment 9 Fedora Update System 2014-05-02 16:00:13 UTC
Package python-libturpial-1.7.0-1.el6:
* should fix your issue,
* was pushed to the Fedora EPEL 6 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing python-libturpial-1.7.0-1.el6'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2014-1309/python-libturpial-1.7.0-1.el6
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2014-05-12 05:20:40 UTC
python-libturpial-1.7.0-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2014-05-12 05:23:40 UTC
python-libturpial-1.7.0-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2014-05-17 00:04:40 UTC
python-libturpial-1.7.0-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.