Crash after ./install on Ubuntu 12.04

Bug #983851 reported by Charles Brooking
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Polly
Incomplete
Undecided
Unassigned

Bug Description

I've tried to checkout, compile, install, and run polly, but have hit an error.

Should the following work on Ubuntu 12.04 (currently beta)?

bzr branch lp:polly
cd polly/
sudo ./install
polly

The install appears to complete successfully, but running polly gives this:

Polly 0.93.4 (pre-alpha 3.4)
Copyright (C) 2011 Marcelo Hashimoto
cache path: /home/charlie/.cache/polly
config path: /home/charlie/.config/polly
data home: /home/charlie/.local/share/polly
initializing...
Traceback (most recent call last):
  File "/usr/local/bin/polly", line 275, in <module>
    proxy_controller = gui.frontend.proxy.Controller(setting_factory)
  File "/usr/local/lib/python2.7/dist-packages/polly/gui/frontend/proxy.py", line 84, in __init__
    self.backend = ControllerBackend(self._enabled_callback, self._host_callback, self._port_callback, self._type_callback, setting_factory)
  File "/usr/local/lib/python2.7/dist-packages/polly/proxy.py", line 191, in __init__
    self._update_enabled()
  File "/usr/local/lib/python2.7/dist-packages/polly/proxy.py", line 57, in _update_enabled
    enabled = self.enabled_setting.get_value()
  File "/usr/local/lib/python2.7/dist-packages/polly/setting.py", line 64, in get_value
    return self.value.get_bool()
AttributeError: 'NoneType' object has no attribute 'get_bool'

Looks like the same crashlog as Bug #937153

Revision history for this message
Conscious User (conscioususer) wrote :

Please post the terminal output of the install.

Changed in polly:
status: New → Incomplete
Revision history for this message
Charles Brooking (brookingcharlie) wrote :
Download full text (34.6 KiB)

$ sudo ./install

running install
running build
running build_py
running build_scripts
running install_lib
copying build/lib.linux-x86_64-2.7/polly/iconset.py -> /usr/local/lib/python2.7/dist-packages/polly
copying build/lib.linux-x86_64-2.7/polly/shortener.py -> /usr/local/lib/python2.7/dist-packages/polly
copying build/lib.linux-x86_64-2.7/polly/setting.py -> /usr/local/lib/python2.7/dist-packages/polly
copying build/lib.linux-x86_64-2.7/polly/__init__.py -> /usr/local/lib/python2.7/dist-packages/polly
copying build/lib.linux-x86_64-2.7/polly/external/wraplabel.py -> /usr/local/lib/python2.7/dist-packages/polly/external
copying build/lib.linux-x86_64-2.7/polly/external/__init__.py -> /usr/local/lib/python2.7/dist-packages/polly/external
copying build/lib.linux-x86_64-2.7/polly/external/oauth2.py -> /usr/local/lib/python2.7/dist-packages/polly/external
copying build/lib.linux-x86_64-2.7/polly/proxy.py -> /usr/local/lib/python2.7/dist-packages/polly
copying build/lib.linux-x86_64-2.7/polly/twitter/post/result.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter/post
copying build/lib.linux-x86_64-2.7/polly/twitter/post/message.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter/post
copying build/lib.linux-x86_64-2.7/polly/twitter/post/__init__.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter/post
copying build/lib.linux-x86_64-2.7/polly/twitter/post/tweet.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter/post
copying build/lib.linux-x86_64-2.7/polly/twitter/__init__.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter
copying build/lib.linux-x86_64-2.7/polly/twitter/media.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter
copying build/lib.linux-x86_64-2.7/polly/twitter/topic/category.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter/topic
copying build/lib.linux-x86_64-2.7/polly/twitter/topic/trend.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter/topic
copying build/lib.linux-x86_64-2.7/polly/twitter/topic/__init__.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter/topic
copying build/lib.linux-x86_64-2.7/polly/twitter/account.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter
copying build/lib.linux-x86_64-2.7/polly/twitter/realtime.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter
copying build/lib.linux-x86_64-2.7/polly/twitter/lead/__init__.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter/lead
copying build/lib.linux-x86_64-2.7/polly/twitter/lead/group.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter/lead
copying build/lib.linux-x86_64-2.7/polly/twitter/lead/user.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter/lead
copying build/lib.linux-x86_64-2.7/polly/twitter/lead/relationship.py -> /usr/local/lib/python2.7/dist-packages/polly/twitter/lead
copying build/lib.linux-x86_64-2.7/polly/gui/stream/topics/__init__.py -> /usr/local/lib/python2.7/dist-packages/polly/gui/stream/topics
copying build/lib.linux-x86_64-2.7/polly/gui/stream/topics/categories.py -> /usr/local/lib/python2.7/dist-packages/polly/gui/stream/topics
copying build/lib.linux-x86_64-2.7/polly/gui/stream/topics/trends.py -> /usr/local/lib/python2.7/dist-pac...

Revision history for this message
Charles Brooking (brookingcharlie) wrote :

Interestingly, running polly from a terminal gives me different output now (see below).

But running from an Alt+F2 dialog works!

Output from terminal:

$ polly
Polly 0.93.4 (pre-alpha 3.4)
Copyright (C) 2011 Marcelo Hashimoto
cache path: /home/charlie/.cache/polly
config path: /home/charlie/.config/polly
data home: /home/charlie/.local/share/polly
initializing...
Traceback (most recent call last):
  File "/usr/local/bin/polly", line 303, in <module>
    account_manager = gui.twitter.account.Manager(NAME, config_path, config_path_lock, setting_factory, proxy_controller, font_scheme, identifier_factory, status_bar)
  File "/usr/local/lib/python2.7/dist-packages/polly/gui/twitter/account.py", line 486, in __init__
    subtoken_secret = keyring.get_password(self.name, subtoken)
  File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 34, in get_password
    return _keyring_backend.get_password(service_name, username)
  File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 154, in get_password
    items = gnomekeyring.find_network_password_sync(username, service)
gnomekeyring.IOError

Revision history for this message
Conscious User (conscioususer) wrote :

The error in your original install is caused by gconf schemas not being found. Which is strange, since your install output shows that they were installed. Can you please run gconf-editor and confirm that there is stuff inside /apps/polly?

The second error is a GNOME Keyring error. I'm not sure what causes it, but it doesn't seem like something I can solve from Polly. Usually when people report this error it is either temporary or a symptom of something bigger. Do you run other GNOMEKeyring-based apps, like Empathy?

Working via Alt+F2 doesn't make sense, as it is theoretically the same thing. Is this happening consistently? Everytime you start from terminal you have this crash, and everytime you start from Alt+F2 works?

Revision history for this message
Charles Brooking (brookingcharlie) wrote :

The gconf error is strange because I tried installing a couple of times and got the same crash when running polly. But, when I tried later that night, it worked; and it's worked ever since. There is stuff inside /apps/polly when I look in gconf-editor. Sorry I can't give more concrete info on this.

The gnome-keyring issue is consistent, though: if I run polly from gnome-terminal, I see the crash in comment #3; but, if I run it via Alt+F2, it opens normally - even if I check the 'Run in terminal' box, which shows the terminal window with the same info lines during initialisation but no error!

Not sure if it matters, but I'm using the 'GNOME Classic (No effects)' aka gnome-fallback session.

Revision history for this message
Conscious User (conscioususer) wrote :

On the gconf part, I'd guess that the first install didn't trigger something necessary for gconf to load the new keys. I'll see if the 0.94 port to gsettings will solve this.

On the keyring issue, can you confirm you don't have multiple installs of Polly on this machine?

Revision history for this message
Charles Brooking (brookingcharlie) wrote :

Yep, only one install.

But I previously had Polly installed from http://ppa.launchpad.net/conscioususer/polly-unstable/ubuntu, removed it using apt-get remove, and then installed using from bzr branch lp:polly using ./install.

Revision history for this message
Conscious User (conscioususer) wrote :

Theoretically, there should be no difference between typing "polly" in the terminal and Alt+F2.

Did you ever changed the PATH environment variable in any way?

Revision history for this message
Charles Brooking (brookingcharlie) wrote :

Nope, no changes to $PATH.

Seems like we're a bit in the dark on this one: I don't personally know the theory of Alt+F2 (especially with 'Run in terminal' enabled) vs invocation from gnome-terminal and whether they should be the same. It's an artefact of GNOME, though, and/or the python keyring library - not Polly - so I understand if you want to just close this ticket.

Revision history for this message
Conscious User (conscioususer) wrote :

I'd have to investigate the differences of Alt+F2 too... I don't think it's supposed to be different.

I'll leave this open in case we discover something, and we can revisit this when I release 0.94, which has major changes in keyring access.

Revision history for this message
Leonardo Rocha (leonardo-lsrocha) wrote :

I'm having the same problem here, but I can't run it via Alt+F2.

I'm running it on Ubuntu 12.04 64bits.

Polly 0.93.4 (pre-alpha 3.4)
Copyright (C) 2011 Marcelo Hashimoto
cache path: /home/leonardo/.cache/polly
config path: /home/leonardo/.config/polly
data home: /home/leonardo/.local/share/polly
initializing...
Traceback (most recent call last):
  File "/usr/local/bin/polly", line 275, in <module>
    proxy_controller = gui.frontend.proxy.Controller(setting_factory)
  File "/usr/local/lib/python2.7/dist-packages/polly/gui/frontend/proxy.py", line 84, in __init__
    self.backend = ControllerBackend(self._enabled_callback, self._host_callback, self._port_callback, self._type_callback, setting_factory)
  File "/usr/local/lib/python2.7/dist-packages/polly/proxy.py", line 191, in __init__
    self._update_enabled()
  File "/usr/local/lib/python2.7/dist-packages/polly/proxy.py", line 57, in _update_enabled
    enabled = self.enabled_setting.get_value()
  File "/usr/local/lib/python2.7/dist-packages/polly/setting.py", line 64, in get_value
    return self.value.get_bool()
AttributeError: 'NoneType' object has no attribute 'get_bool'

Revision history for this message
Conscious User (conscioususer) wrote :

@Leonardo:

How did you install?

Revision history for this message
Leonardo Rocha (leonardo-lsrocha) wrote :

@Conscious User:

Sorry. Only now I noticed that I've forgotten to run the ./install as root. =D

Revision history for this message
nigeldgreen (nigel-greenlemur) wrote :
Download full text (11.5 KiB)

Hello - I am hitting a similar problem on Linux Mint. I've been using Polly on Arch for a week and I really like it as a Twitter client. When I run the install on Mint I get the following message when I run it:

Polly 0.93.8 (pre-alpha 3.8)
Copyright (C) 2011 Marcelo Hashimoto
cache path: /home/nigel/.cache/polly
config path: /home/nigel/.config/polly
data home: /home/nigel/.local/share/polly
initializing...
Traceback (most recent call last):
  File "/usr/local/bin/polly", line 275, in <module>
    proxy_controller = gui.frontend.proxy.Controller(setting_factory)
  File "/usr/local/lib/python2.7/dist-packages/polly/gui/frontend/proxy.py", line 84, in __init__
    self.backend = ControllerBackend(self._enabled_callback, self._host_callback, self._port_callback, self._type_callback, setting_factory)
  File "/usr/local/lib/python2.7/dist-packages/polly/proxy.py", line 191, in __init__
    self._update_enabled()
  File "/usr/local/lib/python2.7/dist-packages/polly/proxy.py", line 57, in _update_enabled
    enabled = self.enabled_setting.get_value()
  File "/usr/local/lib/python2.7/dist-packages/polly/setting.py", line 64, in get_value
    return self.value.get_bool()
AttributeError: 'NoneType' object has no attribute 'get_bool'

I've installed all the dependencies and checked gconf-editor (there are height and width values for the window registered there). Any ideas?

The output from my install is as follows:

running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.7
creating build/lib.linux-i686-2.7/polly
copying src/polly/__init__.py -> build/lib.linux-i686-2.7/polly
copying src/polly/setting.py -> build/lib.linux-i686-2.7/polly
copying src/polly/iconset.py -> build/lib.linux-i686-2.7/polly
copying src/polly/shortener.py -> build/lib.linux-i686-2.7/polly
copying src/polly/proxy.py -> build/lib.linux-i686-2.7/polly
creating build/lib.linux-i686-2.7/polly/twitter
copying src/polly/twitter/__init__.py -> build/lib.linux-i686-2.7/polly/twitter
copying src/polly/twitter/media.py -> build/lib.linux-i686-2.7/polly/twitter
copying src/polly/twitter/realtime.py -> build/lib.linux-i686-2.7/polly/twitter
copying src/polly/twitter/account.py -> build/lib.linux-i686-2.7/polly/twitter
creating build/lib.linux-i686-2.7/polly/twitter/post
copying src/polly/twitter/post/__init__.py -> build/lib.linux-i686-2.7/polly/twitter/post
copying src/polly/twitter/post/message.py -> build/lib.linux-i686-2.7/polly/twitter/post
copying src/polly/twitter/post/result.py -> build/lib.linux-i686-2.7/polly/twitter/post
copying src/polly/twitter/post/tweet.py -> build/lib.linux-i686-2.7/polly/twitter/post
creating build/lib.linux-i686-2.7/polly/twitter/lead
copying src/polly/twitter/lead/__init__.py -> build/lib.linux-i686-2.7/polly/twitter/lead
copying src/polly/twitter/lead/group.py -> build/lib.linux-i686-2.7/polly/twitter/lead
copying src/polly/twitter/lead/relationship.py -> build/lib.linux-i686-2.7/polly/twitter/lead
copying src/polly/twitter/lead/user.py -> build/lib.linux-i686-2.7/polly/twitter/lead
creating build/lib.linux-i686-2.7/polly/twitter/topic
copying src/polly/twitter/topic/__init__.py -> build/lib.linux-i686-2.7/polly/twit...

Revision history for this message
nigeldgreen (nigel-greenlemur) wrote :

Apologies - didn't notice that this thread is so old before I sent my comment!

Revision history for this message
nigeldgreen (nigel-greenlemur) wrote :

If you want me to repost this as a new topic, let me know.

Revision history for this message
Gemma Seymour (lgcvsa) wrote :

Just install 0.93.11 on Linux Mint 16. Manually checked all python mods using "sudo apt-get install", but missed gtk-spell first time around. Installed gtk-spell, re-ran "sudo ./install" and reached the "AttributeError: 'NoneType' object has no attribute 'get_bool'." error.

Re-ran "./install" WITHOUT sudo, and everything is working fine, now. So, I suspect it's a permissions issue.

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.