Search code examples
linuxredhatpython-2.6

Python module Import error for one user but not the other


This works:

root@host#/usr/bin/python26 script.py 
Success

This results in an error:

user@host$/usr/bin/python26 script.py

ImportError: No module named OpenSSL 

The users have identical PYTHONPATHs. Why does the 2nd user fail to import the module?


Solution

  • Ran chmod 755 on all directories in python path.

    Non-root user was able to execute script after this.