Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #103441 > unrolled thread
| Started by | jdege@jdege.us |
|---|---|
| First post | 2016-02-24 06:02 -0800 |
| Last post | 2016-02-24 15:45 +0100 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.python
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
| From | jdege@jdege.us |
|---|---|
| Date | 2016-02-24 06:02 -0800 |
| Subject | Could not find suitable distribution for Requirement.parse('urllib2') |
| Message-ID | <8a91aabc-cf23-4352-b440-881227e05b91@googlegroups.com> |
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.
[toc] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2016-02-24 14:26 +0000 |
| Message-ID | <mailman.92.1456324033.20994.python-list@python.org> |
| In reply to | #103441 |
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
[toc] | [prev] | [next] | [standalone]
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Date | 2016-02-24 15:45 +0100 |
| Message-ID | <mailman.93.1456325150.20994.python-list@python.org> |
| In reply to | #103441 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web