Can only import select as root?
Donn Cave
donn at oz.net
Fri Apr 20 00:37:22 EDT 2001
Quoth Lester McCann <l at acm.org>:
| (Quoting someone else)
|>| >>> 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*
|
| 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...
... but that isn't the name of the file. It used to be a built-in, and
could theoretically still be built in, but normally in 2.1 it would
be more like $prefix/lib/python2.1/lib-dynload/select.so (along with
a whole bunch of other modules.)
Donn Cave, donn at oz.net
More information about the Python-list
mailing list