-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to import from smpp.twisted.client #11
Comments
Are you using virtual environment ? |
Yes, actually - I tried to set it up on an Amazon EC2 instance. Is this a known issue with the Enum module and virtual environments, by any chance? |
I am having the same issue. Is there a fix for this ? |
I have the same issue using python 2.7.12 |
I tried to remove enum34 and leave enum alone. Getting the following error Traceback (most recent call last):
File "tw-smpp.py", line 2, in <module>
from twisted.internet import reactor, defer
File "/somedir/smpp2/lib/python2.7/site-packages/twisted/internet/reactor.py", line 38, in <module>
from twisted.internet import default
File "/somedir/smpp2/lib/python2.7/site-packages/twisted/internet/default.py", line 56, in <module>
install = _getInstallFunction(platform)
File "/somedir/smpp2/lib/python2.7/site-packages/twisted/internet/default.py", line 48, in _getInstallFunction
from twisted.internet.pollreactor import install
File "/somedir/smpp2/lib/python2.7/site-packages/twisted/internet/pollreactor.py", line 25, in <module>
from twisted.internet import posixbase
File "/somedir/smpp2/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 18, in <module>
from twisted.internet import error, udp, tcp
File "/somedir/smpp2/lib/python2.7/site-packages/twisted/internet/tcp.py", line 28, in <module>
from twisted.internet._newtls import (
File "/somedir/smpp2/lib/python2.7/site-packages/twisted/internet/_newtls.py", line 21, in <module>
from twisted.protocols.tls import TLSMemoryBIOFactory, TLSMemoryBIOProtocol
File "/somedir/smpp2/lib/python2.7/site-packages/twisted/protocols/tls.py", line 41, in <module>
from OpenSSL.SSL import Error, ZeroReturnError, WantReadError
File "/somedir/smpp2/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/somedir/smpp2/lib/python2.7/site-packages/OpenSSL/crypto.py", line 12, in <module>
from cryptography import x509
File "/somedir/smpp2/lib/python2.7/site-packages/cryptography/x509/__init__.py", line 8, in <module>
from cryptography.x509.base import (
File "/somedir/smpp2/lib/python2.7/site-packages/cryptography/x509/base.py", line 16, in <module>
from cryptography.x509.extensions import Extension, ExtensionType
File "/somedir/smpp2/lib/python2.7/site-packages/cryptography/x509/extensions.py", line 24, in <module>
from cryptography.x509.general_name import GeneralName, IPAddress, OtherName
File "/somedir/smpp2/lib/python2.7/site-packages/cryptography/x509/general_name.py", line 18, in <module>
from cryptography.x509.name import Name
File "/somedir/smpp2/lib/python2.7/site-packages/cryptography/x509/name.py", line 28, in <module>
_ASN1_TYPE_TO_ENUM = dict((i.value, i) for i in _ASN1Type)
TypeError: 'type' object is not iterable Python version is 2.7.14, pip freeze is
|
I'm getting the same error. Removed enum34 with no success. |
Hello,
For some reason, I can't get past the third line (import from smpp.twisted.client). Here is the stacktrace:
I think the issue may come from the enum module? I have pyOpenSSL (v0.13), enum (v0.4.6), Twisted (v16.6.0), smpp.pdu (v0.3), and smpp.twisted (v0.4) installed.
Not sure why it would fail, though?
The text was updated successfully, but these errors were encountered: