From cd8077c006652e066e8b91b31900a6d160951c38 Mon Sep 17 00:00:00 2001 From: sylvain Date: Mon, 9 Mar 2026 10:28:38 +0000 Subject: [PATCH] =?UTF-8?q?Remove=20sys.path.insert('/opt')=20=E2=80=94=20?= =?UTF-8?q?agents=5Fcore=20now=20installed=20via=20pip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- nexus.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/nexus.py b/nexus.py index fbca6eb..9e2cb4b 100644 --- a/nexus.py +++ b/nexus.py @@ -14,8 +14,6 @@ from datetime import datetime, timezone from pathlib import Path 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.command_parser import ParsedCommand, CommandType, help_text