On Mon, Jun 23, 2008 at 6:45 PM, john muhl <[EMAIL PROTECTED]> wrote:
> I've had good results with Radiant, SQLite3 and Mac 10.5 "just working" so
> if that's a possibility it might save you some effort.
>

Bootstrapping on OS X 10.4 (I doubt the OS version is relevant) and
ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-darwin8.11.1] fails too:

aslak-hellesoys-computer-2:~/scm/radiant aslakhellesoy$ rake
development db:bootstrap
(in /Users/aslakhellesoy/scm/radiant)
rake aborted!
SQLite3::SQLException: no such table: pages: SELECT DISTINCT
class_name AS klass_name FROM pages WHERE class_name <> '' AND
class_name IS NOT NULL

(similar trace)

Is there any known way to prevent the bootstrapping task from loading
AR classes that don't yet have their tables created?

Aslak

> On 2008/06/23, at 10:19, aslak hellesoy wrote:
>
>> Hi again,
>>
>> I just pulled the code from Github, copied config/database.sqlite.yml
>> to config/database.yml, cd into radiant/radiant and ran rake
>> development db:bootstrap
>>
>> It fails with:
>>
>> SQLite3::SQLException: no such table: pages: SELECT DISTINCT
>> class_name AS klass_name FROM pages WHERE class_name <> '' AND
>> class_name IS NOT NULL
>>
>> I've seen similar errors mentioned in a couple of older threads, but
>> nothing helped me. It seems several model classes are referenced while
>> the db:bootstrap task is running, but I have an empty database. Seems
>> like a catch 22 to me. Is there a simple workaround? Here is the full
>> trace:
>>
>> C:\scm\radiant\radiant>rake development db:bootstrap --trace
>> (in C:/scm/radiant/radiant)
>> ** Invoke development (first_time)
>> ** Execute development
>> ** Invoke environment (first_time)
>> ** Execute environment
>> rake aborted!
>> SQLite3::SQLException: no such table: pages: SELECT DISTINCT
>> class_name AS klass_name FROM pages WHERE class_name <> '' AND
>> class_name IS NOT NULL
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:150:in
>> `log'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:132:in
>> `execute'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:345:in
>> `catch_schema_changes'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:132:in
>> `execute'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:256:in
>> `select'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in
>> `select_all_without_query_cache
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:55:in
>> `select_all'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/active_record/base.rb:532:in
>> `find_by_sql'
>> C:/scm/radiant/radiant/app/models/page.rb:191:in `load_subclasses'
>> C:/scm/radiant/radiant/app/models/page.rb:279
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:203:in
>> `load_without_new_constant_marking'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:203:in
>> `load_file'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in
>> `new_constants_in'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:202:in
>> `load_file'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:94:in
>> `require_or_load'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:248:in
>> `load_missing_constant'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in
>> `const_missing'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:465:in
>> `const_missing'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:260:in
>> `load_missing_constant'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:469:in
>> `const_missing'
>> C:/scm/radiant/radiant/app/models/user_action_observer.rb:2
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:203:in
>> `load_without_new_constant_marking'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:203:in
>> `load_file'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in
>> `new_constants_in'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:202:in
>> `load_file'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:94:in
>> `require_or_load'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:248:in
>> `load_missing_constant'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in
>> `const_missing'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:465:in
>> `const_missing'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/inflector.rb:257:in
>> `constantize'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/string/inflections.rb:148:in
>> `constantize'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/active_record/observer.rb:38:in
>> `instantiate_observers'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/active_record/observer.rb:36:in
>> `each'
>>
>> C:/scm/radiant/radiant/vendor/rails/activerecord/lib/active_record/observer.rb:36:in
>> `instantiate_observers'
>> C:/scm/radiant/radiant/vendor/rails/railties/lib/initializer.rb:216:in
>> `load_observers'
>> C:/scm/radiant/radiant/vendor/rails/railties/lib/initializer.rb:108:in
>> `process'
>> C:/scm/radiant/radiant/vendor/rails/railties/lib/initializer.rb:49:in
>> `send'
>> C:/scm/radiant/radiant/vendor/rails/railties/lib/initializer.rb:49:in
>> `run'
>> C:/scm/radiant/radiant/lib/radiant/initializer.rb:89:in `run'
>> C:/scm/radiant/radiant/config/environment.rb:12
>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>> `gem_original_require'
>> c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
>> C:/scm/radiant/radiant/vendor/rails/railties/lib/tasks/misc.rake:3
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in
>> `invoke_with_call_chain'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
>> `invoke_with_call_chain'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
>> C:/scm/radiant/radiant/lib/tasks/environments.rake:4
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in
>> `invoke_with_call_chain'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
>> `invoke_with_call_chain'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in
>> `invoke_task'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
>> `standard_exception_handling'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
>> `standard_exception_handling'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
>> c:/ruby/bin/rake:19:in `load'
>> c:/ruby/bin/rake:19
>>
>> Should I try with my Mac instead?
>>
>> Cheers,
>> Aslak
>> _______________________________________________
>> Radiant mailing list
>> Post:   Radiant@radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
> _______________________________________________
> Radiant mailing list
> Post:   Radiant@radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to