Boto3: Install fails when up-to-date python-dateutil is installed

Created on 16 Mar 2018  路  5Comments  路  Source: boto/boto3

error: python-dateutil 2.7.0 is installed but python-dateutil<2.7.0,>=2.1 is required by {'botocore'}

Should the <2.7.0 part maybe be replaced with something like <3.0.0 or is python-dateutil known to break its API in minor updates?

This currently prevents me from using boto3 on a system.

closing-soon

Most helpful comment

But that makes the implicit assumption that if I have python-dateutil >=2.7.0 installed then I must also be running python 2.6 which isn't correct.
By making this assumption you now basically have stopped supporting all new systems out there.

python-dateutil-2.7.0 already specifies python2.7 as a requirement:

...
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
...

So if a user has python-dateutil-2.7 installed then he must be running at least python2.7 and there is no reason for boto3 not to install.

All 5 comments

This was a deliberate change, as 2.7.0 and up break on python 2.6, which we still currently support. :(

But that makes the implicit assumption that if I have python-dateutil >=2.7.0 installed then I must also be running python 2.6 which isn't correct.
By making this assumption you now basically have stopped supporting all new systems out there.

python-dateutil-2.7.0 already specifies python2.7 as a requirement:

...
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
...

So if a user has python-dateutil-2.7 installed then he must be running at least python2.7 and there is no reason for boto3 not to install.

Seconded. Would like to see this corrected.

The quick solution if you want to use python-dateutil>=2.7.0 is (if you have conda):

$ conda install boto3==1.5.32

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

Was this page helpful?
0 / 5 - 0 ratings