Ask Your Question

Installation problem with Python 3

asked 2012-03-10 05:35:15 -0500

Near the soul's avatar

updated 2012-03-10 13:24:39 -0500

Evgeny's avatar

Following the documentation i run

git clone git:// test
cd test

and after i run

python develop

i get this error

  File "", line 131
SyntaxError: invalid syntax

The problem seems very easy. How can i fix it? Thanks in advance.

edit retag flag offensive close merge delete


There are definitely no syntax errors in the I think you have a module name clash.

Evgeny's avatar Evgeny  ( 2012-03-10 10:46:05 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2012-03-10 10:22:59 -0500

Evgeny's avatar

updated 2012-03-10 13:26:42 -0500

The problem is that Django - the framework that askbot is written for - does not work on Python3 yet. Python 3 is a different programming language although very close to Python 2.x.

In addition, rename the directory to something that is not test or askbot or any other python module.

Give a name to your django project that is distinct enough. With your setup python will be confusing your site with the module called test.

edit flag offensive delete link more


I try more than one time to rename the directory of installation (in "myaskbot", in "workplease", etc, etc.) but i get always the same error. What can i do? My system is archlinux.

Near the soul's avatar Near the soul  ( 2012-03-10 12:53:55 -0500 )edit

Weird, tried this - works for me. Which version of Python are you using? Maybe you have edited the by accident?

Evgeny's avatar Evgeny  ( 2012-03-10 13:02:07 -0500 )edit

I have Python 3.2.2 and i don't edited

Near the soul's avatar Near the soul  ( 2012-03-10 13:22:50 -0500 )edit

There we go:) - askbot needs python 2.6 or 2.7, maybe 2.5 will do, but not tested recently.

Evgeny's avatar Evgeny  ( 2012-03-10 13:23:48 -0500 )edit

Great :D! You solved my problem! Sorry for the trivial question!

Near the soul's avatar Near the soul  ( 2012-03-10 13:27:39 -0500 )edit

answered 2012-03-16 17:26:03 -0500

powlo's avatar


If you need Python 3 for other applications then consider using a virtual environment.

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


Asked: 2012-03-10 05:35:15 -0500

Seen: 839 times

Last updated: Mar 16 '12