flask-simpleldap
flask-simpleldap copied to clipboard
Error during installation
Hi folks!
I'm using Python 3.6.4 (x64) with Windows 10 (x64). When I try to install by command line "pip install flask-simpleldap" appears following message error:
Building wheels for collected packages: python-ldap Building wheel for python-ldap (setup.py) ... error ERROR: Command errored out with exit status 1:
Having the same problem within intelij IDEA, When i docker -compose up -build everything compiles correctly no module errors. My guess is intelij is using path for python3 but this pip install supports only 2. I fixed it once before cant remember what I did, unfortunately i have to revert the VM and change the username.
Update,
Just solved my problem by installing python-ldap, flask-simple and flask-simple-login. OP check dependency's
The error C1083: Cannot open include file: 'lber.h': No such file or directory is python-ldap failing to build. The easiest way around it is to install a prebuilt *.whl: https://stackoverflow.com/a/58235938/1026
In #66 I added a link to the python-ldap installation instructions in the hope of making the prebuilt wheels easier to find.
PS I managed to miss the installation error, and got an error when attempting to run my app:
flask.cli.NoAppException: While importing "myapp", an ImportError was raised:
Traceback (most recent call last):
File "...\.virtualenvs\...\lib\site-packages\flask\cli.py", line 240, in locate_app
__import__(module_name)
File "...\myapp.py", line 68, in <module>
from flask_simpleldap import LDAP
File "...\.virtualenvs\...\lib\site-packages\flask_simpleldap\__init__.py", line 3, in <module>
import ldap
ModuleNotFoundError: No module named 'ldap'