Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add sources #33

Closed
johnson-christopher opened this issue Apr 26, 2013 · 4 comments
Closed

Unable to add sources #33

johnson-christopher opened this issue Apr 26, 2013 · 4 comments

Comments

@johnson-christopher
Copy link

I am using sup-config to add sources and after adding them I get the following errors:

/usr/lib/ruby/vendor_ruby/sup/account.rb:38:in `initialize': undefined method `[]' for nil:NilClass (NoMethodError)
    from /usr/lib/ruby/vendor_ruby/sup/util.rb:576:in `new'
    from /usr/lib/ruby/vendor_ruby/sup/util.rb:576:in `init'
from /usr/lib/ruby/vendor_ruby/sup.rb:166:in `start'
    from /usr/bin/sup-add:78:in `<main>'

When I try to run sup-sync I get the same error (except the call originates in sup-sync on line 80 instead of sup-add on line 78.

This is using the 0.12..1+git20120407.aaa852f version in the Ubuntu 12.10 (quantal) repo.

So, I tried to use the one from "gem install sup" instead and then I get this error as soon as I run sup-config and it immediately exits:

/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': superclass mismatch for class Iconv (TypeError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/rfc2047.rb:19:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup/source.rb:1:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/sup-0.12.1/lib/sup.rb:351:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/sup-0.12.1/bin/sup-config:7:in `<top (required)>'
    from /usr/local/bin/sup-config:23:in `load'
    from /usr/local/bin/sup-config:23:in `<main>'

The version of the iconv gem I have is 1.0.3.

@ericweikl
Copy link
Contributor

I have no idea where the first error comes from... looking at the code, the value can't be nil. The second error is probably related to #11, which is fixed in the development branch. Maybe you could try cloning the development branch from github and running that?

@gauteh
Copy link
Member

gauteh commented Apr 29, 2013

Check out: https://github.com/sup-heliotrope/sup/wiki/Running-from-git for how to test the development branch

@johnson-christopher
Copy link
Author

When I run out of the development branch I get the second error. I'm thinking it could have something to do with Ubuntu being stupid about the versions. It all says 1.9.1 but the actual version that I get when I run ruby is 1.9.3. I'm going to try completely uninstalling ruby and gems and start from scratch to see how it goes. I'll let you know.

@johnson-christopher
Copy link
Author

Re-installing everything related to ruby seems to have the development version working now. I have no idea which package was to blame unfortunately, because I got tired of doing one at a time without success, so I just went nuclear on it. It's fixed now either way. Thank you for you help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants