Subject: [sup-talk] Sup crashed at launch

From: [email-masked] (Contzen Laurent)
Date: Sat, 22 Aug 2009 11:45:18 +0200

Hello,

I've heard about sup and it sounded great so I decided to give it a
try following http://www.brainyautomation.com/blog/post/Reading-Gmail-with-Sup.aspx
.

I installed everything, configured ssmtp and got it working, etc. I
then launched sup for a first time to let it create my ~/.sup and exit
whithout any troubles. I then configured my .sup/sources.yaml as shown
in the webpage mentionned above and then launched sup. It crashed with
that output :

[Sat Aug 22 11:41:56 +0200 2009] using character set encoding "utf8"
[Sat Aug 22 11:41:56 +0200 2009] dynamically loading setlocale() from libc.so.6
[Sat Aug 22 11:41:56 +0200 2009] setting locale...
[Sat Aug 22 11:41:56 +0200 2009] locking /home/laurent/.sup/lock...
[Sat Aug 22 11:41:56 +0200 2009] crypto: detected gpg binary in /usr/bin/gpg
[Sat Aug 22 11:41:56 +0200 2009] stopped cursing
[Sat Aug 22 11:41:56 +0200 2009] oh crap, an exception
[Sat Aug 22 11:41:56 +0200 2009] unlocking /home/laurent/.sup/lock...
----------------------------------------------------------------
I'm very sorry. It seems that an error occurred in Sup. Please
accept my sincere apologies. If you don't mind, please send the
contents of ~/.sup/exception-log.txt and a brief report of the
circumstances to sup-talk at rubyforge dot orgs so that I might
address this problem. Thank you!

Sincerely,
William
----------------------------------------------------------------
--- ArgumentError from thread: main
username and password must be specified
/usr/lib/ruby/gems/1.8/gems/sup-0.8.1/lib/sup/imap.rb:60:in `initialize'
/usr/lib/ruby/gems/1.8/gems/sup-0.8.1/lib/sup.rb:30:in `new'
/usr/lib/ruby/gems/1.8/gems/sup-0.8.1/lib/sup.rb:30:in `yaml_properties'
/usr/lib/ruby/1.8/yaml.rb:133:in `call'
/usr/lib/ruby/1.8/yaml.rb:133:in `transfer'
/usr/lib/ruby/1.8/yaml.rb:133:in `node_import'
/usr/lib/ruby/1.8/yaml.rb:133:in `load'
/usr/lib/ruby/1.8/yaml.rb:133:in `load'
/usr/lib/ruby/1.8/yaml.rb:144:in `load_file'
/usr/lib/ruby/1.8/yaml.rb:143:in `open'
/usr/lib/ruby/1.8/yaml.rb:143:in `load_file'
/usr/lib/ruby/gems/1.8/gems/sup-0.8.1/lib/sup.rb:98:in `load_yaml_obj'
/usr/lib/ruby/gems/1.8/gems/sup-0.8.1/lib/sup/index.rb:473:in `load_sources'
/usr/lib/ruby/gems/1.8/gems/sup-0.8.1/lib/sup/index.rb:121:in `load'
/usr/lib/ruby/gems/1.8/gems/sup-0.8.1/lib/sup/util.rb:513:in `send'
/usr/lib/ruby/gems/1.8/gems/sup-0.8.1/lib/sup/util.rb:513:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/sup-0.8.1/bin/sup:162
/usr/bin/sup:19:in `load'
/usr/bin/sup:19

The ouput asked to send this mail so I decided to try to help you by doing it.

Don't hesitate to ask for details, ...

Laurent

---

From: [email-masked] (William Morgan)
Date: Sat, 22 Aug 2009 09:26:36 -0700

> username and password must be specified

Sounds like your sources.yaml file doesn't have a username and password
for that entry, or isn't have the correct format. You may want to delete
it and run sup-add (or sup-config) instead to generate it automatically.
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (William Morgan)
Date: Sat, 22 Aug 2009 09:34:40 -0700

Reformatted excerpts from William Morgan's message of 2009-08-22:
> for that entry, or isn't have the correct format.

In particular, that webpage doesn't preserve spacing for its example
sources.yaml, and yaml is space-sensitive.
-- 
William <wmorgan-sup at masanjin.net>