Looks like a similar issue happened in Python 3.1: https://bugzilla.redhat.com/show_bug.cgi?id=526126#c25
According to that .diff @@ -99,7 +99,7 @@ # First, look at Setup.config; configure may have set this for you. -#crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems -+crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems ++crypt cryptmodule.c -lcrypt # crypt(3); needs -lcrypt on some systems And here is the patch in IUS, may need to be updated to remove comment after cryptmodule.c and before -lcrypt https://github.com/iuscommunity- pkg/python27/blob/master/SOURCES/python-2.7.1-config.patch#L104-L105 ** Bug watch added: Red Hat Bugzilla #526126 https://bugzilla.redhat.com/show_bug.cgi?id=526126 -- You received this bug notification because you are a member of IUS Core Development, which is subscribed to IUS Community Project. https://bugs.launchpad.net/bugs/1320912 Title: python 2.7 crypt module is broken Status in IUS Community Project: New Bug description: The standard lib crypt module is broken on Python 2.7 running on CentOS 6.5. ---- $ python2.7 Python 2.7.6 (default, Nov 11 2013, 12:28:11) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import crypt Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: /usr/lib64/python2.7/lib-dynload/cryptmodule.so: undefined symbol: crypt >>> quit() ---- ---- $ rpm -qa|grep ius git18-1.8.5.5-2.ius.centos6.x86_64 python27-2.7.6-1.ius.centos6.x86_64 ius-release-1.0-11.ius.centos6.noarch perl-Git18-1.8.5.5-2.ius.centos6.noarch python27-libs-2.7.6-1.ius.centos6.x86_64 python27-devel-2.7.6-1.ius.centos6.x86_64 ---- We are doing more research to determine exactly why it's broken, but wanted to report it for you. To manage notifications about this bug go to: https://bugs.launchpad.net/ius/+bug/1320912/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ius-coredev Post to : [email protected] Unsubscribe : https://launchpad.net/~ius-coredev More help : https://help.launchpad.net/ListHelp

