Problem solved.  I had the sqlite3 gem installed, not the sqlite3-ruby
gem installed.  Furthermore, I actually had to *remove* the sqlite3
gem, otherwise the problem persisted.

-Matt

On Dec 17, 9:01 am, Matt <[email protected]> wrote:
> I haven't found the solution yet, but after some digging it appears
> the s3 gem is causing the problem.   Full stack trace (I got this from
> manually trying to connect to my database from script/console) is
> below.
>
> NameError: Constant Encoding from encoding.rb not found
>
>     from /usr/local/lib/ruby/gems/1.8/gems/desert-0.5.3/lib/desert/
> rails/dependencies.rb:17:in `load_missing_constant'
>     from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
> active_support/dependencies.rb:80:in
> `const_missing_not_from_s3_library'
>     from /usr/local/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/
> extensions.rb:206:in `const_missing'
>     from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
> active_support/dependencies.rb:92:in `const_missing'
>     from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-0.0.4/lib/sqlite3/
> encoding.rb:9:in `find'
>     from /usr/local/lib/ruby/gems/1.8/gems/sqlite3-0.0.4/lib/sqlite3/
> database.rb:69:in `initialize'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/sqlite3_adapter.rb:13:in `new'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/sqlite3_adapter.rb:13:in
> `sqlite3_connection'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/abstract/connection_pool.rb:223:in
> `send'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/abstract/connection_pool.rb:223:in
> `new_connection'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/abstract/connection_pool.rb:245:in
> `checkout_new_connection'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/abstract/connection_pool.rb:188:in
> `checkout'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/abstract/connection_pool.rb:184:in
> `loop'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/abstract/connection_pool.rb:184:in
> `checkout'
>     from /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/abstract/connection_pool.rb:183:in
> `checkout'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/abstract/connection_pool.rb:98:in
> `connection'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/abstract/connection_pool.rb:326:in
> `retrieve_connection'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/abstract/connection_specification.rb:
> 123:in `retrieve_connection'
>     from /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/
> active_record/connection_adapters/abstract/connection_specification.rb:
> 115:in `connection'
>
> -Matt
>
> On Dec 17, 6:58 am, Matt <[email protected]> wrote:
>
> > Okay, so instead of messing around with Windows7 (previous post), I
> > decided to see if I can't get this running on a linux box.  I did a
> > completely fresh install of Ubuntu 9.10 into a VirtualBox instance.
> > After fussing around with Ruby to get all the right extensions
> > installed to support all the needed gems, I was finally able to do an
> > install using the CommunityEngine template.
>
> > Afterwards, you are instructed to do a script/generate
> > plugin_migration.  So I did.  Well, I tried, anyway.  I get the
> > following output/error:
>
> > $ script/generate plugin_migration
> > ---
> > [COMMUNITY ENGINE] You have 70 pending CommunityEngine migrations:
> > CE is at 70, but you have only migrated it to 0
> > Please run 'script/generate pluging_migration' AND 'rake db:migrate'
> > before continuing, or you will experience errors.
> > ---
> > Constant Encoding from encoding.rb not found
>
> > I googled the error, "Constant Encoding from encoding.rb not found"
> > but found absolutely nothing.  I googled simply "constant encoding
> > encoding.rb" but couldn't find anything that seemed like it would be
> > related.
>
> > Any idea what I'm missing here?
>
> > -Matt

--

You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en.


Reply via email to