App fails to load (or work) if ~/.config/lookit.conf is not present (or blank)

Bug #585247 reported by Drew Burden
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Lookit
Fix Released
Critical
Zach Tibbitts

Bug Description

App loads no problem if I create the file manually before launching.
However, it won't save prefs since I created a blank file.

Shell output:

burdenwa@ubuntu:~$ lookit
Unable to load prefs
Traceback (most recent call last):
  File "/usr/bin/lookit", line 227, in <module>
    app = LookitApp()
  File "/usr/bin/lookit", line 67, in __init__
    if f:
UnboundLocalError: local variable 'f' referenced before assignment

Drew Burden (ubuntusso)
description: updated
summary: - App fails to load if ~/.config/lookit.conf is not present
+ App fails to load (or work) if ~/.config/lookit.conf is not present (or
+ blank)
Revision history for this message
Zach Tibbitts (zachtib) wrote :

Fixed in the PPA release of 0.2 as well as the trunk branch in bzr

Changed in lookit:
status: New → Fix Released
importance: Undecided → Critical
assignee: nobody → Zach Tibbitts (zachtib)
Revision history for this message
psych1610 (psych1610) wrote :

Does lookit currently remember it's previous server settings upon restart?

When I fill in the SSH server information and restart lookit the boxes are blank and it doesn't seem to upload any new shots (or produce an error).

In fact, restarting lookit seems to take the config file and return it back to its default state. IMO, it should save the config file so server information does not need to be re-entered upon every restart. Is this a bug or by design?

Revision history for this message
Zach Tibbitts (zachtib) wrote : Re: [Bug 585247] Re: App fails to load (or work) if ~/.config/lookit.conf is not present (or blank)

it *should* work, let me test

On Tue, May 25, 2010 at 5:52 PM, psych1610 <email address hidden> wrote:

> Does lookit currently remember it's previous server settings upon
> restart?
>
> When I fill in the SSH server information and restart lookit the boxes
> are blank and it doesn't seem to upload any new shots (or produce an
> error).
>
> In fact, restarting lookit seems to take the config file and return it
> back to its default state. IMO, it should save the config file so server
> information does not need to be re-entered upon every restart. Is this a
> bug or by design?
>
> --
> App fails to load (or work) if ~/.config/lookit.conf is not present (or
> blank)
> https://bugs.launchpad.net/bugs/585247
> You received this bug notification because you are a bug assignee.
>

--
Zach Tibbitts
<email address hidden>

Revision history for this message
Zach Tibbitts (zachtib) wrote :

bluuuuh, yeah, it's crazy broken. expect 0.2.1 in an hour or two. the
breakage is on load, so if you don't start the client again until you've
updated to 0.2.1 it *should* retain your settings.

(also, please keep in mind this project has been out for under a week, and
don't hesitate to report bugs!)

On Tue, May 25, 2010 at 6:01 PM, Zach Tibbitts <email address hidden> wrote:

> it *should* work, let me test
>
>
> On Tue, May 25, 2010 at 5:52 PM, psych1610 <email address hidden> wrote:
>
>> Does lookit currently remember it's previous server settings upon
>> restart?
>>
>> When I fill in the SSH server information and restart lookit the boxes
>> are blank and it doesn't seem to upload any new shots (or produce an
>> error).
>>
>> In fact, restarting lookit seems to take the config file and return it
>> back to its default state. IMO, it should save the config file so server
>> information does not need to be re-entered upon every restart. Is this a
>> bug or by design?
>>
>> --
>> App fails to load (or work) if ~/.config/lookit.conf is not present (or
>> blank)
>> https://bugs.launchpad.net/bugs/585247
>> You received this bug notification because you are a bug assignee.
>>
>
>
>
> --
> Zach Tibbitts
> <email address hidden>
>

--
Zach Tibbitts
<email address hidden>

Revision history for this message
psych1610 (psych1610) wrote :

Thanks a lot for the quick confirmation. Everything else looks solid.

Revision history for this message
Zach Tibbitts (zachtib) wrote :

I just pushed 0.2.1, which should fix this issue, along with a few other
issues that were pointed out to me this morning

On Tue, May 25, 2010 at 6:40 PM, psych1610 <email address hidden> wrote:

> Thanks a lot for the quick confirmation. Everything else looks solid.
>
> --
> App fails to load (or work) if ~/.config/lookit.conf is not present (or
> blank)
> https://bugs.launchpad.net/bugs/585247
> You received this bug notification because you are a bug assignee.
>

--
Zach Tibbitts
<email address hidden>

Revision history for this message
psych1610 (psych1610) wrote :

Can confirm .2.1 fixes the issue where the config file was not being saved. Thanks a lot. Upon restart the fields are still filled in.

Revision history for this message
Jan (jan-wiele) wrote :

I installed lookit 0.2.2-0 today in KDE. When i try to launch it, i get the followign error message:

jan@jantop2:~$ lookit
Ubuntu One support not found
Unable to load prefs
Traceback (most recent call last):
  File "/usr/bin/lookit", line 217, in <module>
    app = LookitApp()
  File "/usr/bin/lookit", line 72, in __init__
    'gtk-icon-theme-name')
ValueError: could not find setting
jan@jantop2:~$

The file .conf/lookit.conf looks like this:
(dp0
S'version'
p1
(I0
I2
I2
tp2
s.

Any hints?

Revision history for this message
Zach Tibbitts (zachtib) wrote :

I haven't done any testing in KDE, but have you tried the 0.3 beta?

Revision history for this message
Jan (jan-wiele) wrote :

yes, mostly the same error:

jan@jantop2:~$ lookit
Ubuntu One support not found
Traceback (most recent call last):
  File "/usr/bin/lookit", line 236, in <module>
    app = LookitApp()
  File "/usr/bin/lookit", line 79, in __init__
    'gtk-icon-theme-name')
ValueError: could not find setting
jan@jantop2:~$

Revision history for this message
Zach Tibbitts (zachtib) wrote : Re: [Bug 585247] Re: App fails to load (or work) if ~/.config/lookit.conf is not present (or blank)

ok, it's just not finding your gtk-theme correctly, which makes sense, since
you're on KDE let me see what I can do

On Fri, Aug 27, 2010 at 3:46 PM, Jan <email address hidden> wrote:

> yes, mostly the same error:
>
> jan@jantop2:~$ lookit
> Ubuntu One support not found
> Traceback (most recent call last):
> File "/usr/bin/lookit", line 236, in <module>
> app = LookitApp()
> File "/usr/bin/lookit", line 79, in __init__
> 'gtk-icon-theme-name')
> ValueError: could not find setting
> jan@jantop2:~$
>
> --
> App fails to load (or work) if ~/.config/lookit.conf is not present (or
> blank)
> https://bugs.launchpad.net/bugs/585247
> You received this bug notification because you are a bug assignee.
>

--
Zach Tibbitts

Revision history for this message
Zach Tibbitts (zachtib) wrote :

I just pushed a potential fix to my git repo, can you grab it and try?
should just need the lookit script itself, which you can download and run
without installing

On Fri, Aug 27, 2010 at 4:37 PM, Zach Tibbitts <email address hidden> wrote:

> ok, it's just not finding your gtk-theme correctly, which makes sense,
> since you're on KDE let me see what I can do
>
>
> On Fri, Aug 27, 2010 at 3:46 PM, Jan <email address hidden> wrote:
>
>> yes, mostly the same error:
>>
>> jan@jantop2:~$ lookit
>> Ubuntu One support not found
>> Traceback (most recent call last):
>> File "/usr/bin/lookit", line 236, in <module>
>> app = LookitApp()
>> File "/usr/bin/lookit", line 79, in __init__
>> 'gtk-icon-theme-name')
>> ValueError: could not find setting
>> jan@jantop2:~$
>>
>> --
>> App fails to load (or work) if ~/.config/lookit.conf is not present (or
>> blank)
>> https://bugs.launchpad.net/bugs/585247
>> You received this bug notification because you are a bug assignee.
>>
>
>
>
> --
> Zach Tibbitts
>

--
Zach Tibbitts

Revision history for this message
Jan (jan-wiele) wrote :

I cannot find your git repo. searched some time through your launchpad site, but without success. could you give me a link?

Revision history for this message
Zach Tibbitts (zachtib) wrote :

Sorry about that its at github.com/zachtib/lookit
> I cannot find your git repo. searched some time through your launchpad
> site, but without success. could you give me a link?
>
> --
> App fails to load (or work) if ~/.config/lookit.conf is not present (or
blank)
> https://bugs.launchpad.net/bugs/585247
> You received this bug notification because you are a bug assignee.

Revision history for this message
Jan (jan-wiele) wrote :

Thank you,
lookit starts, captures and uploads the image, but doesn't copy the url into my clipboard (tried CTRl + V and middlemousebutton).

Logs:

jan@jantop2:~$ lookit
Ubuntu One support not found
Warning: Couldn't detect gtk theme
Traceback (most recent call last):
  File "/usr/bin/lookit", line 141, in capture_area
    self.process_pixbuf(pb)
  File "/usr/bin/lookit", line 158, in process_pixbuf
    self.upload_image(hashstring)
  File "/usr/bin/lookit", line 208, in upload_image
    os.path.join(self.prefs['savedir'], image))
KeyError: 'savedir'

Revision history for this message
Zach Tibbitts (zachtib) wrote :

have you gone into the preferences dialog and set everything up? it might be
having a problem with an empty configuration

On Fri, Aug 27, 2010 at 6:51 PM, Jan <email address hidden> wrote:

> Thank you,
> lookit starts, captures and uploads the image, but doesn't copy the url
> into my clipboard (tried CTRl + V and middlemousebutton).
>
> Logs:
>
> jan@jantop2:~$ lookit
> Ubuntu One support not found
> Warning: Couldn't detect gtk theme
> Traceback (most recent call last):
> File "/usr/bin/lookit", line 141, in capture_area
> self.process_pixbuf(pb)
> File "/usr/bin/lookit", line 158, in process_pixbuf
> self.upload_image(hashstring)
> File "/usr/bin/lookit", line 208, in upload_image
> os.path.join(self.prefs['savedir'], image))
> KeyError: 'savedir'
>
> --
> App fails to load (or work) if ~/.config/lookit.conf is not present (or
> blank)
> https://bugs.launchpad.net/bugs/585247
> You received this bug notification because you are a bug assignee.
>

--
Zach Tibbitts

Revision history for this message
Jan (jan-wiele) wrote :

Yes, also checked the is.gd button and filled out everthing in 'Upload'.

I've yet another problem:
When i capture a screenshot, i cannot use the taskbar till i see a notification that the upload is complete (it does not respond to my mouseclicks).

Revision history for this message
Zach Tibbitts (zachtib) wrote :

Can you click on *anything* before the notification? Or is just the taskbar
affected?

On Sat, Aug 28, 2010 at 7:20 AM, Jan <email address hidden> wrote:

> Yes, also checked the is.gd button and filled out everthing in 'Upload'.
>
> I've yet another problem:
> When i capture a screenshot, i cannot use the taskbar till i see a
> notification that the upload is complete (it does not respond to my
> mouseclicks).
>
> --
> App fails to load (or work) if ~/.config/lookit.conf is not present (or
> blank)
> https://bugs.launchpad.net/bugs/585247
> You received this bug notification because you are a bug assignee.
>

--
Zach Tibbitts

Revision history for this message
Jan (jan-wiele) wrote :

Just the taskbar is affected. Firefox etc respond normally.

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.