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

NotImplementedError when running any dbt command after dbt-mysql installation #115

Closed
the-timoye opened this issue Oct 13, 2022 · 1 comment · Fixed by #116
Closed

NotImplementedError when running any dbt command after dbt-mysql installation #115

the-timoye opened this issue Oct 13, 2022 · 1 comment · Fixed by #116
Labels
bug Something isn't working

Comments

@the-timoye
Copy link
Contributor

I use python version 3.10.7 & pip version 22.2.2

I get a NotImplementedError whenever I try to run any dbt command after installing dbt-mysql with the python -m pip install dbt-mysql commannd. I can't even run the dbt init command successfully

Steps To Reproduce

  • python -m venv venv # create a virtual environment
  • python -m pip install dbt-mysql # install dbt-mysql
  • dbt init

Expected behavior

I should be able to initialize dbt

log output

Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2032.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users<username>\Documents\dummy_db_docs\venv\Scripts\dbt.exe_main
.py", line 4, in
File "C:\Users<username>\Documents\dummy_db_docs\venv\lib\site-packages\dbt\main.py", line 2, in
from dbt.logger import GLOBAL_LOGGER as logger, log_cache_events, log_manager
File "C:\Users<username>\Documents\dummy_db_docs\venv\lib\site-packages\dbt\logger.py", line 16, in
from dbt.dataclass_schema import dbtClassMixin
File "C:\Users<username>\Documents\dummy_db_docs\venv\lib\site-packages\dbt\dataclass_schema.py", line 13, in
from mashumaro import DataClassDictMixin
File "C:\Users<username>\Documents\dummy_db_docs\venv\lib\site-packages\mashumaro_init
.py", line 4, in
from mashumaro.serializer.json import DataClassJSONMixin
File "C:\Users<username>\Documents\dummy_db_docs\venv\lib\site-packages\mashumaro\serializer\json.py", line 28, in
class DataClassJSONMixin(DataClassDictMixin):
File "C:\Users<username>\Documents\dummy_db_docs\venv\lib\site-packages\mashumaro\serializer\base\dict.py", line 21, in init_subclass
raise exc
File "C:\Users<username>\Documents\dummy_db_docs\venv\lib\site-packages\mashumaro\serializer\base\dict.py", line 17, in init_subclass
builder.add_to_dict()
File "C:\Users<username>\Documents\dummy_db_docs\venv\lib\site-packages\mashumaro\serializer\base\metaprogramming.py", line 365, in add_to_dict
pre_serialize = self.get_declared_hook(PRE_SERIALIZE)
File "C:\Users<username>\Documents\dummy_db_docs\venv\lib\site-packages\mashumaro\serializer\base\metaprogramming.py", line 203, in get_declared_hook
if type_name(cls) != DataClassDictMixinPath:
File "C:\Users<username>\Documents\dummy_db_docs\venv\lib\site-packages\mashumaro\meta\helpers.py", line 28, in type_name
if is_generic(t):
File "C:\Users<username>\Documents\dummy_db_docs\venv\lib\site-packages\mashumaro\meta\helpers.py", line 54, in is_generic
raise NotImplementedError
NotImplementedError

OS: Windows 10
Python Version: 3.10.7
Pip Version:22.2.2

@the-timoye the-timoye added the bug Something isn't working label Oct 13, 2022
@the-timoye
Copy link
Contributor Author

Found a solution.

dbt-mysql works only with PY3.6 - PY3.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant