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


Groups > comp.lang.python > #103443

Re: Could not find suitable distribution for Requirement.parse('urllib2')

Path csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From Peter Otten <__peter__@web.de>
Newsgroups comp.lang.python
Subject Re: Could not find suitable distribution for Requirement.parse('urllib2')
Date Wed, 24 Feb 2016 15:45:40 +0100
Organization None
Lines 41
Message-ID <mailman.93.1456325150.20994.python-list@python.org> (permalink)
References <8a91aabc-cf23-4352-b440-881227e05b91@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Trace news.uni-berlin.de xFiI2IvT4Wrdg14mkLTjmw7dvP1UvKO7ziTyQqsh7BHA==
Return-Path <python-python-list@m.gmane.org>
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; 'error:': 0.05; 'repository': 0.05; 'setup.py': 0.07; 'urllib2': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; "subject:')": 0.09; 'url:github': 0.09; 'python': 0.10; 'subject:not': 0.11; 'proceed?': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'setuptools': 0.16; 'subject:Could': 0.16; 'subject:distribution': 0.16; 'wrote:': 0.16; 'library': 0.20; 'trying': 0.22; 'replacing': 0.23; 'import': 0.24; 'install': 0.25; "i've": 0.25; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'linux': 0.26; 'appreciated.': 0.27; "i'm": 0.30; 'probably': 0.31; 'run': 0.33; 'problem': 0.33; 'running': 0.34; 'could': 0.35; 'installing': 0.35; 'library.': 0.35; 'should': 0.36; 'there': 0.36; 'depends': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'received:org': 0.37; 'skip:p 20': 0.38; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'some': 0.40; 'suitable': 0.61; 'skip:n 10': 0.62; 'box,': 0.67; 'satisfied': 0.83; 'subject:find': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host p57bd8129.dip0.t-ipconnect.de
User-Agent KNode/4.13.3
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21rc2
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:103443

Show key headers only | View raw


jdege@jdege.us wrote:

> I've been running a simple python program on my Linux Mint 13 box for some
> years that depends upon https://github.com/ryazwinski/pythings.
> 
> I'm currently moving to a new Linux Mint 17 box, and I'm trying to move
> the program. I'm having a problem with installing python.py.
> 
> The package comes with a setup.py:
> 
>     from setuptools import setup
>     setup(
>         name='pythings',
>         py_modules=['pythings'],
>         version='0.1',
>         description='Python Library for interfacing with Withings API',
>         install_requires=['simplejson', 'urllib2', 'hashlib'],
>     )
> 
> 
> When I run the install (sudo python setup.py install) I get an error:
> 
>     Could not find suitable distribution for Requirement.parse('urllib2')
> 
> Any ideas on how I should proceed? Is there some repository that contains
> urllib2 that needs to be added to the setuptools configuration?  Is there
> some new library that has supplanted urllib2?
> 
> Help would be appreciated.

If you are using Python 2 try replacing

>         install_requires=['simplejson', 'urllib2', 'hashlib'],

with
          install_requires=['simplejson'],

as the last two dependencies are probably already satisfied by the standard 
library.

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


Thread

Could not find suitable distribution for Requirement.parse('urllib2') jdege@jdege.us - 2016-02-24 06:02 -0800
  Re: Could not find suitable distribution for Requirement.parse('urllib2') Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-02-24 14:26 +0000
  Re: Could not find suitable distribution for Requirement.parse('urllib2') Peter Otten <__peter__@web.de> - 2016-02-24 15:45 +0100

csiph-web