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

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

Open
gregkr opened this issue Feb 20, 2023 · 0 comments
Open

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

gregkr opened this issue Feb 20, 2023 · 0 comments

Comments

@gregkr
Copy link

gregkr commented Feb 20, 2023

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)
"

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

No branches or pull requests

1 participant