wireservice / csvkit

A suite of utilities for converting to and working with CSV, the king of tabular file formats.
https://csvkit.readthedocs.io
MIT License
6.03k stars 603 forks source link

Not compatible with python 3.10.0 #1151

Closed jcdevil closed 2 years ago

jcdevil commented 3 years ago

Working on MacOS 11.6, and trying to use python 3.10.0 (installed with pyenv), I get the following error :

  ...
    from csvkit import agate
  File "/Users/xxx/.pyenv/versions/3.10.0/envs/pyforge-3.10.0/lib/python3.10/site-packages/csvkit/__init__.py", line 15, in <module>
    import agate
  File "/Users/xxx/.pyenv/versions/3.10.0/envs/pyforge-3.10.0/lib/python3.10/site-packages/agate/__init__.py", line 14, in <module>
    from agate.table import Table
  File "/Users/xxx/.pyenv/versions/3.10.0/envs/pyforge-3.10.0/lib/python3.10/site-packages/agate/table/__init__.py", line 301, in <module>
    from agate.table.bar_chart import bar_chart
  File "/Users/xxx/.pyenv/versions/3.10.0/envs/pyforge-3.10.0/lib/python3.10/site-packages/agate/table/bar_chart.py", line 4, in <module>
    import leather
  File "/Users/xxx/.pyenv/versions/3.10.0/envs/pyforge-3.10.0/lib/python3.10/site-packages/leather/__init__.py", line 5, in <module>
    from leather.chart import Chart
  File "/Users/xxx/.pyenv/versions/3.10.0/envs/pyforge-3.10.0/lib/python3.10/site-packages/leather/chart.py", line 11, in <module>
    from leather.scales import Scale, Linear, Temporal
  File "/Users/xxx/.pyenv/versions/3.10.0/envs/pyforge-3.10.0/lib/python3.10/site-packages/leather/scales/__init__.py", line 3, in <module>
    from leather.scales.base import Scale
  File "/Users/xxx/.pyenv/versions/3.10.0/envs/pyforge-3.10.0/lib/python3.10/site-packages/leather/scales/base.py", line 8, in <module>
    from leather.shapes import Bars, Columns
  File "/Users/xxx/.pyenv/versions/3.10.0/envs/pyforge-3.10.0/lib/python3.10/site-packages/leather/shapes/__init__.py", line 4, in <module>
    from leather.shapes.bars import Bars
  File "/Users/xxx/.pyenv/versions/3.10.0/envs/pyforge-3.10.0/lib/python3.10/site-packages/leather/shapes/bars.py", line 8, in <module>
    from leather.series import CategorySeries
  File "/Users/xxx/.pyenv/versions/3.10.0/envs/pyforge-3.10.0/lib/python3.10/site-packages/leather/series/__init__.py", line 3, in <module>
    from leather.series.base import Series, key_function
  File "/Users/xxx/.pyenv/versions/3.10.0/envs/pyforge-3.10.0/lib/python3.10/site-packages/leather/series/base.py", line 3, in <module>
    from collections import Iterable, Sequence, Mapping

any thought ? Thx for your help !

jpmckinney commented 2 years ago

This was already fixed, but I hadn't made a release. 1.0.7 is now available :) https://pypi.org/project/csvkit/