Ticket #99 (closed Defect: Invalid)
Cannot load 'opensips' backend module: cannot import name wraps
| Reported by: | ibc | Owned by: | support@ag-projects.com |
|---|---|---|---|
| Priority: | Minor | Milestone: | OpenXCAP 1.2.0 |
| Component: | XCAP server | Version: | 1.1.0 |
| Severity: | Critical | Keywords: | |
| Cc: |
Description
If I set "backend = OpenSIPS" then I get this error in syslog:
openxcap[12849]: [-] Starting OpenXCAP 1.1.0 openxcap[12849]: [-] fatal error: Cannot load 'opensips' backend module: cannot import name wraps openxcap[12849]: [configuration] warning: ignoring invalid config value: Server.backend=OpenSIPS (1).
It doesn't occur if I use "backend = Database".
I use Python 2.4 in Debian Lenny.
Change History
comment:2 Changed 3 years ago by luci
- Status changed from new to closed
- Resolution set to Invalid
OpenXCAP needs at least python2.5, which is the default on Debian lenny. Why are you using python2.4? The error is due to the application importing a module (functools) which was introduced in 2.5.
comment:3 Changed 3 years ago by ibc
Nice to know that OpenXCAP requires Python 2.5 (I read in other bug report that it should run under Python 2.4).
OpenXCAP package requires "python-application" >= 1.1.0 and Lenny version is 1.0.9. I got (not remember where from) "python-application" 1.2.0 and trying to use Python2.5 it fails:
[...] error: cls.__settings__[attr].__set__(None, value) error: File "/usr/lib/pymodules/python2.5/application/configuration/__init__.py", line 29, in __set__ error: value = self.type(value) error: File "/usr/lib/pymodules/python2.5/xcap/appusage/__init__.py", line 37, in __new__ error: value = value.lower() error: AttributeError: 'module' object has no attribute 'lower'
However I've installed now "python-application" 1.1.1 from Debian Testing and now I can run OpenXCAP with Python2.5 and OpenSIPS backend! :)

Any help on it please? I cannot use "OpenSIPS" backend so I cannot test the notification to OpenSIPS PA :(