Zappa icon indicating copy to clipboard operation
Zappa copied to clipboard

Package Error: python-dateutil

Open weasteam opened this issue 5 years ago • 18 comments

Would you please support the newest version of python-dateutil?

ERROR: zappa 0.48.2 has requirement python-dateutil<2.7.0,>=2.6.1, but you'll have python-dateutil 2.8.0 which is incompatible.

weasteam avatar Sep 13 '19 23:09 weasteam

I am running with the same issue here. Also encountered problem with jmespath.

ERROR: zappa 0.48.2 has requirement jmespath==0.9.3, but you'll have jmespath 0.9.4 which is incompatible.
ERROR: zappa 0.48.2 has requirement python-dateutil<2.7.0,>=2.6.1, but you'll have python-dateutil 2.8.0 which is incompatible.

gonwi avatar Nov 14 '19 04:11 gonwi

I also have the same error for jmespath and python-dateutil, any news on this?

kittylon avatar Dec 03 '19 08:12 kittylon

This is impacting us as well.

thibaut-pro avatar Feb 18 '20 16:02 thibaut-pro

This is solved by #1998 which I hope to merge and release this week. And we should be done with pinned dependencies altogether.

jneves avatar Feb 18 '20 18:02 jneves

@jneves Ping. Now that #1998 is merged and botocore is not restricted to python-dateutil<2.7.0, can the pinning of python-dateutil in Zappa be removed?

brianhelba avatar Mar 03 '20 04:03 brianhelba

This is solved by #1998 which I hope to merge and release this week. And we should be done with pinned dependencies altogether.

This is still an issue. I'm trying to convert an app that has multiple dependencies which require dateutil 2.8+ over to Zappa/Lambda, but I cannot because of this issue. Do we have any kind of ETA for when this will be fixed? I can't deploy the app in a working state, because the Zappa "<2.7.0" requirement forces the shipped version to be less than what I require.

hickeroar avatar Mar 11 '20 19:03 hickeroar

Not yet, haven't found the specific reason why it was locked in the first place. Will have to check if it's just some API change.

jneves avatar Mar 11 '20 20:03 jneves

I did some digging and found #1449 from times when requirements.txt still contained hard version dependencies. python-dateutil was pinned to 2.6, because botocore at the time still depended on <2.7. botocore has since removed the dependency on python-dateutil completely (c.f. botocore/botocore@7477a82b379b0e5b36e727a32002f554a4862d2e).

I also checked Zappas sourcecode, and dateutil is used only in cli.py to parse ISO timestamps. There are no breaking changes and all tests are still running with dateutil>2.8.

@jneves would you like a PR for loosening python-dateutil version?

tommie-lie avatar May 01 '20 12:05 tommie-lie

Any update on this? Like everyone else, I am starting to run into issues because of the pinned version.

bmyrtil-fsns avatar May 18 '20 19:05 bmyrtil-fsns

Please update. My dependencies don't resolve due to this.

amsal-muhammad avatar Jun 08 '20 15:06 amsal-muhammad

FYI there is a PR that is ready to be merged but is just sitting around. I got around this issue but installing zappa directly off that branch. The branch is feature/updates-including-dateutil.

In your virtualenv:

pip uninstall zappa
pip install git+https://github.com/Miserlou/Zappa.git@feature/updates-including-dateutil#egg=zappa
pip install -U python-dateutil

jasonrhaas avatar Jul 09 '20 22:07 jasonrhaas

Thanks, will hopefully sort this out tomorrow.

jneves avatar Jul 10 '20 04:07 jneves

Please merge it :(

amsal-muhammad avatar Jul 14 '20 10:07 amsal-muhammad

Ran into this error today as well.

python-dateutil<2.7.0 (from zappa==0.51.0 python-dateutil>=2.7.3 (from pandas==1.1.1->awswrangler==1.8.1

JasonSanchez avatar Aug 23 '20 06:08 JasonSanchez

Ran into this today too, but I'm unsure if I should wait for the release or attempt a different approach. Is something preventing this from being released?

jayfid avatar Sep 02 '20 18:09 jayfid

Running into this issue today too :(

nino-finch avatar Sep 03 '20 19:09 nino-finch

Add this instead until we get a real release.

-e git+https://github.com/Miserlou/Zappa.git@0c8d99ddbc297124d93c166652013abba50ee86e#egg=zappa

chris-erickson avatar Sep 29 '20 15:09 chris-erickson

Running into this issue today too :(

louq-gharnati avatar May 08 '21 16:05 louq-gharnati