Remove sys.path.insert('/opt') — agents_core now installed via pip
The editable install path finder was being shadowed by the /opt namespace package lookup. Removing the manual path insert fixes the ImportError: cannot import name 'BaseAgent' from 'agents_core'. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -14,8 +14,6 @@ from datetime import datetime, timezone
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
# Ajout du chemin agents_core si non installé en package
|
|
||||||
sys.path.insert(0, "/opt")
|
|
||||||
|
|
||||||
from agents_core import BaseAgent, AgentContext, Message, MessageType
|
from agents_core import BaseAgent, AgentContext, Message, MessageType
|
||||||
from agents_core.command_parser import ParsedCommand, CommandType, help_text
|
from agents_core.command_parser import ParsedCommand, CommandType, help_text
|
||||||
|
|||||||
Reference in New Issue
Block a user