Skip to content

openai.APIError: Claude Code executable not found at #2

@PhilippeRigaux

Description

@PhilippeRigaux

On first python test script, I get the following errors:

NoneTraceback (most recent call last):
File "/Users/pri/Python/DiscogsMCP/test.py", line 16, in
for chunk in response:
^^^^^^^^
File "/Users/pri/Python/DiscogsMCP/venv/lib/python3.13/site-packages/openai/_streaming.py", line 46, in iter
for item in self._iterator:
^^^^^^^^^^^^^^
File "/Users/pri/Python/DiscogsMCP/venv/lib/python3.13/site-packages/openai/_streaming.py", line 91, in stream
raise APIError(
...<3 lines>...
)
openai.APIError: Claude Code executable not found at /app/node_modules/@anthropic-ai/entrypoints/cli.js. Is options.pathToClaudeCodeExecutable set?

I'm on MacOs. Looking in the docker desktop the needed file seems to be in
/app/node_modules/@anthropic-ai/claude-code/cli.js

Is options.pathToClaudeCodeExecutable set? -> Probably not but where should I do that? Did I miss a doc somewhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions