Skip to content

blosc2.open cannot open files containing Chinese characters. #502

@lvshifu

Description

@lvshifu

When using blosc2.open to open a file containing Chinese characters, an error occurs

  • OS: Windows 10
  • blosc2.version '3.10.0'

blosc2.open('E:\456\测试array.b2')
Traceback (most recent call last):
File "D:\Tools\jetbrains\PyCharm 2025.2.0.1\plugins\python-ce\helpers\pydev\pydevconsole.py", line 364, in runcode
coro = func()
^^^^^^
File "", line 1, in
File "C:\Projects\test.venv\Lib\site-packages\blosc2\schunk.py", line 1593, in open
res = blosc2_ext.open(urlpath, mode, offset, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "blosc2/blosc2_ext.pyx", line 2015, in blosc2.blosc2_ext.open
raise RuntimeError(f'blosc2_schunk_open_offset({urlpath!r}, {offset!r}) returned NULL')
RuntimeError: blosc2_schunk_open_offset('E:\456\测试array.b2', 0) returned NULL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Not plannedIssues that are not planned to be worked on anytime soon.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions