Help: python 3.3.3 (AMD64) scripts fail as non-admin user on Windows Server 2012 R2

Luis Marsano luis.marsano at gmail.com
Sun Jan 26 17:30:21 EST 2014


I've installed python for all users with full permissions to all users
(see picture).
Python runs for all users.
However, scripts only work when I run as Administrator.
Running a script always results in an "ImportError: cannot import name" error.
Here, for example, is the output of "pip -h" run as an unprivileged user:

pip : Traceback (most recent call last):
At line:1 char:1
+ pip -h 2>&1 | Out-File -FilePath pip.txt
+ ~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Traceback (most recent
call last)::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

  File "C:\Open\Python33\lib\runpy.py", line 160, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Open\Python33\lib\runpy.py", line 73, in _run_code
    exec(code, run_globals)
  File "C:\Open\Python33\Scripts\pip.exe\__main__.py", line 5, in <module>
ImportError: cannot import name main

I get regular output when I run "pip -h" as Administrator:

Usage:
  pip <command> [options]

Commands:
  install                     Install packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  zip                         DEPRECATED. Zip individual packages.
  unzip                       DEPRECATED. Unzip individual packages.
  bundle                      DEPRECATED. Create pybundles.
  help                        Show help for commands.

General Options:
  -h, --help                  Show help.
  -v, --verbose               Give more output. Option is additive, and can be
                              used up to 3 times.
  -V, --version               Show version and exit.
  -q, --quiet                 Give less output.
  --log-file <path>           Path to a verbose non-appending log, that only
                              logs failures. This log is active by default at
                              C:\Users\Safe Administrator\pip\pip.log.
  --log <path>                Path to a verbose appending log. This log is
                              inactive by default.
  --proxy <proxy>             Specify a proxy in the form
                              [user:passwd@]proxy.server:port.
  --timeout <sec>             Set the socket timeout (default 15 seconds).
  --exists-action <action>    Default action when a path already exists:
                              (s)witch, (i)gnore, (w)ipe, (b)ackup.
  --cert <path>               Path to alternate CA bundle.

I can't figure out the issue: please help!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: permissions.png
Type: image/png
Size: 24672 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20140126/b10d2dc4/attachment.png>


More information about the Python-list mailing list