A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/091490.html below:

Can only import select as root?

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4