First time here? Check out the FAQ!
0

How to install askbot?
 

Hi! I'm using Python 2.5.2 and when I try pip install askbot it says:

avv:/home/master# pip install askbot
Downloading/unpacking askbot
Running setup.py egg_info for package askbot
askbot/deployment/path_utils.py:113: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "/home/master/build/askbot/setup.py", line 29, in <module>
    import askbot
  File "askbot/__init__.py", line 16, in <module>
    from askbot import patches
  File "askbot/patches/__init__.py", line 7, in <module>
    from askbot.deployment import package_utils
  File "askbot/deployment/__init__.py", line 6, in <module>
    from askbot.deployment import messages
  File "askbot/deployment/messages.py", line 4, in <module>
    from askbot.deployment import path_utils
  File "askbot/deployment/path_utils.py", line 113
    with file(file_path, 'a'):
            ^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
askbot/deployment/path_utils.py:113: Warning: 'with' will become a reserved keyword in Python 2.6

Can you explain how to install it?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Micks's avatar
1
Micks
asked 13 years ago

Comments

see more comments

1 Answer

0

Fixed in 0.7.23, keyword with was introduced in python 2.6, we overlooked it.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 13 years ago
link

Comments

thanks, askbot was successfully installed!

Micks's avatar Micks (13 years ago)
see more comments