Problem running setup_database

Hi all,

This looks like a great project. I’m looking forward to working with it,
if
I can get the first bit to go right…

Here’s my problem - am trying to set up the database. Have set up my
database and configured it in database.yml (tried MySQL and sqlite3).
However, when I come to run script/setup_database production, this
happens:

Loading production environment…FAILED
script/setup_database:79:in load_environment': uninitialized constant DatabaseSetupApplication::RADIANT_ROOT (NameError) from script/setup_database:258:inannounce’
from script/setup_database:77:in load_environment' from script/setup_database:17:inrun’
from script/setup_database:9:in `run’
from script/setup_database:297

I’m using shared hosting, although when I tried this on my local machine
the
same error occurred.

Would anyone have a clue as to what’s going on here? Searched the
archives
but could not find anything relevant.

Many thanks

Tom

Tom Clark wrote:

    from script/setup_database:258:in `announce'
    from script/setup_database:77:in `load_environment'
    from script/setup_database:17:in `run'
    from script/setup_database:9:in `run'
    from script/setup_database:297

I’m using shared hosting, although when I tried this on my local machine the
same error occurred.

That’s really strange. What version of Radiant did this occur with?

Sorry for the late reply.


John L.
http://wiseheartdesign.com

Hi John,

This is with the download link, Radiant 0.5.2 (the latest stable
release?).
I’m on OS X 10.4.7.

Tom

Tom Clark wrote:

This is with the download link, Radiant 0.5.2 (the latest stable release?).
I’m on OS X 10.4.7.

Mmmm. That is weird. You installed via gem?

Loading production environment…FAILED
script/setup_database:79:in load_environment': uninitialized constant DatabaseSetupApplication::RADIANT_ROOT (NameError) from script/setup_database:258:in announce’
from script/setup_database:77:in load_environment' from script/setup_database:17:in run’
from script/setup_database:9:in `run’
from script/setup_database:297

The above error is what is so strange. RADIANT_ROOT should be defined at
that point. Can you do a little debugging? I can’t reproduce the problem
on my end.


John L.
http://wiseheartdesign.com

Tom Clark wrote:

This is with the download link, Radiant 0.5.2 (the latest stable release?).
I’m on OS X 10.4.7.

Mmmm. That is weird. You installed via gem?

No, I actually installed from Tar - because we’re on shared hosting
we’re
not allowed to use gem.

that point. Can you do a little debugging? I can’t reproduce the problem
on my end.

Sure, what would you need to know/how should I go about it briefly? I
must
admit to not being a unix expert.

Many thanks,

Tom