flask-simpleldap icon indicating copy to clipboard operation
flask-simpleldap copied to clipboard

Error during installation

Open raucci2000 opened this issue 6 years ago • 2 comments

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:

raucci2000 avatar Sep 19 '19 13:09 raucci2000

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

pcamera123 avatar Oct 02 '19 19:10 pcamera123

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'

nickolay avatar Oct 04 '19 12:10 nickolay