[SIP Beyond VoIP] starting sylkserver gives 'module' object has no attribute 'get_logger' error
Pranathi Venkatayogi
pvenkatayogi at cyracom.com
Wed Sep 6 21:25:42 CEST 2017
I resolved this issue by changing log to logging and using getLogger instead.
I get the following execption when launching sylkserver.
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 764, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib64/python2.7/site-packages/sipsimple/application.py", line 141, in _run_reactor
reactor.run(installSignalHandlers=False)
File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 1195, in run
self.mainLoop()
File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 1204, in mainLoop
self.runUntilCurrent()
--- <exception caught here> ---
File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 825, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/lib/python2.7/site-packages/eventlib/coros.py", line 253, in _do_acquire
waiter.switch()
File "/usr/lib/python2.7/site-packages/eventlib/api.py", line 237, in _spawn_startup
return cb(*args, **kw)
File "/home/download/sylkserver/sylk/server.py", line 169, in _initialize_subsystems
self.request_handler = IncomingRequestHandler()
File "/usr/lib/python2.7/site-packages/application/python/types.py", line 39, in __call__
return cls.__instantiate__(*args, **kw)
File "<string>", line 1, in __init__
File "/usr/lib/python2.7/site-packages/application/python/types.py", line 31, in instance_creator
cls.__instances__[key] = super(Singleton, cls).__call__(*args, **kw)
File "/home/download/sylkserver/sylk/applications/__init__.py", line 160, in __init__
self.application_registry.load_applications()
File "/usr/lib/python2.7/site-packages/application/python/decorator.py", line 53, in __call__
instance = method.im_self or args[0]
exceptions.IndexError: tuple index out of range
Unhandled Error
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 764, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib64/python2.7/site-packages/sipsimple/application.py", line 141, in _run_reactor
reactor.run(installSignalHandlers=False)
File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 1195, in run
self.mainLoop()
File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 1204, in mainLoop
self.runUntilCurrent()
--- <exception caught here> ---
File "/usr/lib64/python2.7/site-packages/twisted/internet/base.py", line 825, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/usr/lib/python2.7/site-packages/eventlib/coros.py", line 253, in _do_acquire
waiter.switch()
File "/usr/lib/python2.7/site-packages/eventlib/api.py", line 237, in _spawn_startup
return cb(*args, **kw)
File "/home/download/sylkserver/sylk/server.py", line 169, in _initialize_subsystems
self.request_handler = IncomingRequestHandler()
File "/usr/lib/python2.7/site-packages/application/python/types.py", line 39, in __call__
return cls.__instantiate__(*args, **kw)
File "<string>", line 1, in __init__
File "/usr/lib/python2.7/site-packages/application/python/types.py", line 31, in instance_creator
cls.__instances__[key] = super(Singleton, cls).__call__(*args, **kw)
File "/home/download/sylkserver/sylk/applications/__init__.py", line 160, in __init__
self.application_registry.load_applications()
File "/usr/lib/python2.7/site-packages/application/python/decorator.py", line 53, in __call__
instance = method.im_self or args[0]
exceptions.IndexError: tuple index out of range
-----Original Message-----
From: Pranathi Venkatayogi
Sent: Wednesday, September 06, 2017 12:57 PM
To: 'SIP Beyond VoIP' <sipbeyondvoip at lists.ag-projects.com>
Cc: 'Dan Pascu' <dan at ag-projects.com>; Adrian Georgescu <ag at ag-projects.com>
Subject: starting sylkserver gives 'module' object has no attribute 'get_logger' error
Hi,
I wanted to avail the logging refactoring change (https://github.com/AGProjects/sylkserver/commit/b2960c845319127df46a47fb4771b96a53b6d545) made to sylkserver.
Hence I followed the steps below to get the latest.
1. darcs pull -a
2. python setup.py install
3. ./sylk-server --no-fork
It spits the following error:
Traceback (most recent call last):
File "./sylk-server", line 67, in <module>
from sylk.server import SylkServer, ServerConfig
File "/home/download/sylkserver/sylk/server.py", line 32, in <module>
from sylk.log import TraceLogManager
File "/home/download/sylkserver/sylk/log.py", line 319, in <module>
root_logger = log.get_logger()
AttributeError: 'module' object has no attribute 'get_logger'
Can you please help how I can resolve this?
Thanks
Pranathi
More information about the SIPBeyondVoIP
mailing list