question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sentry 20 !! Configuration error: ImportError: No module named ldap

See original GitHub issue

I have installed Sentry using https://github.com/getsentry/sentry/releases/tag/20.9.0 I have started ./install.sh to prepare the environment and docker-compose up -d to start sentry.

My $SENTRY_INSTALL_DIR/sentry/requirements.txt:

# Add plugins here
sentry-ldap-auth

Also, I have appended $SENTRY_INSTALL_DIR/sentry/sentry.conf.py with required configuration, but after I am starting sentry I am getting:

ingest-consumer_1              | !! Configuration error: ImportError: No module named ldap
post-process-forwarder_1       | !! Configuration error: ImportError: No module named ldap
worker_1                       | !! Configuration error: ImportError: No module named ldap
cron_1                         | !! Configuration error: ImportError: No module named ldap
web_1                          | !! Configuration error: ImportError: No module named ldap

It seems that the plug-in is not being installed.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

5reactions
lkiiicommented, Oct 14, 2020

I have managed to install the plugin.

First thing I had to include dependencies to $SENTRY_INSTALL_DIR/sentry/Dockerfile

...
FROM ${SENTRY_IMAGE}

RUN apt-get update && apt-get install -y gcc libsasl2-dev python-dev libldap2-dev libssl-dev
COPY . /usr/src/sentry
...

Then I had to run docker-compose build And after that, I have started up the sentry again with docker-compose up -d

0reactions
lkiiicommented, Feb 24, 2021

@oangit @lkiii do you have guys some example working with 21.x sentry onpremise? I am blocked on it now 😢

No sorry. My customer decided to migrate to the cloud, so I have not upgraded on-prem to the latest versions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

django_auth_ldap no module named ldap - Stack Overflow
I am trying to get the django_auth_module working but I don't think I managed to install it properly. I downloaded the package and...
Read more >
Struggling with LDAP auth - Google Groups
... import ldap_config as LDAP_CONFIG from the try/except block to have it executed directly, I get the error. ModuleNotFoundError: No module named 'ldap'....
Read more >
The solution to the error “ImportError: No module named ldap”
Installed iRedMail on Ubuntu Server in February 2016 and noticed an error when trying to send a message via Roundcube:.
Read more >
995545 – python-ldap needs python-pyasn1-modules
Description of problem: python-ldap needs python-pyasn1-modules Version-Release number ... import LDAPDN ImportError: No module named pyasn1_modules.rfc2251.
Read more >
Bug listing with status CONFIRMED as at 2022/12/20 18:46:38
config file verification" status:CONFIRMED resolution: severity:enhancement ... Bug:145580 - "sci-biology/bioperl: tests require several perl modules not in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found