Can only import select as root?
D-Man
dsh8290 at rit.edu
Thu Apr 19 21:39:20 EDT 2001
On Thu, Apr 19, 2001 at 06:34:23PM -0500, Lester I. McCann wrote:
| I'm new to Python, just installed Python 2.1 from the source RPMs, and
| tried to run a program. It runs from root, but fails when run from a
| normal user account. I reduced the problem to something easily
| demonstrated:
|
| >>> import select
| Traceback (most recent call last):
| File "<stdin>", line 1, in ?
| ImportError: No module named select
| >>>
What are the permissions on that module? Try
$ ls -l /usr/lib/python-2.1/Lib/select.py*
(or wherever it actually is)
If the user isn't allowed to read the file, then the module can't be
imported.
HTH,
-D
More information about the Python-list
mailing list