Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi Akiro, no you are not missing anything.

If the askbot app is installed in the site-packages or dist-packages of your sitewide python system, then you don't have (yet) a good option to tweak skins.

To edit skins the app is best installed into the project directory. Then you can either follow the directions that you have pointed out or try another method that I will describe below in a minute.

Hi Akiro, no you are not missing anything.

If the askbot app is installed in the site-packages or dist-packages of your sitewide python system, then you don't have (yet) a good option to tweak skins.

To edit skins the app is best installed into the project directory. Then you can either follow the directions that you have pointed out or try another method that I will describe below in a minute.

1) you've mentioned that you are on a shared host.

Since you do not have access to /usr/lib tree where python packages live usually you will need to use --prefix option to easy_install

Let's say you want to install under /home/akira/python-stuff then you'll run:

easy_install --prefix=/home/akira/python-stuff askbot

If you run this and directory /home/akira/python-stuff/lib/python2.6/site-packages or /home/akira/python-stuff/lib/python2.6/dist-packages (likely on ubuntu, also 2.6 is version of python - it should be the same as the actual version of the python interpreter you use 2.6 is recommended) - you'll get a complaint and easy_install will bail.

Actually, run that command once anyway and see which directory easy_install actually wants, then create it:

mkdir -p /the/missing/long/path

all of that will be created at once.

next: this directory myst be on PYTHONPATH

see what your PYTHONPATH is (most likely - empty) and correct

on bash shell (example):

PYTHONPATH=$PYTHONPATH:/home/akira/python-stuff/lib/python2.6/site-packages
export PYTHONPATH

or if empty, you can just type:

PYTHONPATH=$PYTHONPATH:/home/akira/python-stuff/lib/python2.6/site-packages
export PYTHONPATH

2)

Hi Akiro, no you are not missing anything.

If the askbot app is installed in the site-packages or dist-packages of your sitewide python system, then you don't have (yet) a good option to tweak skins.

To edit skins the app is best installed into the project directory. Then you can either follow the directions that you have pointed out or try another method that I will describe below in a minute.

Sorry about the long explanation (and most of this can be automated later), but I want to be as detailed as possible.

1) you've mentioned that you are on a shared host.

Since you do not have access to /usr/lib tree where python packages live usually you will need to use --prefix option to easy_install

Let's say you want to install under /home/akira/python-stuff then you'll run:

easy_install --prefix=/home/akira/python-stuff askbot

If you run this and directory /home/akira/python-stuff/lib/python2.6/site-packages or /home/akira/python-stuff/lib/python2.6/dist-packages (likely on ubuntu, also 2.6 is version of python - it should be the same as the actual version of the python interpreter you use 2.6 is recommended) - you'll get a complaint and easy_install will bail.

Actually, run that command once anyway and see which directory easy_install actually wants, then create it:

mkdir -p /the/missing/long/path

all of that will be created at once.

next: this directory myst be on PYTHONPATH

see what your PYTHONPATH is (most likely - empty) and correct

on bash shell (example):

PYTHONPATH=$PYTHONPATH:/home/akira/python-stuff/lib/python2.6/site-packages
export PYTHONPATH

or if empty, you can just type:

PYTHONPATH=$PYTHONPATH:/home/akira/python-stuff/lib/python2.6/site-packages
export PYTHONPATH

2)

Hi Akiro, no you are not missing anything.

If the askbot app is installed in the site-packages or dist-packages of your sitewide python system, then you don't have (yet) a good option to tweak skins.

To edit skins the app is best installed into the project directory. Then you can either follow the directions that you have pointed out or try another method that I will describe below in a minute.

Sorry about the long explanation (and most of this can be automated later), but I want to be as detailed as possible.

1) you've mentioned that you are on a shared host.

Since you do not have access to /usr/lib tree where python packages live usually you will need to use --prefix option to easy_install

Let's say you want to install under /home/akira/python-stuff then you'll run:

easy_install --prefix=/home/akira/python-stuff askbot

If you run this and directory /home/akira/python-stuff/lib/python2.6/site-packages or /home/akira/python-stuff/lib/python2.6/dist-packages (likely on ubuntu, also 2.6 is version of python - it should be the same as the actual version of the python interpreter you use 2.6 is recommended) - you'll get a complaint and easy_install will bail.

Actually, run that command once anyway and see which directory easy_install actually wants, then create it:

mkdir -p /the/missing/long/path

all of that will be created at once.

next: this directory myst be on PYTHONPATH

see what your PYTHONPATH is (most likely - empty) and correct

on bash shell (example):

PYTHONPATH=$PYTHONPATH:/home/akira/python-stuff/lib/python2.6/site-packages
export PYTHONPATH

or if empty, you can just type:

PYTHONPATH=$PYTHONPATH:/home/akira/python-stuff/lib/python2.6/site-packages
export PYTHONPATH

2)

Then run the easy_install command as shown above.

2) Now you'll have two options to deploy:

(a) - use startforum - but then you are out of luck editing the skins easily, b/c they won't be in your local directory. To run startforum it must either be in your system path or you need to type full path to the script:

~/python-stuff/bin/startforum

(b) - deploy askbot from github

Hi Akiro, no you are not missing anything.

If the askbot app is installed in the site-packages or dist-packages of your sitewide python system, then you don't have (yet) a good option to tweak skins.

To edit skins the app is best installed into the project directory. Then you can either follow the directions that you have pointed out or try another method that I will describe below in a minute.

Sorry about the long explanation (and most of this can be automated later), but I want to be as detailed as possible.

1) you've mentioned that you are on a shared host.

Since you do not have access to /usr/lib tree where python packages live usually you will need to use --prefix option to easy_install

Let's say you want to install under /home/akira/python-stuff then you'll run:

easy_install --prefix=/home/akira/python-stuff askbot

If you run this and directory /home/akira/python-stuff/lib/python2.6/site-packages or /home/akira/python-stuff/lib/python2.6/dist-packages (likely on ubuntu, also 2.6 is version of python - it should be the same as the actual version of the python interpreter you use 2.6 is recommended) - you'll get a complaint and easy_install will bail.

Actually, run that command once anyway and see which directory easy_install actually wants, then create it:

mkdir -p /the/missing/long/path

all of that will be created at once.

next: this directory myst be on PYTHONPATH

see what your PYTHONPATH is (most likely - empty) and correct

on bash shell (example):

PYTHONPATH=$PYTHONPATH:/home/akira/python-stuff/lib/python2.6/site-packages
export PYTHONPATH

or if empty, you can just type:

PYTHONPATH=$PYTHONPATH:/home/akira/python-stuff/lib/python2.6/site-packages
export PYTHONPATH

Then run the easy_install command as shown above.

2) Now you'll have two options to deploy:

(a) - use startforum - but then you are out of luck editing the skins easily, b/c they won't be in your local directory. To run startforum it must either be in your system path or you need to type full path to the script:

~/python-stuff/bin/startforum

(b) - deploy askbot from github

git clone git://github.com/ASKBOT/askbot-devel.git myproject
#that will create directory "myproject" with askbot installed locally (without dependencies)

If you first run easy_install and then git clone - you'll have dependencies stashed in some other directory and askbot app in both places - you may want to remove askbot from dependency directory.

Hi Akiro, no you are not missing anything.

If the askbot app is installed in the site-packages or dist-packages of your sitewide python system, then you don't have (yet) a good option to tweak skins.

To edit skins the app is best installed into the project directory. Then you can either follow the directions that you have pointed out or try another method that I will describe below in a minute.

I'll also try to come up with a better method :) and update this post once I do.

Sorry about the long explanation (and most of this can be automated later), but I want to be as detailed as possible.

1) you've mentioned that you are on a shared host.

Since you do not have access to /usr/lib tree where python packages live usually you will need to use --prefix option to easy_install

Let's say you want to install under /home/akira/python-stuff then you'll run:

easy_install --prefix=/home/akira/python-stuff askbot

If you run this and directory /home/akira/python-stuff/lib/python2.6/site-packages or /home/akira/python-stuff/lib/python2.6/dist-packages (likely on ubuntu, also 2.6 is version of python - it should be the same as the actual version of the python interpreter you use 2.6 is recommended) - you'll get a complaint and easy_install will bail.

Actually, run that command once anyway and see which directory easy_install actually wants, then create it:

mkdir -p /the/missing/long/path

all of that will be created at once.

next: this directory myst be on PYTHONPATH

see what your PYTHONPATH is (most likely - empty) and correct

on bash shell (example):

PYTHONPATH=$PYTHONPATH:/home/akira/python-stuff/lib/python2.6/site-packages
export PYTHONPATH

or if empty, you can just type:

PYTHONPATH=$PYTHONPATH:/home/akira/python-stuff/lib/python2.6/site-packages
export PYTHONPATH

Then run the easy_install command as shown above.

2) Now you'll have two options to deploy:

(a) - use startforum - but then you are out of luck editing the skins easily, b/c they won't be in your local directory. To run startforum it must either be in your system path or you need to type full path to the script:

~/python-stuff/bin/startforum

(b) - deploy askbot from github

git clone git://github.com/ASKBOT/askbot-devel.git myproject
#that will create directory "myproject" with askbot installed locally (without dependencies)

If you first run easy_install and then git clone - you'll have dependencies stashed in some other directory and askbot app in both places - you may want to remove askbot from dependency directory.

do:

ls /home/akira/python-stuff/lib/python2.6/site-packages

It may be something like:

~/python-stuff/lib/python2.6/site-packages

askbot-0.6.8-py2.6.egg

See where askbot is and remove that whole directory. Also delete the line with askbot record from any .pth files within /home/akira/python-stuff/lib/python2.6/site-packages. This way you will have uninstalled sitewide instance.

Hi Akiro, no you are not missing anything.

If the askbot app is installed in the site-packages or dist-packages of your sitewide python system, then you don't have (yet) a good option to tweak skins.

To edit skins the app is best installed into the project directory. Then you can either follow the directions that you have pointed out or try another method that I will describe below in a minute.

I'll also try to come up with a better method :) and update this post once I do.

Sorry about the long explanation (and most of this can be automated later), but I want to be as detailed as possible.

1) you've mentioned that you are on a shared host.

Since you do not have access to /usr/lib tree where python packages live usually you will need to use --prefix option to easy_install

Let's say you want to install under /home/akira/python-stuff/home/akiro/python-stuff then you'll run:

easy_install --prefix=/home/akira/python-stuff --prefix=/home/akiro/python-stuff askbot

If you run this and directory /home/akira/python-stuff/lib/python2.6/site-packages/home/akiro/python-stuff/lib/python2.6/site-packages or /home/akira/python-stuff/lib/python2.6/dist-packages/home/akiro/python-stuff/lib/python2.6/dist-packages (likely on ubuntu, also 2.6 is version of python - it should be the same as the actual version of the python interpreter you use 2.6 is recommended) - you'll get a complaint and easy_install will bail.

Actually, run that command once anyway and see which directory easy_install actually wants, then create it:

mkdir -p /the/missing/long/path

all of that will be created at once.

next: this directory myst be on PYTHONPATH

see what your PYTHONPATH is (most likely - empty) and correct

on bash shell (example):

PYTHONPATH=$PYTHONPATH:/home/akira/python-stuff/lib/python2.6/site-packages
PYTHONPATH=$PYTHONPATH:/home/akiro/python-stuff/lib/python2.6/site-packages
export PYTHONPATH

or if empty, you can just type:

PYTHONPATH=$PYTHONPATH:/home/akira/python-stuff/lib/python2.6/site-packages
PYTHONPATH=$PYTHONPATH:/home/akiro/python-stuff/lib/python2.6/site-packages
export PYTHONPATH

Then run the easy_install command as shown above.

2) Now you'll have two options to deploy:

(a) - use startforum - but then you are out of luck editing the skins easily, b/c they won't be in your local directory. To run startforum it must either be in your system path or you need to type full path to the script:

~/python-stuff/bin/startforum

(b) - deploy askbot from github

git clone git://github.com/ASKBOT/askbot-devel.git myproject
#that will create directory "myproject" with askbot installed locally (without dependencies)

If you first run easy_install and then git clone - you'll have dependencies stashed in some other directory and askbot app in both places - you may want to remove askbot from dependency directory.

do:

ls /home/akira/python-stuff/lib/python2.6/site-packages
/home/akiro/python-stuff/lib/python2.6/site-packages

It may be something like:

~/python-stuff/lib/python2.6/site-packages

askbot-0.6.8-py2.6.egg

See where askbot is and remove that whole directory. Also delete the line with askbot record from any .pth files within /home/akira/python-stuff/lib/python2.6/site-packages/home/akiro/python-stuff/lib/python2.6/site-packages. This way you will have uninstalled sitewide instance.

(c) actual deployment of the "git clone".

cd myproject
cp -r askbot/setup_templates/* .

This will copy all the necessary files (except that upfiles directory does not belong here - you can remove it).

After that you can follow the rest of the install doc (from python manage.py syncdb and on)