Can only import select as root?

D-Man dsh8290 at rit.edu
Fri Apr 20 00:09:23 EDT 2001


On Thu, Apr 19, 2001 at 09:44:05PM -0500, Lester McCann wrote:
| > What are the permissions on that module?  Try
| > 
| > $ ls -l /usr/lib/python-2.1/Lib/select.py*
| 
| There is no such file in the Python lib directory on my system.  (I ran
| 'find' from the root of the directory tree to verify that it doesn't
| exist anywhere.)  As I can access it when running as root, I'm assuming
| that it's built-in somehow.  I agree that it seems like a permission
| problem, but...

Hmm,  I just tried :

Python 2.0 (#18, Oct 31 2000, 13:55:49) [C] on sunos5
Type "copyright", "credits" or "license" for more information.
>>> import select
>>> print select
<module 'select' (built-in)>
>>>

It is indeed built in.  Can you import any other built in stuff (such
as sys) as a regular user?

-D





More information about the Python-list mailing list