Ask Your Question
0

Installation problem with Python 3

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

Near the soul gravatar image Near the soul flag of Italy
25 3 1 8

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

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

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.

delete close flag offensive retag edit

Comments

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

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

2 Answers

Sort by ยป oldest newest most voted
1

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

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

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.

link publish delete flag offensive edit

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 ( 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 ( 2012-03-10 13:02:07 -0500 )edit

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

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 ( 2012-03-10 13:23:48 -0500 )edit

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

Near the soul ( 2012-03-10 13:27:39 -0500 )edit
1

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

paulus_almighty gravatar image paulus_almighty flag of United Kingdom
239 3 4 14

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.

link publish delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 79 times

Last updated: Mar 16 '12