Ask Your Question
1

Why do I get a "No module named askbot.deployment" error on Windows?

asked 2010-06-29 17:15:31 -0500

MrGrieves gravatar image

I installed according to the second set of instructions (not using easy install). I also installed mysql and the python mysql adapter. I get the following error:

C:\Python26\Scripts>startforum.exe
Traceback (most recent call last):
  File "C:\Python26\Scripts\startforum-script.py
    load_entry_point('askbot==0.6.5', 'console_s
  File "c:\python26\setuptools-0.6c11-py2.6.egg\
  File "c:\python26\setuptools-0.6c11-py2.6.egg\
  File "c:\python26\setuptools-0.6c11-py2.6.egg\
ImportError: No module named askbot.deployment
edit retag flag offensive close merge delete

Comments

I've just uploaded version 0.6.6. In the future there will be a clear sign on the site of which version is current, but for now pls check http://pypi.python.org/pypi/askbot/
Evgeny gravatar imageEvgeny ( 2010-06-29 17:48:34 -0500 )edit
have you used --prefix=/some/path option? if so then it may be outside of your PYTHONPATH
Evgeny gravatar imageEvgeny ( 2010-06-29 18:22:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2010-06-29 17:25:08 -0500

Evgeny gravatar image

updated 2010-06-29 18:38:44 -0500

If you have script startforum but still see that error that means askbot module does not appear to be in your PYTHONPATH. You can start python in command line and type:

import sys
print '\n'.join(sys.path)

That will print out whatever is in your in the Python system path.

otherwise, all that script does - copy files from directory askbot/setup_templates into your django project directory. You need all of the contents of that directory and establish the following structure:

project_dir/  #<--- some very distinctive name
        __init__.py  #empty but required for python to recognize site as python module
        urls.py      #url map
        manage.py    #management script - this one is actually 1:1 django default
        settings.py  #where most important settings live
        log/         #directory for site logger
        askbot/upfiles/   #directory to hold uploaded files.

edit: directories log/ and askbot/upfiles must be writable by the webserver.

You probably already have the "project_dir" and askbot since you've downloaded from the repository, or took tar file?

So you can do it manually too, bypassing the startforum script.

Also - I will push the fresh update in a bit - I recommend to take it - there is a bugfix for runtime settings interface.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2010-06-29 17:15:31 -0500

Seen: 1,542 times

Last updated: Jun 29 '10