No module named crypt

1,325 views
Skip to first unread message

neil

unread,
Jul 28, 2009, 12:57:53 AM7/28/09
to reviewboard
I am running 1.0 on windows.
I have tried to enable ldap authentication.

I have done
easy_install python_ldap

but get an error "No module named crypt"

It looks like reviewboard/accounts/backends.py attempts to import
crypt

Where do I get a windows version of this from?

Christian Hammond

unread,
Jul 28, 2009, 1:40:32 AM7/28/09
to revie...@googlegroups.com
Where did you install Python from? It should be part of Python. The Python 2.5 or 2.6 installer from python.org includes it.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.review-board.org
VMware, Inc. - http://www.vmware.com

neil

unread,
Jul 28, 2009, 6:43:13 PM7/28/09
to reviewboard
The win32 installer for 2.5 does not appear to include crypt

On Jul 28, 5:40 pm, Christian Hammond <chip...@chipx86.com> wrote:
> Where did you install Python from? It should be part of Python. The Python
> 2.5 or 2.6 installer from python.org includes it.
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board -http://www.review-board.org
> VMware, Inc. -http://www.vmware.com

Dan Savilonis

unread,
Jul 28, 2009, 9:05:26 PM7/28/09
to reviewboard
crypt is only available in unix versions of python. Perhaps no one has
tried using LDAP on a Windows install. This module isn't needed for
for LDAP, so you could try removing the import from backends.py to
verify whether you can set up LDAP authentication.

Dan

neil

unread,
Jul 28, 2009, 9:40:26 PM7/28/09
to reviewboard
Great thanks.
Commented out
import crypt
in
reviewboard/accounts/backends.py

I then get error about import nis in the same file
Commented that out and appears to work OK

Is commenting out the nis likely to break something?

Christian Hammond

unread,
Jul 28, 2009, 9:57:10 PM7/28/09
to revie...@googlegroups.com
No, it's not. We should fix this so it's only imported as needed.

Would you mind filing a bug?

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.review-board.org
VMware, Inc. - http://www.vmware.com


neil

unread,
Jul 28, 2009, 10:32:14 PM7/28/09
to reviewboard
Done= issue 1244
http://code.google.com/p/reviewboard/issues/detail?id=1244

On Jul 29, 1:57 pm, Christian Hammond <chip...@chipx86.com> wrote:
> No, it's not. We should fix this so it's only imported as needed.
>
> Would you mind filing a bug?
>
> Christian
>
> --
Reply all
Reply to author
Forward
0 new messages