andialbrecht / crunchyfrog

Head over to RunSQLRun, the successor of CrunchyFrog
http://runsqlrun.org
GNU General Public License v3.0
4 stars 2 forks source link

Cannot add Data source if crunchyfrog-gnome is not installed #68

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I use Xfce4 and usually do not install neither
gnome nor kde specific packages. So I installed
only the crunchyfrog package without crunchyfrog-gnome.
I still would like Crunchyfrog to remember passwords
somehow even if there is no Gnome keyring.

What steps will reproduce the problem?
1. install/run only crunchyfrog
2. Open Edit Data Source dialog
3. Add new MySQL data source

What is the expected output?
Probably to see the newly added datasource

What do you see instead?
No entry is created. When running from console,
this output is generated:

Traceback (most recent call last):
  File "/home/istirbu/src/crunchyfrog/cf/ui/datasources.py", line 267, in
on_response
    res = self.save_datasource()
  File "/home/istirbu/src/crunchyfrog/cf/ui/datasources.py", line 518, in
save_datasource
    self.app.datasources.save(ds)
  File "/home/istirbu/src/crunchyfrog/cf/db/__init__.py", line 457, in save
    self.store_password(datasource)
  File "/home/istirbu/src/crunchyfrog/cf/db/__init__.py", line 541, in
store_password
    entry = gnomekeyring.find_items

What version of the product are you using?
$ hg log -l 1
changeset:   599:a82d1032fc88
tag:         tip
user:        Andi Albrecht <albrecht.andi@gmail.com>
date:        Fri Jul 24 09:27:41 2009 +0200
summary:     Implement query executed callback (stubg) in browser.

On what operating system?
Debian GNU/Linux 5.0

Python version?
python 2.5.4-2

Original issue reported on code.google.com by igor.sti...@gmail.com on 27 Jul 2009 at 10:00

GoogleCodeExporter commented 9 years ago
Yes, there's something broken with the passwords. BTW, while having a look at 
this 
issue I encountered another one (issue69) that may cause problems on your 
system too.
Both issues are targeted for the next release with high priority.

Original comment by albrecht.andi on 27 Jul 2009 at 8:20

GoogleCodeExporter commented 9 years ago
Could you do me a favor and run the following command and post it's output:

python -c "import gnomekeyring; print gnomekeyring"

Somehow it looks like you've the gnomekeyring module installed, but since 
you're using 
XFCE the communication between the application and Gnome's keyring service 
seems to 
fail.

Original comment by albrecht.andi on 28 Jul 2009 at 7:52

GoogleCodeExporter commented 9 years ago
Here is the output:

$ python -c "import gnomekeyring; print gnomekeyring"
<module 'gnomekeyring' from 
'/usr/lib/pymodules/python2.5/gtk-2.0/gnomekeyring.so'>

Original comment by igor.sti...@gmail.com on 28 Jul 2009 at 10:27

GoogleCodeExporter commented 9 years ago
Improved detection if Gnome keyring is available in re8414448bf. I was not 
fully able 
to reproduce this issue, but it seems that the gnomekeyring module is 
installed, but 
the keyring isn't available as you are on XFCE. It would be great if you could 
give a 
short feedback if this change fixed the issue (note, the repo has currently two 
heads, 
this change is in the other head than your latest revision :)

Original comment by albrecht.andi on 28 Jul 2009 at 8:56

GoogleCodeExporter commented 9 years ago
The change in re8414448bf fixes that issue. Thanks a lot!

Original comment by igor.sti...@gmail.com on 29 Jul 2009 at 9:17

GoogleCodeExporter commented 9 years ago

Original comment by albrecht.andi on 29 Jul 2009 at 8:02