DataBrewery / cubes

[NOT MAINTAINED] Light-weight Python OLAP framework for multi-dimensional data analysis
http://cubes.databrewery.org
Other
1.49k stars 314 forks source link

On prepare_data.py: cannot import name 'Mapping' from 'collections' #506

Open gregkr opened 1 year ago

gregkr commented 1 year ago

On python3 prepare_data.py get next message: "python3 prepare_data.py Traceback (most recent call last): File "/home/gregory/Work/A1/tmp/cubes/examples/hello_world/prepare_data.py", line 6, in from cubes.tutorial.sql import create_table_from_csv File "/home/gregory/.local/lib/python3.10/site-packages/cubes/init.py", line 6, in from .browser import File "/home/gregory/.local/lib/python3.10/site-packages/cubes/browser.py", line 8, in from .calendar import CalendarMemberConverter File "/home/gregory/.local/lib/python3.10/site-packages/cubes/calendar.py", line 14, in from .model import Hierarchy File "/home/gregory/.local/lib/python3.10/site-packages/cubes/model.py", line 11, in from expressions import inspect_variables File "/home/gregory/.local/lib/python3.10/site-packages/expressions/init.py", line 1, in from .compiler import File "/home/gregory/.local/lib/python3.10/site-packages/expressions/compiler.py", line 6, in from .grammar import ExpressionParser, ExpressionSemantics File "/home/gregory/.local/lib/python3.10/site-packages/expressions/grammar.py", line 16, in from grako.parsing import graken, Parser File "/home/gregory/.local/lib/python3.10/site-packages/grako/init.py", line 8, in from grako.tool import compile, parse, to_python_sourcecode File "/home/gregory/.local/lib/python3.10/site-packages/grako/tool.py", line 17, in from grako.parser import GrammarGenerator File "/home/gregory/.local/lib/python3.10/site-packages/grako/parser.py", line 7, in from grako.semantics import ASTSemantics, EBNFGrammarSemantics File "/home/gregory/.local/lib/python3.10/site-packages/grako/semantics.py", line 21, in from grako import grammars File "/home/gregory/.local/lib/python3.10/site-packages/grako/grammars.py", line 8, in from collections import defaultdict, Mapping ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init.py) "