zakird / pyad

Python Active Directory Tools | *Not actively maintained*
http://zakird.github.io/pyad/
176 stars 72 forks source link

CoInitialize error when running the server #89

Closed mattburlage closed 5 years ago

mattburlage commented 5 years ago

Hello!

I have written a function to check if a username exists in AD and then create a new user if not. It works in isolation (in the django shell), but as soon as I try to import it into views.py, i begin to get a coinitialize error and the server wont run

(-2147221008, 'CoInitialize has not been called.', None, None)

The error comes about from the import lines, not from anything specific to my functions

mattburlage commented 5 years ago

Resolved: https://stackoverflow.com/questions/49632933/django-python-and-pyad