Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102078
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | "Steve Petrie, P.Eng." <apetrie@aspetrie.net> |
| Newsgroups | comp.lang.python |
| Subject | Re: pip install mitmproxy - fails on watchdog-0.8.3.tar.gz with "Permission denied" error (Python 2.7.11 on Win XP SP3); |
| Date | Sat, 23 Jan 2016 14:43:22 -0500 |
| Lines | 107 |
| Message-ID | <mailman.201.1453668236.15297.python-list@python.org> (permalink) |
| References | <EA77A0A5B05D4D62B066AF6FDD9D66A9@Dell> <CAPTjJmpxHrsv3Hj9CGLgLhDKCe=3njDorD4LWOO7X2HBMrNuaA@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="UTF-8"; reply-type=original |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de KtD5/ZJbI1eqYg9sUVXtDwPh1VD3HtwIWQ3bUI0s+iBA== |
| Return-Path | <apetrie@aspetrie.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; '(python': 0.05; 'error:': 0.05; 'cc:addr:python-list': 0.09; '(instead': 0.09; '22,': 0.09; 'backslash': 0.09; 'docs.': 0.09; 'bug': 0.10; 'python': 0.10; 'jan': 0.11; 'subject:error': 0.11; 'output': 0.13; 'file,': 0.15; '"/"': 0.16; '"\\\\"': 0.16; "(can't": 0.16; '(via': 0.16; '--help': 0.16; '2016': 0.16; '23,': 0.16; '[options]': 0.16; 'chris,': 0.16; 'pathname': 0.16; 'polling.': 0.16; 'quotes)': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'slash': 0.16; 'subject:Permission': 0.16; 'subject:fails': 0.16; 'subject:install': 0.16; 'unix- style': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; 'creates': 0.18; 'gui': 0.18; 'steve': 0.18; 'windows': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'fix': 0.21; 'file:': 0.22; 'x-mailer:microsoft outlook express 6.00.2900.5931': 0.22; 'cc:no real name:2**0': 0.22; 'am,': 0.23; "haven't": 0.24; 'tried': 0.24; 'import': 0.24; 'install': 0.25; 'installed': 0.26; 'appreciated.': 0.27; 'error': 0.27; 'fri,': 0.27; 'looks': 0.29; '-----': 0.29; 'starts': 0.29; "i'm": 0.30; 'received:184': 0.30; 'fixed': 0.31; 'another': 0.32; 'embedded': 0.32; 'changed': 0.33; 'problem': 0.33; 'directory,': 0.33; 'file': 0.34; 'running': 0.34; 'sent:': 0.35; 'cc:': 0.35; 'mix': 0.35; 'skip:s 60': 0.35; 'subject:': 0.35; "isn't": 0.35; 'but': 0.36; 'instead': 0.36; 'there': 0.36; '(and': 0.36; 'subject:" ': 0.36; 'subject:: ': 0.37; 'expect': 0.37; 'say': 0.37; 'thanks': 0.37; '(with': 0.38; 'january': 0.38; 'anything': 0.38; 'sure': 0.39; 'does': 0.39; 'from:': 0.39; 'subject:-': 0.39; 'subject:with': 0.40; 'your': 0.60; 'caused': 0.61; 'further': 0.62; 'success': 0.62; 'back': 0.62; 'matter': 0.63; 'saturday,': 0.63; 'p.s.': 0.65; 'soon': 0.65; 'response.': 0.66; 'fall': 0.66; 'forward': 0.66; 'below.': 0.66; 'legal': 0.66; 'research,': 0.76; 'bang': 0.84; 'chrisa': 0.84; 'pip': 0.84; 'remarks': 0.84; 'studying': 0.84; 'received:108': 0.93; 'this;': 0.93; 'assured': 0.95 |
| DKIM-Signature | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aspetrie.net; s=dkim; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Subject:References:Cc:To:From:Message-ID; bh=3NByBbph9NtcxEUBCUW/9y8fCKn2noi2o64sYrIB7XM=; b=0bii/IMmsV1icnfgeE1LFggspiyCGDqNZRCZ4G0UM+3insrcmjuBs/axa4HhUf8KNu8bjTto3Q/ByCnk5yl/1Vs30qBq5fkTIYfE0cqDiu7pY6PRVj7RS17eh9gooVwnnsrVvGOgB2Ywfk8jI1zboklAatyPCNSEzbLV0kcuZDg=; |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| X-Mailer | Microsoft Outlook Express 6.00.2900.5931 |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.00.2900.6157 |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - serv01.siteground224.com |
| X-AntiAbuse | Original Domain - python.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - aspetrie.net |
| X-Get-Message-Sender-Via | serv01.siteground224.com: none |
| X-Filter-ID | s0sct1PQhAABKnZB5plbIYISteDNeiT4z/NaNXS3jatmxCxI0ND4q/yqB0VEaTt3x5YB+7NnUQEm Uw8kSDgJq+YyTALggh/5SiX1NN9S6BB5/SDTSfNvx2KjgeKsMoWF+etI3X3TkjWXy6S3OYl6FIIw z6siUV12GKoXB/7lgaTXN7zIsXFeu1A1gpvCgC0wTdiSp628SHG21ZADbORyGnGm0UTTyxOTzwoz lGrp/nKjqr0XfnYY1bOreZTXTui2HAkk7g6W7v9zZ9HLerco58OmwZ+nuYnT578Ww1mNaUOceXZN G0EUbELA0uv9YhdOaEKYvM7FMBxCYVZUBGGA2lm5Om4bLejegHxHeNoLwP9itHw4OCF/5bcoDJvz J3tJzq5mCuPV7WWMXS2nHKxcnpyXnXfC7RKIrIlAX4WrEXKkW7bljlpIFafYf7IoIxHeZjPHZmDK F/c5eJ11mBpxZwLAWNbdGzbSDF7mSvUPfMgXKu1VbgppFJRGoXLED7mHOorfdw9UZR77jQo++5pl MjIwtKwwE7YieRnObu2MSgA/UwDsQPuCzXrmumJ3rx8TPeP+3pAnNDhy1jOFdwI4zozIacMilJyG VyjpEgOg2D8dzNP2/33citQ+tPfbV/Jl6yKsIcOfEHNcvkhZh1toBf1XTv4Fn7yufFKS4/iWVQWE ko7QdeMg48aVY4pa17icSfd71RzD2n5sDljx+GiQtRNoazvUBoss+PG0pRBWj3g= |
| X-Report-Abuse-To | spam@quarantine.mailspamprotection.com |
| X-Filter-Fingerprint | IFrWXGses7OKB5S5G8/dJb0kolOUiviGeQyDsBgQ6PBA3cTUQ1R++keuE7RDJ8Kg3RbMLUalw1oC mj99/u+Poh38tEMU4IgC4sNz49qn3HHnhRv/ZJ3kEy8bfiAr+Fb/UpndEJ0YoaLytXXo8BMTaX2p Mk7LBarWD9Fj4R3eIu5amSKkALoA6KDzkQ8jq89Qglr+eUaqsXi6ilYykBRNmy1w3rhXI7ypWHcC zReLskSoC1jzfYuYzO5TaopJL1l0EkXKTCB9mgAH2nNvM1GFDcH5C2MO7hTENZJE35bUvwA= |
| X-Originating-IP | 184.154.224.13 |
| X-SpamExperts-Domain | siteground224.com |
| X-SpamExperts-Username | 184.154.224.13 |
| Authentication-Results | mailspamprotection.com; auth=pass smtp.auth=184.154.224.13@siteground224.com |
| X-SpamExperts-Outgoing-Class | ham |
| X-SpamExperts-Outgoing-Evidence | Combined (0.02) |
| X-Recommended-Action | accept |
| X-Mailman-Approved-At | Sun, 24 Jan 2016 15:43:55 -0500 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| 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> |
| Xref | csiph.com comp.lang.python:102078 |
Show key headers only | View raw
Chris,
Thanks for your response -- much appreciated.
Please see my remarks embedded below.
----- Original Message -----
From: "Chris Angelico" <rosuav@gmail.com>
To: "Steve Petrie, P.Eng." <apetrie@aspetrie.net>
Cc: <python-list@python.org>
Sent: Saturday, January 23, 2016 10:14 AM
Subject: Re: pip install mitmproxy - fails on watchdog-0.8.3.tar.gz with
"Permission denied" error (Python 2.7.11 on Win XP SP3);
> On Fri, Jan 22, 2016 at 3:40 AM, Steve Petrie, P.Eng.
> <apetrie@aspetrie.net> wrote:
>> In both failure cases, it looks to me like there is a bug in the pip
>> logic,
>> that is using a *nix forward slash "/" instead of a double backslash
>> "\\"
>> before the file name "make.bat".
>
> I'm not sure what your exact problem is, but I can say that it isn't
> this; the Unix-style forward slash is perfectly legal under Windows
> (and it's even legal to mix and match).
>
> ChrisA
I never knew that the forward slash is legal under Windows -- thanks for
the tip :)
After further research, I got mitmproxy installed under Windows XP. Now
mitmdump starts ok (with one "warning").
* * *
* * *
In case other Windows XP "orphans" want to use mitmdump, here's what I
learned (via Google):
1. There was a bug in pip-8.0.0 (bug fixed recently in pip-8.0.2) that
caused the "Permission denied" error:
I did another upgrade of pip, and this time the upgrade installed
pip-8.0.2 (instead of pip-8.0.0).
And pip-8.0.2 successfully installed mitmproxy.
2. But then mitmdump wouldn't start (can't use mitmproxy under
Windows -- there's no GUI port):
C:\Documents and Settings\SteveP>mitmdump --help
failed to create process.
This "failed to create process" problem, was caused by whitespace, in
the pathname to the python directory, in the bang line in file
mitmdump-script.py:
I changed the bang line (wrapping the pathname in double quotes) in file
mitmdump-script.py:
from: #!e:\a p p s\python27\python.exe
to: #!"e:\a p p s\python27\python.exe"
and now mitmdump starts ok with one warning:
C:\Documents and Settings\SteveP>mitmdump --help
e:\a p p
s\python27\lib\site-packages\watchdog\observers\__init__.py:89:
UserWarning: Failed to import read_directory_changes. Fall back to
polling.
warnings.warn("Failed to import read_directory_changes. Fall back
to polling.")
usage: mitmdump-script.py [options] [filter]
...
I tried to fix the warning, but so far no success (due to my Python
ignorance).
However, mitmdump does start (with the same warning) and it creates an
empty output file:
C:\Documents and Settings\SteveP>mitmdump -w mitmdump_20160123.txt
e:\a p p
s\python27\lib\site-packages\watchdog\observers\__init__.py:89:
UserWarning: Failed to import read_directory_changes. Fall back to
polling.
warnings.warn("Failed to import read_directory_changes. Fall back
to polling.")
I haven't yet got mitmdump to actually write anything to the output
file, but I expect that's just a matter of studying the mitmdump docs.
* * *
* * *
Thanks again for the response.
Best Regards,
Steve
P.S. Be assured -- I will soon be moving away from Windows XP to a new
computer running Debian Linux.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: pip install mitmproxy - fails on watchdog-0.8.3.tar.gz with "Permission denied" error (Python 2.7.11 on Win XP SP3); "Steve Petrie, P.Eng." <apetrie@aspetrie.net> - 2016-01-23 14:43 -0500
Re: pip install mitmproxy - fails on watchdog-0.8.3.tar.gz with "Permission denied" error (Python 2.7.11 on Win XP SP3); Larry Hudson <orgnut@yahoo.com> - 2016-01-24 14:35 -0800
Re: pip install mitmproxy - fails on watchdog-0.8.3.tar.gz with "Permission denied" error (Python 2.7.11 on Win XP SP3); Terry Reedy <tjreedy@udel.edu> - 2016-01-24 20:27 -0500
Re: pip install mitmproxy - fails on watchdog-0.8.3.tar.gz with "Permission denied" error (Python 2.7.11 on Win XP SP3); eryk sun <eryksun@gmail.com> - 2016-01-26 15:30 -0600
csiph-web