Note that there are some explanatory texts on larger screens.

plurals
  1. POPython help('modules') command throws WindowsError in IDLE (idle.pyw) but not command line prompt (python.exe)
    text
    copied!<p>If I type the following at the python.exe command prompt...</p> <pre><code>&gt;&gt;&gt;help('modules') </code></pre> <p>...I get a list of available modules as expected.</p> <p>However when I type the same thing in the IDLE environment (idle.pyw), it throws an error:</p> <pre><code>Traceback (most recent call last): File "&lt;pyshell#1&gt;", line 1, in &lt;module&gt; help('modules') File "C:\Python27\ArcGIS10.1\lib\site.py", line 467, in __call__ return pydoc.help(*args, **kwds) File "C:\Python27\ArcGIS10.1\lib\pydoc.py", line 1727, in __call__ self.help(request) File "C:\Python27\ArcGIS10.1\lib\pydoc.py", line 1766, in help elif request == 'modules': self.listmodules() File "C:\Python27\ArcGIS10.1\lib\pydoc.py", line 1887, in listmodules ModuleScanner().run(callback, onerror=onerror) File "C:\Python27\ArcGIS10.1\lib\pydoc.py", line 1938, in run for importer, modname, ispkg in pkgutil.walk_packages(onerror=onerror): File "C:\Python27\ArcGIS10.1\lib\pkgutil.py", line 105, in walk_packages for importer, name, ispkg in iter_modules(path, prefix): File "C:\Python27\ArcGIS10.1\lib\pkgutil.py", line 147, in iter_modules for name, ispkg in iter_importer_modules(i, prefix): File "C:\Python27\ArcGIS10.1\lib\pkgutil.py", line 211, in iter_modules for fn in os.listdir(path): WindowsError: [Error 5] Access is denied: 'C:\\WINDOWS\\system32\\Msdtc/*.*' </code></pre> <p>Why does Windows say "Access is denied" to IDLE but not the command line? I have tried using "Run as Administrator" on IDLE without success. Do I need to reconfigure IDLE in some way?</p> <p>For information:</p> <p>My installation of Python 2.7.2 (32-bit version running on a Windows 7 64-bit machine) came bundled with ArcGIS 10.1, which uses Python as a scripting language and certain numerical operations (via Numpy). Could this have something to do with the differing behaviour in the prompt and IDLE?</p> <p>The root Python directory is: <code>C:\Python27\ArcGIS10.1\</code>.</p> <p>IDLE is installed at <code>C:\Python27\ArcGIS10.1\Lib\idlelib\idle.pyw</code>.</p> <p>The Python command prompt is installed at: <code>C:\Python27\ArcGIS10.1\python.exe</code>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload