etianen / django-python3-ldap

Django LDAP user authentication backend for Python 3.
BSD 3-Clause "New" or "Revised" License
411 stars 119 forks source link

pyasn1.error.PyAsn1Error: Uninitialized ASN.1 value ("__bool__" attribute looked up) #97

Closed jason-kane closed 7 years ago

jason-kane commented 7 years ago

This was seriously messing with every ldap auth. The fix is to pip install ldap3==2.3 I guess there was a change in pyasn1 that breaks ldap3==2.2.3 which then breaks django-python3-ldap.

File "/usr/local/lib/python3.4/site-packages/django/contrib/auth/init.py", line 74, in authenticate user = backend.authenticate(*credentials) File "/usr/local/lib/python3.4/site-packages/django_python3_ldap/auth.py", line 23, in authenticate return ldap.authenticate(args, kwargs) File "/usr/local/lib/python3.4/site-packages/django_python3_ldap/ldap.py", line 200, in authenticate with connection(password=password, kwargs) as c: File "/usr/local/lib/python3.4/contextlib.py", line 59, in enter return next(self.gen) File "/usr/local/lib/python3.4/site-packages/django_python3_ldap/ldap.py", line 156, in connection raise_exceptions=True, File "/usr/local/lib/python3.4/site-packages/ldap3/core/connection.py", line 330, in init self.start_tls(read_server_info=False) File "/usr/local/lib/python3.4/site-packages/ldap3/core/connection.py", line 1205, in start_tls if self.server.tls.start_tls(self) and self.strategy.sync: # for async connections _start_tls is run by the strategy File "/usr/local/lib/python3.4/site-packages/ldap3/core/tls.py", line 242, in start_tls result = connection.extended('1.3.6.1.4.1.1466.20037') File "/usr/local/lib/python3.4/site-packages/ldap3/core/connection.py", line 1169, in extended response = self.post_send_single_response(self.send('extendedReq', request, controls)) File "/usr/local/lib/python3.4/site-packages/ldap3/strategy/base.py", line 298, in send self.connection.request = BaseStrategy.decode_request(message_type, request, controls) File "/usr/local/lib/python3.4/site-packages/ldap3/strategy/base.py", line 623, in decode_request result = extended_request_to_dict(component) File "/usr/local/lib/python3.4/site-packages/ldap3/operation/extended.py", line 58, in extended_request_to_dict return {'name': str(request['requestName']), 'value': bytes(request['requestValue']) if request['requestValue'] else None} File "/usr/local/lib/python3.4/site-packages/pyasn1/type/base.py", line 278, in bool return self._value and True or False File "/usr/local/lib/python3.4/site-packages/pyasn1/type/base.py", line 191, in plug raise error.PyAsn1Error('Uninitialized ASN.1 value ("%s" attribute looked up)' % name) pyasn1.error.PyAsn1Error: Uninitialized ASN.1 value ("bool" attribute looked up)

etianen commented 7 years ago

ldap3 and it's dependencies are continually making backwards incompatible changes. This is why the version is explicitly set in django-python3-ldap.

I've updated the dependencies, and locked the pyasn version in too. Hopefully that will stop this type of breakage occurring in future. Assuming all Travis tests pass, I'll put a new version on PyPi today or tomorrow.

On 3 August 2017 at 23:46, Jason Kane notifications@github.com wrote:

This was seriously messing with every ldap auth. The fix is to pip install ldap3==2.3 I guess there was a change in pyasn1 that breaks ldap3==2.2.3 which then breaks django-python3-ldap.

File "/usr/local/lib/python3.4/site-packages/django/contrib/auth/init.py", line 74, in authenticate user = backend.authenticate(*credentials) File "/usr/local/lib/python3.4/site-packages/django_python3_ldap/auth.py", line 23, in authenticate return ldap.authenticate(args, kwargs) File "/usr/local/lib/python3.4/site-packages/django_python3_ldap/ldap.py", line 200, in authenticate with connection(password=password, kwargs) as c: File "/usr/local/lib/python3.4/contextlib.py", line 59, in enter return next(self.gen) File "/usr/local/lib/python3.4/site-packages/django_python3_ldap/ldap.py", line 156, in connection raise_exceptions=True, File "/usr/local/lib/python3.4/site-packages/ldap3/core/connection.py", line 330, in init self.start_tls(read_server_info=False) File "/usr/local/lib/python3.4/site-packages/ldap3/core/connection.py", line 1205, in start_tls if self.server.tls.start_tls(self) and self.strategy.sync: # for async connections _start_tls is run by the strategy File "/usr/local/lib/python3.4/site-packages/ldap3/core/tls.py", line 242, in start_tls result = connection.extended('1.3.6.1.4.1.1466.20037') File "/usr/local/lib/python3.4/site-packages/ldap3/core/connection.py", line 1169, in extended response = self.post_send_single_response(self.send('extendedReq', request, controls)) File "/usr/local/lib/python3.4/site-packages/ldap3/strategy/base.py", line 298, in send self.connection.request = BaseStrategy.decode_request(message_type, request, controls) File "/usr/local/lib/python3.4/site-packages/ldap3/strategy/base.py", line 623, in decode_request result = extended_request_to_dict(component) File "/usr/local/lib/python3.4/site-packages/ldap3/operation/extended.py", line 58, in extended_request_to_dict return {'name': str(request['requestName']), 'value': bytes(request['requestValue']) if request['requestValue'] else None} File "/usr/local/lib/python3.4/site-packages/pyasn1/type/base.py", line 278, in bool return self._value and True or False File "/usr/local/lib/python3.4/site-packages/pyasn1/type/base.py", line 191, in plug raise error.PyAsn1Error('Uninitialized ASN.1 value ("%s" attribute looked up)' % name) pyasn1.error.PyAsn1Error: Uninitialized ASN.1 value ("bool" attribute looked up)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/etianen/django-python3-ldap/issues/97, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJFCKnIL2fBe3JKjjqCdNDQcwFO-KShks5sUk3WgaJpZM4OtFFU .

etianen commented 7 years ago

v0.11.0 is now up on PyPi

On 9 August 2017 at 17:34, Jason Kane notifications@github.com wrote:

Closed #97 https://github.com/etianen/django-python3-ldap/issues/97.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/etianen/django-python3-ldap/issues/97#event-1199438544, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJFCGg1UpefO0BBND_3TzB1dm5LCScuks5sWd-kgaJpZM4OtFFU .

SameerRathod commented 7 years ago

File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/django/core/checks/registry.py", line 81, in run_checks new_errors = check(app_configs=app_configs) File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/django/core/checks/urls.py", line 14, in check_url_config return check_resolver(resolver) File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/django/core/checks/urls.py", line 24, in check_resolver for pattern in resolver.url_patterns: File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/django/utils/functional.py", line 35, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/django/urls/resolvers.py", line 310, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/django/utils/functional.py", line 35, in __get__ res = instance.__dict__[self.name] = self.func(instance) File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/django/urls/resolvers.py", line 303, in urlconf_module return import_module(self.urlconf_name) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/home/sameer/Documents/Projects/cs_dev/csmain/urls.py", line 40, in <module> url(r'^signup/test$', Command.getuser(1),name="register"), File "/home/sameer/Documents/Projects/cs_dev/csservice/services/ldap3_test.py", line 25, in getuser with ldap.connection(**auth_kwargs) as connection: File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__ return self.gen.next() File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/django_python3_ldap/ldap.py", line 157, in connection raise_exceptions=True, File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/ldap3/core/connection.py", line 278, in __init__ self.bind(read_server_info=True) File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/ldap3/core/connection.py", line 427, in bind response = self.post_send_single_response(self.send('bindRequest', request, controls)) File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/ldap3/strategy/sync.py", line 122, in post_send_single_response responses, result = self.get_response(message_id) File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/ldap3/strategy/base.py", line 298, in get_response responses = self._get_response(message_id) File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/ldap3/strategy/sync.py", line 168, in _get_response dict_response = self.decode_response(ldap_resp) File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/ldap3/strategy/base.py", line 403, in decode_response result = bind_response_to_dict(component) File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/ldap3/operation/bind.py", line 119, in bind_response_to_dict 'saslCreds': bytes(response['serverSaslCreds']) if response['serverSaslCreds'] is not None else None} File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/pyasn1/type/univ.py", line 939, in __str__ return str(self._value) File "/home/sameer/Documents/Projects/customersuccess/lib/python2.7/site-packages/pyasn1/type/base.py", line 186, in plug raise error.PyAsn1Error('Uninitialized ASN.1 value ("%s" attribute looked up)' % name) pyasn1.error.PyAsn1Error: Uninitialized ASN.1 value ("__str__" attribute looked up)

I am getting this issue with the latest version Could you help me with this? If possible please let me know where to chage the code?

etianen commented 7 years ago

What is the output of:

pip freeze

On 23 August 2017 at 05:26, Sameer Rathod notifications@github.com wrote:

File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/django/core/checks/registry.py", line 81, in run_checks new_errors = check(app_configs=app_configs) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/django/core/checks/urls.py", line 14, in check_url_config return check_resolver(resolver) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/django/core/checks/urls.py", line 24, in check_resolver for pattern in resolver.url_patterns: File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/django/utils/functional.py", line 35, in get res = instance.dict[self.name] = self.func(instance) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/django/urls/resolvers.py", line 310, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/home/sameer/Documents/ Projects/customersuccess/lib/python2.7/site-packages/django/utils/functional.py", line 35, in get res = instance.dict[self.name] = self.func(instance) File "/home/sameer/Documents/ Projects/customersuccess/lib/python2.7/site-packages/django/urls/resolvers.py", line 303, in urlconf_module return import_module(self.urlconf_name) File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module import(name) File "/home/sameer/Documents/Projects/cs_dev/csmain/urls.py", line 40, in url(r'^signup/test$', Command.getuser(1),name="register"), File "/home/sameer/Documents/Projects/cs_dev/csservice/services/ldap3_test.py", line 25, in getuser with ldap.connection(**auth_kwargs) as connection: File "/usr/lib/python2.7/contextlib.py", line 17, in enter return self.gen.next() File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/django_python3_ldap/ldap.py", line 157, in connection raise_exceptions=True, File "/home/sameer/Documents/ Projects/customersuccess/lib/python2.7/site-packages/ldap3/core/connection.py", line 278, in init self.bind(read_server_info=True) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/ldap3/core/connection.py", line 427, in bind response = self.post_send_single_response(self.send('bindRequest', request, controls)) File "/home/sameer/Documents/ Projects/customersuccess/lib/python2.7/site-packages/ldap3/strategy/sync.py", line 122, in post_send_single_response responses, result = self.get_response(message_id) File "/home/sameer/Documents/ Projects/customersuccess/lib/python2.7/site-packages/ldap3/strategy/base.py", line 298, in get_response responses = self._get_response(message_id) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/ldap3/strategy/sync.py", line 168, in _get_response dict_response = self.decode_response(ldap_resp) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/ldap3/strategy/base.py", line 403, in decode_response result = bind_response_to_dict(component) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/ldap3/operation/bind.py", line 119, in bind_response_to_dict 'saslCreds': bytes(response['serverSaslCreds']) if response['serverSaslCreds'] is not None else None} File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/pyasn1/type/univ.py", line 939, in str return str(self._value) File "/home/sameer/Documents/ Projects/customersuccess/lib/python2.7/site-packages/pyasn1/type/base.py", line 186, in plug raise error.PyAsn1Error('Uninitialized ASN.1 value ("%s" attribute looked up)' % name) pyasn1.error.PyAsn1Error: Uninitialized ASN.1 value ("str" attribute looked up)

I am getting this issue with the latest version Could you help me with this? If possible please let me know where to chage the code?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/etianen/django-python3-ldap/issues/97#issuecomment-324217608, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJFCEqpEtJA5xOEzlGMvr-gFs7Sk9L3ks5sa6oFgaJpZM4OtFFU .

SameerRathod commented 7 years ago

I resolved the issue some how with ldap3==2.2.4 But it is not working for ldap3==2.3

adium-theme-ubuntu==0.3.4 alabaster==0.7.10 appdirs==1.4.3 asn1crypto==0.22.0 attrs==15.2.0 Babel==2.4.0 backport-ipaddress==0.1 backports.ssl-match-hostname==3.4.0.2 beautifulsoup4==4.4.1 blinker==1.3 Cerberus==1.1 certifi==2017.4.17 cffi==1.10.0 chardet==2.3.0 click==6.7 command-not-found==0.3 coverage==3.6 cryptography==1.2.3 debtags==2.0 decorator==4.0.11 defer==1.0.6 dirspec==13.10 Django==1.10 django-cors-headers==2.1.0 django-haystack==2.5.2.dev38+gfc9a655 django-split-settings==0.2.5 djangorestframework==3.5.0 djangorestframework-jwt==1.8.0 docutils==0.13.1 drf-haystack==1.6.1 duplicity==0.7.6 ecdsa==0.13 elasticsearch==2.4.0 enum34==1.1.2 Faker==0.7.18 Flask==0.12.1 future==0.16.0 geos==0.2.0 gunicorn==19.7.1 gyp==0.1 html5lib==0.999 httplib2==0.9.1 idna==2.0 imagesize==0.7.1 ipaddress==1.0.16 itsdangerous==0.24 Jinja2==2.9.6 jose==1.0.0 ldap3==2.3 linecache2==1.0.0 lockfile==0.12.2 lxml==3.5.0 MarkupSafe==1.0 mitie==0.2.0 nose==1.3.7 oauthlib==1.0.3 oneconf==0.3.9 packaging==16.8 PAM==0.4.2 Paste==2.0.3 pexpect==4.0.1 Pillow==3.1.2 piston-mini-client==0.7.5 pluggy==0.4.0 psycopg2==2.7.3 ptyprocess==0.5 py==1.4.33 pyasn==1.6.0b1 pyasn1==0.1.9 pyasn1-modules==0.0.7 pycparser==2.17 pycrypto==2.6.1 pycryptodomex==3.4.6 pycups==1.9.73 pycurl==7.43.0 Pygments==2.2.0 pygobject==3.20.0 PyJWT==1.5.0 pyOpenSSL==0.15.1 pyparsing==2.2.0 pysaml2==4.0.5 pyserial==3.0.1 pysmbc==1.0.15.5 python-apt==1.1.0b1 python-dateutil==2.6.1 python-debian==0.1.27 python-http-client==2.4.0 python-jose==1.3.2 pytz==2017.2 pyxdg==0.25 reportlab==3.3.0 repoze.who==2.3 requests==2.17.3 sendgrid==4.2.0 service-identity==16.0.0 six==1.10.0 snowballstemmer==1.2.1 software-center-aptd-plugins==0.0.0 Sphinx==1.5.5 sphinx-rtd-theme==0.2.4 tox==2.7.0 traceback2==1.4.0 Twisted==16.0.0 ubuntuone-client-data==14.4 unittest2==1.1.0 unity-lens-photos==1.0 urllib3==1.22 virtualenv==15.1.0 WebOb==1.7.2 Werkzeug==0.12.1 zope.interface==4.1.3

On Wed, Aug 23, 2017 at 2:14 PM, Dave Hall notifications@github.com wrote:

What is the output of:

pip freeze

On 23 August 2017 at 05:26, Sameer Rathod notifications@github.com wrote:

File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/django/core/checks/registry.py", line 81, in run_checks new_errors = check(app_configs=app_configs) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/django/core/checks/urls.py", line 14, in check_url_config return check_resolver(resolver) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/django/core/checks/urls.py", line 24, in check_resolver for pattern in resolver.url_patterns: File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/django/utils/functional.py", line 35, in get res = instance.dict[self.name] = self.func(instance) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/django/urls/resolvers.py", line 310, in url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/home/sameer/Documents/ Projects/customersuccess/lib/python2.7/site-packages/ django/utils/functional.py", line 35, in get res = instance.dict[self.name] = self.func(instance) File "/home/sameer/Documents/ Projects/customersuccess/lib/python2.7/site-packages/ django/urls/resolvers.py", line 303, in urlconf_module return import_module(self.urlconf_name) File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module import(name) File "/home/sameer/Documents/ Projects/cs_dev/csmain/urls.py", line 40, in url(r'^signup/test$', Command.getuser(1),name=" register"), File "/home/sameer/Documents/Projects/cs_dev/csservice/ services/ldap3_test.py", line 25, in getuser with ldap.connection(**auth_kwargs) as connection: File "/usr/lib/python2.7/contextlib.py", line 17, in enter return self.gen.next() File "/home/sameer/Documents/ Projects/customersuccess/lib/ python2.7/site-packages/django_python3_ldap/ldap.py", line 157, in connection raise_exceptions=True, File "/home/sameer/Documents/ Projects/customersuccess/lib/python2.7/site-packages/ldap3/ core/connection.py", line 278, in init self.bind(read_server_info=True) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/ldap3/core/connection.py", line 427, in bind response = self.post_send_single_response(self.send('bindRequest', request, controls)) File "/home/sameer/Documents/ Projects/customersuccess/lib/python2.7/site-packages/ldap3/ strategy/sync.py", line 122, in post_send_single_response responses, result = self.get_response(message_id) File "/home/sameer/Documents/ Projects/customersuccess/lib/python2.7/site-packages/ldap3/ strategy/base.py", line 298, in get_response responses = self._get_response(message_id) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/ldap3/strategy/sync.py", line 168, in _get_response dict_response = self.decode_response(ldap_resp) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/ldap3/strategy/base.py", line 403, in decode_response result = bind_response_to_dict(component) File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/ldap3/operation/bind.py", line 119, in bind_response_to_dict 'saslCreds': bytes(response['serverSaslCreds']) if response['serverSaslCreds'] is not None else None} File "/home/sameer/Documents/Projects/customersuccess/lib/ python2.7/site-packages/pyasn1/type/univ.py", line 939, in str return str(self._value) File "/home/sameer/Documents/ Projects/customersuccess/lib/python2.7/site-packages/ pyasn1/type/base.py", line 186, in plug raise error.PyAsn1Error('Uninitialized ASN.1 value ("%s" attribute looked up)' % name) pyasn1.error.PyAsn1Error: Uninitialized ASN.1 value ("str" attribute looked up)

I am getting this issue with the latest version Could you help me with this? If possible please let me know where to chage the code?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/etianen/django-python3-ldap/issues/97# issuecomment-324217608, or mute the thread https://github.com/notifications/unsubscribe- auth/AAJFCEqpEtJA5xOEzlGMvr-gFs7Sk9L3ks5sa6oFgaJpZM4OtFFU .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/etianen/django-python3-ldap/issues/97#issuecomment-324263168, or mute the thread https://github.com/notifications/unsubscribe-auth/ADtVRj0psO2rd590aKK5QgHOosSBtvChks5sa-ZdgaJpZM4OtFFU .

TiagoAssuncao commented 7 years ago

What @sameer293 saw worked for me. I do that:

pip uninstall ldap3 pip install ldap3==2.2.4

etianen commented 7 years ago

You seem to be using pyasn1==0.1.9. django-python3-ldap requires pyasn1==0.3.2.

I'm curious how you managed that. Installing django-python3-ldap will install ldap3==2.3 and pyasn1==0.3.2, a combination that works, at least for me.

On 23 August 2017 at 21:03, Tiago Assuncao notifications@github.com wrote:

What @sameer293 https://github.com/sameer293 saw worked for me. I do that:

pip uninstall ldap3 pip install ldap3==2.2.4

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/etianen/django-python3-ldap/issues/97#issuecomment-324446658, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJFCD3Y_qRx1xHWJhRuEoSDA20bpwp4ks5sbIWdgaJpZM4OtFFU .

SameerRathod commented 7 years ago

I am also wondering the same. I have tried the commands pip install -U pyasn1. It has downloaded the latest wheel/ package and was showing me the version 0.3.2 but when I was checking it inside Pycharm environment it is same what I have shown you in the above-mentioned output.

On Thu, Aug 24, 2017 at 3:20 PM, Dave Hall notifications@github.com wrote:

You seem to be using pyasn1==0.1.9. django-python3-ldap requires pyasn1==0.3.2.

I'm curious how you managed that. Installing django-python3-ldap will install ldap3==2.3 and pyasn1==0.3.2, a combination that works, at least for me.

On 23 August 2017 at 21:03, Tiago Assuncao notifications@github.com wrote:

What @sameer293 https://github.com/sameer293 saw worked for me. I do that:

pip uninstall ldap3 pip install ldap3==2.2.4

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/etianen/django-python3-ldap/issues/97# issuecomment-324446658, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJFCD3Y_ qRx1xHWJhRuEoSDA20bpwp4ks5sbIWdgaJpZM4OtFFU .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/etianen/django-python3-ldap/issues/97#issuecomment-324588944, or mute the thread https://github.com/notifications/unsubscribe-auth/ADtVRgpLEgPqGZ7ZR60kiXVwlorD097Tks5sbUdsgaJpZM4OtFFU .

etianen commented 7 years ago

Hmm. So either PyCharm is doing something strange, or I've specified my dependencies wrong.

https://github.com/etianen/django-python3-ldap/blob/master/setup.py#L18

I can't see how the dependencies for django-python3-ldap could be any more explicit, though...

Maybe pip is doing something stupid? It's dependency resolution is pretty primitive.

On 24 August 2017 at 10:59, Sameer Rathod notifications@github.com wrote:

I am also wondering the same. I have tried the commands pip install -U pyasn1. It has downloaded the latest wheel/ package and was showing me the version 0.3.2 but when I was checking it inside Pycharm environment it is same what I have shown you in the above-mentioned output.

On Thu, Aug 24, 2017 at 3:20 PM, Dave Hall notifications@github.com wrote:

You seem to be using pyasn1==0.1.9. django-python3-ldap requires pyasn1==0.3.2.

I'm curious how you managed that. Installing django-python3-ldap will install ldap3==2.3 and pyasn1==0.3.2, a combination that works, at least for me.

On 23 August 2017 at 21:03, Tiago Assuncao notifications@github.com wrote:

What @sameer293 https://github.com/sameer293 saw worked for me. I do that:

pip uninstall ldap3 pip install ldap3==2.2.4

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/etianen/django-python3-ldap/issues/97# issuecomment-324446658, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJFCD3Y_ qRx1xHWJhRuEoSDA20bpwp4ks5sbIWdgaJpZM4OtFFU .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/etianen/django-python3-ldap/issues/97# issuecomment-324588944, or mute the thread https://github.com/notifications/unsubscribe-auth/ ADtVRgpLEgPqGZ7ZR60kiXVwlorD097Tks5sbUdsgaJpZM4OtFFU .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/etianen/django-python3-ldap/issues/97#issuecomment-324591049, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJFCKt4sESuI19ErmEupWHWMPGj--9Kks5sbUl_gaJpZM4OtFFU .