Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #85788

Issues pip-installing pywin32

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!lightspeed.eweka.nl!lightspeed.eweka.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@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; 'url:pypi': 0.03; 'url:sourceforge': 0.03; '(python': 0.07; 'debug': 0.07; 'error:': 0.07; 'ignored': 0.07; 'lines,': 0.07; 'pypi': 0.07; 'think,': 0.07; 'happens.': 0.09; 'satisfy': 0.09; 'security.': 0.09; 'worse': 0.09; 'python': 0.11; 'windows': 0.15; '(before': 0.16; '(use': 0.16; '3.3,': 0.16; 'check?': 0.16; 'fetch': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hostname': 0.16; 'https': 0.16; 'it".': 0.16; 'link,': 0.16; 'pywin32': 0.16; 'storing': 0.16; 'url:pywin32': 0.16; 'appropriate': 0.16; 'url:)': 0.16; 'work,': 0.20; 'seems': 0.21; 'command': 0.22; 'saying': 0.22; 'to:name:python-list@python.org': 0.22; 'install': 0.23; 'error': 0.23; 'skip': 0.24; 'versions': 0.24; '(see': 0.26; 'least': 0.26; '[1]': 0.29; 'google,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'work.': 0.31; 'asked': 0.31; 'gives': 0.31; 'program,': 0.31; "skip:' 10": 0.31; 'exclude': 0.31; 'work:': 0.31; 'this.': 0.32; 'skip:c 30': 0.32; 'linux': 0.33; 'url:python': 0.33; 'running': 0.33; 'skip:d 20': 0.34; "i'd": 0.34; 'could': 0.34; 'info': 0.35; 'connection': 0.35; 'something': 0.35; 'requirement': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'url:org': 0.36; 'clear': 0.37; 'to:addr:python-list': 0.38; 'files': 0.38; 'skip:- 10': 0.38; 'rather': 0.38; 'does': 0.39; '(from': 0.39; 'hosted': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'how': 0.40; 'tell': 0.60; 'simple': 0.61; 'grab': 0.64; 'him,': 0.64; 'on...': 0.68; 'user,': 0.69; 'obvious': 0.74; 'glad': 0.83; '3.4': 0.84; 'hassle': 0.84; 'installer': 0.84; 'bounce': 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=99ugkYXAzfJHGlMYQbJveoZsifFIWAOghnSipRgNDoI=; b=x4QZIZNumi0Q7ujNydyrFubTChPAphphPnwXc1qz3XfavlydFEM5V02io26Zc5eYIT 8l9mwNfqxGFk7NaI9mPvT6s3mIqoHCET40D/7vaw5bOY6SNz9ctXpK5gqXsb0di/B5FJ exXtW96xGKmEHy2WaJh08MvT8RXIF+w/KS6O0d/z5a7C9b7DWhBmxX8n3NzzK1zJV6wv 8vPZHRGBvBRiOI79c1DZnjsnLYV8D93LTKcNigr5/Vfo07llLevLmJ2Rm1ayiirPdPBu Zgfm3Obhw82VhxTOG+kmubV9PMLcVC0tZGOLjorGuepEFKvTgjAqOKfxPPciTqOclQSy f4mw==
MIME-Version 1.0
X-Received by 10.42.52.200 with SMTP id k8mr39652790icg.26.1424261591973; Wed, 18 Feb 2015 04:13:11 -0800 (PST)
Date Wed, 18 Feb 2015 23:13:11 +1100
Subject Issues pip-installing pywin32
From Chris Angelico <rosuav@gmail.com>
To "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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.18816.1424261594.18130.python-list@python.org> (permalink)
Lines 76
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1424261594 news.xs4all.nl 2971 [2001:888:2000:d::a6]:51586
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 6975
X-Received-Body-CRC 3446713375
Xref csiph.com comp.lang.python:85788

Show key headers only | View raw


(Before I begin, I want to make it clear that I can still go poke
around on SourceForge and grab the appropriate installer [1], and that
does work. But if I'm going to tell someone else how to set up this
program, I'd much rather be able to recommend pip.)

On a fresh Python 3.4 running on Windows 7, attempting to "pip install
pywin32" doesn't work:

C:\Users\Rosuav>pip install pywin32
Downloading/unpacking pywin32
  Could not find any downloads that satisfy the requirement pywin32
  Some externally hosted files were ignored (use --allow-external
pywin32 to allow).
Cleaning up...
No distributions at all found for pywin32
Storing debug log for failure in C:\Users\Rosuav\pip\pip.log

C:\Users\Rosuav>pip install --allow-external pywin32
You must give at least one requirement to install (see "pip help install")


Okay, so the obvious command doesn't work, and gives a
not-particularly-helpful error message, but I know how to Google, I
can get past this.


C:\Users\Rosuav>pip install --allow-external pywin32
--allow-unverified pywin32 pywin32
Downloading/unpacking pywin32
  Could not find any downloads that satisfy the requirement pywin32
Cleaning up...
No distributions at all found for pywin32
Storing debug log for failure in C:\Users\Rosuav\pip\pip.log


Huh. The PyPI categorization seems to exclude Python 3.4 support
(despite versions for both 3.4 and 3.5 existing on the sourceforge
page). Let's try that with 2.7, just to see what happens. (I could
alternatively backlevel to 3.3, I suppose.)

C:\Users\Rosuav>\python27\python -m pip --version
pip 1.5.6 from C:\python27\lib\site-packages (python 2.7)

C:\Users\Rosuav>\python27\python -m pip install --allow-external
pywin32 --allow-unverified pywin32 pywin32
Downloading/unpacking pywin32
  Could not find any downloads that satisfy the requirement pywin32
Cleaning up...
No distributions at all found for pywin32
Storing debug log for failure in C:\Users\Rosuav\pip\pip.log


The log contains these lines, which may be a clue as to what's going on...

  Could not fetch URL
https://sourceforge.net/projects/pywin32/files/pywin32/ (from
https://pypi.python.org/simple/pywin32/): connection error: hostname
'sourceforge.net' doesn't match either of 'cloudfront.net',
'*.cloudfront.net'
  Will skip URL
https://sourceforge.net/projects/pywin32/files/pywin32/ when looking
for download links for pywin32
  Could not find any downloads that satisfy the requirement pywin32

Does this mean there's an HTTPS configuration error at sourceforge?
And if that is indeed the problem, is there any way that I, as an end
user, can bypass the check? My alternative is using a non-SSL link, so
it's not like I'd actually have worse security.

At this point, I am REALLY glad my Dad asked me to set this all up for
him, rather than just giving him some instructions and saying "go for
it". (And to think, all I want is a simple program to bounce some info
out from a Windows VM onto the Linux host. So much hassle for
something so simple.)

[1] http://sourceforge.net/projects/pywin32/files/pywin32/

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Issues pip-installing pywin32 Chris Angelico <rosuav@gmail.com> - 2015-02-18 23:13 +1100

csiph-web