Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #64799
| Return-Path | <luis.marsano@gmail.com> |
|---|---|
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:Windows': 0.02; 'scripts': 0.03; 'output': 0.05; 'importerror:': 0.07; 'pypi': 0.07; 'socket': 0.07; '[],': 0.09; 'default.': 0.09; 'issue:': 0.09; 'permissions': 0.09; 'runs': 0.10; 'subject:Help': 0.11; 'python': 0.11; '(default': 0.16; 'deprecated.': 0.16; 'exit.': 0.16; 'fname,': 0.16; 'log.': 0.16; 'subject: \n ': 0.16; 'subject:non': 0.16; 'subject:user': 0.16; 'timeout': 0.16; 'uninstall': 0.16; '~~~~~~~~~~~': 0.16; 'subject:python': 0.16; 'users.': 0.18; 'packages.': 0.19; 'help.': 0.21; 'import': 0.22; 'install': 0.23; 'alternate': 0.24; 'proxy': 0.24; 'specify': 0.24; "i've": 0.25; 'script': 0.25; '(see': 0.26; 'help!': 0.26; 'skip:" 30': 0.26; 'skip:" 40': 0.26; 'installed': 0.27; 'subject:) ': 0.29; 'message-id:@mail.gmail.com': 0.30; 'file': 0.32; 'figure': 0.32; 'option': 0.32; 'regular': 0.32; 'run': 0.32; 'running': 0.33; '(most': 0.33; 'skip:_ 10': 0.34; 'subject: (': 0.35; "can't": 0.35; 'received:google.com': 0.35; 'version': 0.36; 'format.': 0.36; 'options:': 0.36; 'error.': 0.37; 'example,': 0.37; 'requirements': 0.37; 'list': 0.37; 'to:addr :python-list': 0.38; 'skip:- 10': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'users': 0.40; 'logs': 0.60; 'full': 0.61; 'show': 0.63; 'information': 0.63; 'name': 0.63; 'skip:n 10': 0.64; 'zip': 0.64; 'more': 0.64; 'results': 0.69; 'default': 0.69; 'image-size:2**15': 0.72; 'commands.': 0.84; 'failures.': 0.84; 'wheel': 0.84; 'subject:Server': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=QlY9KxUqibsGwA48KmC/4l6tdJdC/aNYVr10VIIF8bs=; b=oaO01AZ2wUX8Fl8L+Z7NFDuXlHunq/dUwzTPGgpmuZb28GIUAMYhVVWz4niVuv6PxP bbgC3RKgsP1d75QmNO55L6A+pRtvwQ+b3J3TiqMaw6r7g7BCANG68My2ISEu+YV2siNW OGSx+xACVvjSiy6Ne33a5/BUagqeWZ/asLdcGPeq/qucqkJHKJz9QKnJGh88y8UU8myO jrr8s/ye5UTK/8KtwboR5COeMpR6p6qvkuhue44gphjXEWxvqA828Tu9iYWZjbuRYLlI Hd64PXT8y5eZB/6Tenu9SBIS7GYA/DJxg/K6+gmcMqIxFMrdS0KxsFanHW49MneRXu1w H0cA== |
| MIME-Version | 1.0 |
| X-Received | by 10.112.204.104 with SMTP id kx8mr3412021lbc.12.1390775421284; Sun, 26 Jan 2014 14:30:21 -0800 (PST) |
| Date | Sun, 26 Jan 2014 17:30:21 -0500 |
| Subject | Help: python 3.3.3 (AMD64) scripts fail as non-admin user on Windows Server 2012 R2 |
| From | Luis Marsano <luis.marsano@gmail.com> |
| To | python-list@python.org |
| Content-Type | multipart/mixed; boundary=001a11c3c7f0f2cf2704f0e722a3 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6005.1390775429.18130.python-list@python.org> (permalink) |
| Lines | 503 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1390775429 news.xs4all.nl 2890 [2001:888:2000:d::a6]:39898 |
| X-Complaints-To | abuse@xs4all.nl |
| Path | csiph.com!usenet.pasdenom.info!news.stben.net!Xbb.tags.giganews.com!border3.nntp.ams.giganews.com!nntp.giganews.com!news.osn.de!diablo2.news.osn.de!217.188.199.168.MISMATCH!takemy.news.telefonica.de!telefonica.de!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
| Xref | csiph.com comp.lang.python:64799 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
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!
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Help: python 3.3.3 (AMD64) scripts fail as non-admin user on Windows Server 2012 R2 Luis Marsano <luis.marsano@gmail.com> - 2014-01-26 17:30 -0500 Re: Help: python 3.3.3 (AMD64) scripts fail as non-admin user on Windows Server 2012 R2 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-26 23:53 +0000
csiph-web