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

Fixed compatibility issue with collections.Iterable (Python>=3.10) #527

Conversation

ildarakhmetov
Copy link

Changes proposed:
In Python 3.10, collections.Iterable is deprecated and replacd with collections.abc.Iterable. When using datascience with Python >=3.10, an error is thrown.

Example:

minard = Table.read_table('minard.csv')
minard.scatter('Longitude', 'Latitude')

Error: AttributeError: module 'collections' has no attribute 'Iterable'

I believe this little fix would solve it.

adnanhemani
adnanhemani previously approved these changes Jan 18, 2022
@adnanhemani adnanhemani dismissed their stale review January 18, 2022 04:43

oops - wasn't able to review (accidentally hit button)

@davidwagner
Copy link
Member

Oh good catch! Thank you for this fix, and sorry for my delay in responding. This appears to be fixed in #534 . Thank you again for your contribution.

@davidwagner davidwagner closed this Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants