Closed brunobraga closed 12 years ago
smpp.twisted depends on the smpp.pdu package, which is where namedtuple is defined. Try easy_install smpp.pdu or check that project out from github as well.
Oops... I didn't see that.
Thanks a lot. It is working now!
Would it not make sense to include smpp.pdu in the install_requires in setup.py?
Yes, good point. Will add it.
Hi,
I just installed the latest Twisted (11.0.0) and the smpp.twisted module (0.2), and tried to run the example described in Github. I got the following error:
Traceback (most recent call last): File "example2.py", line 3, in
from smpp.twisted.client import SMPPClientTransceiver, SMPPClientService
File "/Library/Python/2.7/site-packages/smpp.twisted-0.2-py2.7.egg/smpp/twisted/client.py", line 21, in
from smpp.twisted.protocol import SMPPClientProtocol, DataHandlerResponse
File "/Library/Python/2.7/site-packages/smpp.twisted-0.2-py2.7.egg/smpp/twisted/protocol.py", line 18, in
from smpp.pdu.namedtuple import namedtuple
ImportError: No module named pdu.namedtuple
I don't know if the original package is missing some modules... I didn't have time to check the source, so I decided to just write and ask about it. Any help is appreciated.
Machine: MacBook Pro, Lion OSX, Pyhon 2.7
Regards,