Skip to content

macOS x86_64: indexing fails with TypeError: 'bytes' object is not an instance of 'str' #209

Description

@amar1n

On macOS Intel (x86_64), semble==0.1.4 installs successfully with:

uv tool install 'semble[mcp]==0.1.4'

But indexing a local repository fails both from CLI and MCP with:

  • TypeError: 'bytes' object is not an instance of 'str'

Example command:

uvx --from 'semble[mcp]==0.1.4' semble search 'authentication' /path/to/local/repo

I also tried forcing Python 3.12, but got the same error.

I could not test newer versions because semble==0.3.4 is not installable on this machine due to tree-sitter-language-pack<1.6.3 not providing a compatible macOS x86_64 wheel.

This looks related to closed PR #128, which describes the same bytes vs str failure in parser.parse() with newer tree-sitter APIs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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