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


Groups > comp.lang.python > #103442

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 Mark Lawrence <breamoreboy@yahoo.co.uk>
Newsgroups comp.lang.python
Subject Re: Could not find suitable distribution for Requirement.parse('urllib2')
Date Wed, 24 Feb 2016 14:26:28 +0000
Lines 36
Message-ID <mailman.92.1456324033.20994.python-list@python.org> (permalink)
References <8a91aabc-cf23-4352-b440-881227e05b91@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de QSJZOS7bph3XoWkJ7LUa5wscIjfteJzTo/1NGpM5f8Qw==
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; 'from:addr:yahoo.co.uk': 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; 'subject: \n ': 0.15; 'proceed?': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'setuptools': 0.16; 'subject:Could': 0.16; 'subject:distribution': 0.16; 'wrote:': 0.16; 'language': 0.19; 'library': 0.20; 'default,': 0.22; 'lawrence': 0.22; 'trying': 0.22; 'import': 0.24; 'header:In-Reply-To:1': 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; 'correct': 0.28; "i'm": 0.30; 'code': 0.30; 'guess': 0.31; 'language.': 0.32; 'run': 0.33; 'problem': 0.33; "i'll": 0.33; 'running': 0.34; 'could': 0.35; 'installing': 0.35; 'should': 0.36; 'there': 0.36; 'depends': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'skip:p 20': 0.38; 'to:addr:python.org': 0.40; 'mark': 0.40; 'some': 0.40; 'your': 0.60; 'suitable': 0.61; 'charset:windows-1252': 0.62; 'skip:n 10': 0.62; 'our': 0.64; 'box,': 0.67; 'pythonistas,': 0.84; 'subject:find': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host 80.234.182.166
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
In-Reply-To <8a91aabc-cf23-4352-b440-881227e05b91@googlegroups.com>
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:103442

Show key headers only | View raw


On 24/02/2016 14:02, 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.
>

I'll guess that your new OS is running Python 3 by default, in which 
case urllib2 has gone.  If I'm correct you should to be able to run the 
code through 2to3.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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