Skip to content

Python3.10 - collections module dependency #1

@sngx13

Description

@sngx13

Hi,

Looks like dependency issue with 3rd party module "highcharts" where it's using Iterable from collections, now has become collections.abc is there a workaround of not relying on this?

root@brlb-dev-vm-01:/opt/tests# ./byteblower.py
Traceback (most recent call last):
  File "/opt/tests/./byteblower.py", line 7, in <module>
    from byteblower_test_framework.analysis import HttpAnalyser
  File "/usr/local/lib/python3.10/dist-packages/byteblower_test_framework/analysis.py", line 7, in <module>
    from ._analysis.bufferanalyser import BufferAnalyser
  File "/usr/local/lib/python3.10/dist-packages/byteblower_test_framework/_analysis/bufferanalyser.py", line 7, in <module>
    from .plotting.generic_chart import GenericChart
  File "/usr/local/lib/python3.10/dist-packages/byteblower_test_framework/_analysis/plotting/__init__.py", line 1, in <module>
    from .generic_chart import GenericChart
  File "/usr/local/lib/python3.10/dist-packages/byteblower_test_framework/_analysis/plotting/generic_chart.py", line 4, in <module>
    from highcharts import Highchart
  File "/usr/local/lib/python3.10/dist-packages/highcharts/__init__.py", line 5, in <module>
    from .highcharts.highcharts import Highchart
  File "/usr/local/lib/python3.10/dist-packages/highcharts/highcharts/__init__.py", line 1, in <module>
    from .highcharts import Highchart
  File "/usr/local/lib/python3.10/dist-packages/highcharts/highcharts/highcharts.py", line 15, in <module>
    from collections import Iterable
ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
root@brlb-dev-vm-01:/opt/tests#
root@brlb-dev-vm-01:/opt/tests#
root@brlb-dev-vm-01:/opt/tests# python3 --version
Python 3.10.6
root@brlb-dev-vm-01:/opt/tests# python3
Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from collections.abc import Iterable
>>>

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions