I created another fresh install, just to be sure, and I’ve tried the sequence as you suggest.
shanghai@localhost:/Desktop/Download/parlement-0.9$ psql -q template1
-f db/schema.sql psql:db/schema.sql:9: ERROR: il database
“parlement_development” non esiste psql:db/schema.sql:27: NOTICE:
CREATE TABLE / PRIMARY KEY will create implicit index “people_pkey” for
table “people” psql:db/schema.sql:27: NOTICE: CREATE TABLE / UNIQUE
will create implicit index “people_name_key” for table “people”
psql:db/schema.sql:47: NOTICE: CREATE TABLE will create implicit
sequence “usersold_id_seq” for serial column “usersold.id”
psql:db/schema.sql:47: NOTICE: CREATE TABLE / PRIMARY KEY will create
implicit index “usersold_pkey” for table “usersold”
psql:db/schema.sql:47: NOTICE: CREATE TABLE / UNIQUE will create
implicit index “usersold_person_id_key” for table “usersold”
psql:db/schema.sql:64: NOTICE: CREATE TABLE will create implicit
sequence “users_id_seq” for serial column “users.id”
psql:db/schema.sql:64: NOTICE: CREATE TABLE / PRIMARY KEY will create
implicit index “users_pkey” for table “users” psql:db/schema.sql:79:
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
“elts_pkey” for table “elts” psql:db/schema.sql:89: NOTICE: CREATE
TABLE / PRIMARY KEY will create implicit index “mails_pkey” for table
“mails” psql:db/schema.sql:97: NOTICE: CREATE TABLE / PRIMARY KEY will
create implicit index “attachments_pkey” for table “attachments”
psql:db/schema.sql:114: NOTICE: CREATE TABLE will create implicit
sequence “choices_id_seq” for serial column “choices.id”
psql:db/schema.sql:114: NOTICE: CREATE TABLE / PRIMARY KEY will create
implicit index “choices_pkey” for table “choices”
psql:db/schema.sql:123: NOTICE: CREATE TABLE will create implicit
sequence “delegations_id_seq” for serial column “delegations.id”
psql:db/schema.sql:123: NOTICE: CREATE TABLE / PRIMARY KEY will create
implicit index “delegations_pkey” for table “delegations”
shanghai@localhost:/Desktop/Download/parlement-0.9$ rake migrate
—trace (in _home_shanghai/Desktop/Download/parlement-0.9)
_usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:334:
warning: `’ interpreted as argument
prefix _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:363:
warning: `’ interpreted as argument
prefix _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:224:
warning: instance variable @ignore_new_methods not
initialized _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/migration.rb:224:
warning: instance variable @ignore_new_methods not
initialized _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:
warning: method redefined; discarding old
allow_concurrency= _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/sqlserver_adapter.rb:456:
warning: method redefined; discarding old
remove_column _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/oracle_adapter.rb:119:
warning: (...) interpreted as grouped
expression _usr_lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/request.rb:171:
warning: method redefined; discarding old
relative_url_root _usr_lib/ruby/1.8/cgi/session/pstore.rb:17: warning:
method redefined; discarding old
[]= _usr_lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_ext/raw_post_data_fix.rb:57:
warning: ambiguous first argument; put parentheses or even
spaces _usr_lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_ext/raw_post_data_fix.rb:8:
warning: method redefined; discarding old
initialize_query _usr_lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session/active_record_store.rb:129:
warning: private
attribute? _usr_lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/session/active_record_store.rb:179:
warning: method redefined; discarding old
connection _usr_lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/prototype_helper.rb:641:
warning: ambiguous first argument; put parentheses or even
spaces/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/helpers/prototype_helper.rb:874:
warning: `’ interpreted as argument
prefix _usr_lib/ruby/gems/1.8/gems/actionmailer-1.2.5/lib/action_mailer/vendor/tmail/facade.rb:486:
warning: method redefined; discarding old
create_reply _usr_lib/ruby/gems/1.8/gems/actionwebservice-1.1.6/lib/action_web_service/protocol/xmlrpc_protocol.rb:6:
warning: discarding old
message _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:581:
warning: method redefined; discarding old
[]= _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:590:
warning: method redefined; discarding old
[] _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:595:
warning: method redefined; discarding old
keys _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:600:
warning: method redefined; discarding old
find_pair _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:607:
warning: method redefined; discarding old
[]= _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:611:
warning: method redefined; discarding old
[] _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:615:
warning: method redefined; discarding old method_missing Rails Error:
Unable to access log file. Please ensure
that _home_shanghai/Desktop/Download/parlement-0.9/config/../log/development.log
exists and is chmod 0666. The log level has been raised to WARN and the
output directed to STDERR until the problem is
fixed. _usr_lib/ruby/gems/1.8/gems/rails-1.1.6/lib/initializer.rb:483:
warning: instance variable @after_initialize_block not initialized
Warning: $KCODE is NONE. rake aborted! no such file to load—
meta_project _usr_lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__’ _usr_lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require’ _usr_lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require’ _home_shanghai/Desktop/Download/parlement-0.9/Rakefile:14 _usr_lib/ruby/site_ruby/1.8/rake.rb:1828:in
`load_rakefile’ _usr_lib/ruby/site_ruby/1.8/rake.rb:1900:in
`run’ _usr_bin/rake:8
shanghai@localhost:/Desktop/Download/parlement-0.9$ ruby
lib/data_import.rb Rails Error: Unable to access log file. Please
ensure that config/../log/development.log exists and is chmod 0666. The
log level has been raised to WARN and the output directed to STDERR
until the problem is fixed. Loading: parleR Time subject: parleR
(created_on: Sun Oct 30 23:10:48 CET
2005) _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract_adapter.rb:120:in
`log’: PGError: ERROR: la colonna “elts_count” non esiste
(ActiveRecord::StatementInvalid) : UPDATE elts SET elts_count =
elts_count + 1 WHERE (id = ‘ROOT’)
from _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/postgresql_adapter.rb:148:in
`execute’
from _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/postgresql_adapter.rb:152:in
`update’
from _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:454:in
`update_all’
from _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:486:in
`increment_counter’
from _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:346:in
`callback’
from _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:346:in
`callback’
from _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:341:in
`callback’
from _usr_lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/callbacks.rb:266:in
`create_without_timestamps’ ... 11 levels… from
lib/data_import.rb:44:in `inputFile’ from lib/data_import.rb:13:in
`inputDir’ from lib/data_import.rb:11:in `inputDir’ from
lib/data_import.rb:49
Apparently nothing changes, same error :|
Unfortunately I can’t give you remote access soon because I am behind a
proprietary firewall with NAT (this is still a local install)
impossible to reconfigure at the moment, but I’ll come to chat with you
as soon as possible, much probably I’ll try friday afternoon.
I hope the full logfile can help you to improve the code by adding
missing log/development.log for example or by fixing the warnings if
you can understand them (I still can’t =] ).
In my spare time I’ll continue studying ruby, hoping to be more
helpful in the next future.
See you soon!
Dario-Shanghai
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/http://it.messenger.yahoo.com
+1
OK, I think I know why. The 0.9 release was not really well packaged.
Do you have subversion on your machine? If you have you can get the current code and try it. I have tried myself on a fresh machine, and it works! ;)
Here is the line which will create a “parlement” directory: svn checkout svn://rubyforge.org/var/svn/parlement
What is your OS?
+1