Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'heavily': 0.04; 'cache': 0.07; 'paths': 0.07; 'utf-8': 0.07; 'subject:into': 0.09; 'valueerror:': 0.09; 'works.': 0.09; 'subject:How': 0.10; 'cc:addr :python-list': 0.11; 'python': 0.11; 'suggest': 0.14; 'accepts': 0.16; 'fine.': 0.16; 'pip?': 0.16; 'roy': 0.16; 'subject:install': 0.16; 'url.': 0.16; 'url:html)': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'issue.': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'either.': 0.24; 'versions': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; '15,': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; "doesn't": 0.30; 'absolute': 0.30; 'newer': 0.30; 'relative': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'url:python': 0.33; 'sense': 0.34; 'maybe': 0.34; 'problem.': 0.35; 'something': 0.35; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'ubuntu': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'being': 0.38; 'on-line': 0.38; 'pm,': 0.38; 'subject:can': 0.39; 'sure': 0.39; 'changed': 0.39; 'url:mail': 0.40; 'from:charset:utf-8': 0.61; 'such': 0.63; 'skip:\xe2 10': 0.65; 'smith': 0.68; 'caused': 0.69; '8bit%:43': 0.74; 'article': 0.77; 'it\xe2\x80\x99s': 0.84; 'url:reference': 0.84; 'url:latest': 0.91; 'url:tk': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=qo2F6j/gcFUYNrJCv1ISrJ+0cStAhuZR/mKaEB+KAoU=; b=Xh3nNHYazrlSfFj7Dl2T/gy3rlD3YrB2bmILwFRrrKPDhB2tSW6u3cIyEYaYI8+wf8 nVgsZCOjEGWTtMR3vypoiE9lKk+ryaTqVNujHY9Bw007bam2lSeY+tNMfYaR9FZYM6Yu v+1FZvM/1Wsh+xhViKm2plykg8FcErNo6/GMdcxkebP1ZhNaIAb1ZU5WrngX6lqS5PP1 8iZd1bPgd1gveZa4sp7e/lxjllPnruizt9KAwY8c9h6CmnYAge46O6CBFTuSdnS3wjBF iMlM/tBzeWsTpRG2rSutp3GIuNZR0TqKlWzKtT+wd1hO2f+y2WKTnvDvJBymE9mpjC4E JXHg== MIME-Version: 1.0 X-Received: by 10.221.30.14 with SMTP id sa14mr3854vcb.44.1392553092787; Sun, 16 Feb 2014 04:18:12 -0800 (PST) In-Reply-To: References: Date: Sun, 16 Feb 2014 13:18:12 +0100 Subject: Re: How to turn a package into something pip can install From: =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= To: Roy Smith Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392553101 news.xs4all.nl 2939 [2001:888:2000:d::a6]:59384 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66527 On Sat, Feb 15, 2014 at 11:35 PM, Roy Smith wrote: > In article , > Roy Smith wrote: > >> > > $ pip install --no-index --quiet --find-links packages metar=3D=3D1.= 4.0 >> > [snip] >> > > ValueError: unknown url type: packages >> > >> > The path to your cache directory is incorrect. I suggest using >> > absolute paths (eg. /home/user/packages) instead of relative paths, >> > which is likely what caused this issue. >> >> No, that's not it. It doesn't work with an absolute path either. > > OK, I figured this out. The on-line docs > (http://www.pip-installer.org/en/latest/reference/pip_wheel.html) say > you can give --find-links a path, but it looks like it insists on it > being a valid URL. If I prepend "file:" to the absolute path, it works. > > Maybe this is something which has changed in newer versions of pip? > I've got 1.1 (and python 2.7.3). I'm pretty sure both of these are what > came with Ubuntu Precise. > -- > https://mail.python.org/mailman/listinfo/python-list It=E2=80=99s heavily outdated, and that IS the cause of your problem. pip = 1.5 accepts such paths just fine. Please upgrade your pip. --=20 Chris =E2=80=9CKwpolska=E2=80=9D Warrick PGP: 5EAAEA16 stop html mail | always bottom-post | only UTF-8 makes sense