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

enum module conflicting with enum34 #93

Closed
farirat opened this Issue Feb 6, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@farirat
Contributor

farirat commented Feb 6, 2015

enum as a jasmin install requirement and enum34 as a cryptography install requirement provide the same module name _enum_, this will lead to errors:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twisted/trial/runner.py", line 498, in loadPackage
module = modinfo.load()
File "/usr/local/lib/python2.7/dist-packages/twisted/python/modules.py", line 383, in load
return self.pathEntry.pythonPath.moduleLoader(self.name)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/reflect.py", line 303, in namedAny
topLevelPackage = _importAndCheckStack(trialname)
File "/usr/local/lib/python2.7/dist-packages/twisted/python/reflect.py", line 242, in _importAndCheckStack
return import(importName)
File "/home/travis/build/jookies/jasmin/jasmin/managers/test/test_managers.py", line 13, in
from jasmin.managers.clients import SMPPClientManagerPB
File "/home/travis/build/jookies/jasmin/jasmin/managers/clients.py", line 8, in
from jasmin.protocols.smpp.services import SMPPClientService
File "/home/travis/build/jookies/jasmin/jasmin/protocols/smpp/services.py", line 2, in
from jasmin.protocols.smpp.factory import SMPPClientFactory
File "/home/travis/build/jookies/jasmin/jasmin/protocols/smpp/factory.py", line 7, in
from jasmin.protocols.smpp.protocol import SMPPClientProtocol, SMPPServerProtocol
File "/home/travis/build/jookies/jasmin/jasmin/protocols/smpp/protocol.py", line 6, in
from jasmin.vendor.smpp.twisted.protocol import SMPPClientProtocol as twistedSMPPClientProtocol
File "/usr/local/lib/python2.7/dist-packages/jasmin/vendor/smpp/twisted/protocol.py", line 21, in
from jasmin.vendor.smpp.pdu.operations import *
File "/usr/local/lib/python2.7/dist-packages/jasmin/vendor/smpp/pdu/operations.py", line 16, in
from jasmin.vendor.smpp.pdu.pdu_types import CommandId, PDU, PDURequest, PDUResponse, PDUDataRequest
File "/usr/local/lib/python2.7/dist-packages/jasmin/vendor/smpp/pdu/pdu_types.py", line 23, in
CommandId = Enum(*constants.command_id_name_map.keys())
exceptions.TypeError: call() takes at most 5 arguments (28 given)

@farirat farirat added the bug label Feb 6, 2015

@farirat farirat self-assigned this Feb 6, 2015

@farirat farirat added this to the v0.6 milestone Feb 6, 2015

@farirat

This comment has been minimized.

Show comment
Hide comment
@farirat

farirat Feb 6, 2015

Contributor

A proposed solution is to venodrize enum module and remove it as an external requirement.

Contributor

farirat commented Feb 6, 2015

A proposed solution is to venodrize enum module and remove it as an external requirement.

@farirat farirat closed this in 5771b4b Feb 24, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment