python - Can't run sylkserver from AG project
2014-04
I just installed Sylkserver like this instruction. http://sylkserver.com/download.phtml
I use apt-get to install everything and also use default config file. When I use sudo /etc/init.d/sylkserver start, it didn't work properly so I try the debug mode:
./sylk-server --no-fork
and I see this error
Starting SylkServer 2.0.0-dev, config=/etc/sylkserver/config.ini
fatal error: failed to create SylkServer: expected string or buffer
Traceback (most recent call last):
File "./sylk-server", line 68, in main
from sylk.server import SylkServer
File "/usr/local/lib/python2.7/dist-packages/sylk/server.py", line 13, in <module>
from sipsimple.account import Account, BonjourAccount, AccountManager
File "/usr/lib/python2.7/dist-packages/sipsimple/account/__init__.py", line 22, in <module>
from gnutls.interfaces.twisted import X509Credentials
File "/usr/lib/python2.7/dist-packages/gnutls/interfaces/twisted/__init__.py", line 10, in <module>
from twisted.python import failure
File "/usr/local/lib/python2.7/dist-packages/application/log/extensions/twisted/twisted.py", line 14, in <module>
import twisted
TypeError: expected string or buffer
Anyone have clues what I should do to solve this? I try to install this open source and modify its features to make it a Push to talk server, so if anyone know other open source which has push-to-talk feature please tell me also. P/S: I'm sorry for my improperly English, I'm not native speaker.
This borders on stackoverflow/superuser, but I guess it's a simple installation problem.
I've installed python-twisted on my ubuntu 10.04 server, but it can't be found.
This is what I get when I try to import something:
>>> from twisted.internet import reactor Traceback (most recent call last): File "", line 1, in File "twisted.py", line 1, in from twisted.internet import reactor ImportError: No module named internet
I've installed the package through apt-get.
That way the module is installed in this folder: /usr/lib/python2.6/dist-packages/twisted
with an __init__.py
file.
When I try to use python setup.py install
(on the download from the site) it installs it to /usr/local/lib/python2.6/dist-packages/twisted
, but it also does not find it there.
Does anyone know where it went wrong? Google isn't spilling anything.
You seem to have a twisted.py file that shadows the correct imports. Rename it. You can use absolute imports (from __future__ import absolute_imports
), if you want your own module to be available as myapp.twisted
.