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 + LookupError: Unpack method not implemented for <MySQLType.BLOB: 252> #132

Open
Pon4iPay opened this issue Jul 30, 2019 · 2 comments

Comments

@Pon4iPay
Copy link

Pon4iPay commented Jul 30, 2019

# pon4ipay@DESKTOP-347OOI8:~$ sudo ./dbsake frmdump --type-codes ./db/users_data.frm
Uncaught exception! (╯°□°)╯ ︵ ┻━┻
Traceback (most recent call last):
  File "./dbsake/dbsake/core/mysql/frm/mysqltypes.py", line 298, in unpack_default
    return dispatch(defaults, context)
  File "./dbsake/dbsake/core/mysql/frm/mysqltypes.py", line 809, in unpack_type_long_blob
    raise NotImplementedError  # pragma: no cover
NotImplementedError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "./dbsake/__main__.py", line 22, in <module>
    sys.exit(main())
  File "./dbsake/__main__.py", line 18, in main
    sys.exit(dbsake.cli.main())
  File "./dbsake/dbsake/cli/__init__.py", line 123, in main
    dbsake(args=argv, auto_envvar_prefix='DBSAKE', obj={})
  File "./dbsake/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "./dbsake/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "./dbsake/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "./dbsake/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "./dbsake/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "./dbsake/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "./dbsake/dbsake/cli/cmd/frm.py", line 71, in frmdump
    failures += parse_and_print(name, type_codes, replace)
  File "./dbsake/dbsake/cli/cmd/frm.py", line 26, in parse_and_print
    table = frm.parse(frm_path)
  File "./dbsake/dbsake/core/mysql/frm/__init__.py", line 41, in parse
    return dispatch(path)
  File "./dbsake/dbsake/core/mysql/frm/binaryfrm.py", line 402, in parse
    columns = list(unpack_columns(packed_frm_data.columns, table))
  File "./dbsake/dbsake/core/mysql/frm/binaryfrm.py", line 325, in unpack_columns
    default = mysqltypes.unpack_default(defaults, context)
  File "./dbsake/dbsake/core/mysql/frm/mysqltypes.py", line 301, in unpack_default
    context.type_code)
LookupError: Unpack method not implemented for <MySQLType.BLOB: 252>
It's okay. ┬─┬ノ( º_ ºノ)
Consider filing a bug report at https://github.com/abg/dbsake/issues

dbsake has already helped me to recover several tables, but it doesn't want to recover a couple of other tables.

P.S.
I don't know anybody will help me?..

@PasTrik
Copy link

PasTrik commented Aug 28, 2023

bump ?

@superthin
Copy link

superthin commented Feb 27, 2024

Same same:

I attach a frm file (ziped)
Uploading vil_gla_attribute_mapping_rules.zip…
which cannot extract and makes error.

I guest it seems to relate utf8mb3 in my tables.

Uncaught exception! (╯°□°)╯ ︵ ┻━┻
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/dbsake/core/mysql/frm/mysqltypes.py", line 298, in unpack_default
    return dispatch(defaults, context)
  File "/usr/local/lib/python3.10/dist-packages/dbsake/core/mysql/frm/mysqltypes.py", line 809, in unpack_type_long_blob
    raise NotImplementedError  # pragma: no cover
NotImplementedError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/dbsake", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/dbsake/cli/__init__.py", line 123, in main
    dbsake(args=argv, auto_envvar_prefix='DBSAKE', obj={})
  File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/dbsake/cli/cmd/frm.py", line 71, in frmdump
    failures += parse_and_print(name, type_codes, replace)
  File "/usr/local/lib/python3.10/dist-packages/dbsake/cli/cmd/frm.py", line 26, in parse_and_print
    table = frm.parse(frm_path)
  File "/usr/local/lib/python3.10/dist-packages/dbsake/core/mysql/frm/__init__.py", line 41, in parse
    return dispatch(path)
  File "/usr/local/lib/python3.10/dist-packages/dbsake/core/mysql/frm/binaryfrm.py", line 402, in parse
    columns = list(unpack_columns(packed_frm_data.columns, table))
  File "/usr/local/lib/python3.10/dist-packages/dbsake/core/mysql/frm/binaryfrm.py", line 325, in unpack_columns
    default = mysqltypes.unpack_default(defaults, context)
  File "/usr/local/lib/python3.10/dist-packages/dbsake/core/mysql/frm/mysqltypes.py", line 300, in unpack_default
    raise LookupError("Unpack method not implemented for %r" %
LookupError: Unpack method not implemented for <MySQLType.BLOB: 252>
It's okay. ┬─┬ノ( º_ ºノ)
Consider filing a bug report at https://github.com/abg/dbsake/issues

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

3 participants