[OpenSIPS-Users] problem when install call control module
Saul Ibarra Corretge
saul at ag-projects.com
Fri Jul 22 11:53:03 CEST 2011
Hi,
On Jul 22, 2011, at 10:24 AM, nguyen khue wrote:
> Hi all,
>
> I am trying install call-control module from ag-project. I use command "python setup.py install" but I had error:
>
> running install
> running build
> running build_py
> running build_scripts
> running install_lib
> byte-compiling /usr/lib/python2.4/site-packages/callcontrol/controller.py to controller.pyc
> File "/usr/lib/python2.4/site-packages/callcontrol/controller.py", line 418
> db = self.db if self.db is not None else RadiusDatabase()
> ^
> SyntaxError: invalid syntax
> running install_scripts
> changing mode of /usr/bin/call-control to 755
>
You'll need to use Python 2.5 or higher. The one line if-else was added in Python 2.5, so it won't work with Python versions prior to 2.5.
Regards,
--
Saúl Ibarra Corretgé
AG Projects
More information about the Users
mailing list