Ask Your Question
0

Installation problem with Python 3

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

Near the soul gravatar image

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

Evgeny gravatar image

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.

edit retag flag offensive close merge delete

Comments

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

Evgeny gravatar imageEvgeny ( 2012-03-10 10:46:05 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
1

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

Evgeny gravatar image

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

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

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 gravatar imageNear the soul ( 2012-03-10 12:53:55 -0600 )edit

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

Evgeny gravatar imageEvgeny ( 2012-03-10 13:02:07 -0600 )edit

I have Python 3.2.2 and i don't edited setup.py

Near the soul gravatar imageNear the soul ( 2012-03-10 13:22:50 -0600 )edit

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

Evgeny gravatar imageEvgeny ( 2012-03-10 13:23:48 -0600 )edit

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

Near the soul gravatar imageNear the soul ( 2012-03-10 13:27:39 -0600 )edit
1

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

powlo gravatar image

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.

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: 2012-03-10 05:35:15 -0600

Seen: 611 times

Last updated: Mar 16 '12