First time here? Check out the FAQ!
0

Installation problem with Python 3

Following the documentation i run

git clone git://github.com/ASKBOT/askbot-devel.git test
cd test

and after i run

python setup.py develop

i get this error

  File "setup.py", line 131
    **************************************************************"""
                                                                    ^
SyntaxError: invalid syntax

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

Near the soul's avatar
25
Near the soul
asked 2012-03-10 05:35:15 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2012-03-10 13:24:39 -0500
edit flag offensive 0 remove flag close merge delete

Comments

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

Evgeny's avatar Evgeny (2012-03-10 10:46:05 -0500) edit
add a comment see more comments

2 Answers

1

FYI: https://docs.djangoproject.com/en/dev/faq/install/#can-i-use-django-with-python-3

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

powlo's avatar
260
powlo
answered 2012-03-16 17:26:03 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

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.

Evgeny's avatar
13.2k
Evgeny
answered 2012-03-10 10:22:59 -0500, updated 2012-03-10 13:26:42 -0500
edit flag offensive 0 remove flag delete link

Comments

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 setup.py 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 setup.py

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
add a comment see more comments