Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fatal AttributeError using Arrow 0.14.5 #300

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

davidag
Copy link
Contributor

@davidag davidag commented Aug 11, 2019

Since Arrow 0.14.5, Arrow.replace() has dropped shift functionality in favor of Arrow.shift(). The changelog states:

[CHANGE] Removed deprecated replace shift functionality. Users looking to pass plural properties to the replace function to shift values should use shift instead.

This causes an AttributeError exception every time watson is run.

The error message is:

AttributeError: unknown attribute: "days"'

It can be reproduced just upgrading your Arrow package in your watson venv:

(.venv) $ pip install -U 

There are separate replace & shift functions since Arrow 0.9.0 and shifting using replace was marked deprecated since 0.7.1

@peakBreaker
Copy link

peakBreaker commented Aug 13, 2019

This PR should close issue #301

@FreddieChopin
Copy link

Related PR - arrow-py/arrow#624

jmaupetit
jmaupetit previously approved these changes Aug 13, 2019
Copy link
Contributor

@jmaupetit jmaupetit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @davidag !

@jmaupetit
Copy link
Contributor

@davidag Can you update the changelog please?

@davidag
Copy link
Contributor Author

davidag commented Aug 16, 2019

@jmaupetit Done!

@davidag davidag force-pushed the fix-deprecated-arrow-replace branch from d13d3bf to d30dfef Compare August 16, 2019 16:54
@jmaupetit
Copy link
Contributor

Nice 👍 Now a fresh rebase and we will be good to go 😉

Since Arrow 0.14.5, Arrow.replace() has dropped shift functionality
in favor of Arrow.shift(). This causes an AttributeError exception
every time watson is run.

The error message is: 'AttributeError: unknown attribute: "days"'
@davidag davidag force-pushed the fix-deprecated-arrow-replace branch from d30dfef to f5bfc62 Compare August 19, 2019 22:18
@davidag
Copy link
Contributor Author

davidag commented Aug 19, 2019

Ups. Fixed now! Thx 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants