Skip to content

Commit 589c7a4

Browse files
davila7claude
andcommitted
Remove E2B verification step that was causing installation hang
- Remove complex verification process that was causing sequence issues - Simplify installation flow to: download → install → execute - E2B functionality verified manually and works correctly 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5659ca0 commit 589c7a4

File tree

1 file changed

+2
-36
lines changed

1 file changed

+2
-36
lines changed

cli-tool/src/index.js

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,30 +2204,9 @@ async function executeSandbox(options, targetDir) {
22042204

22052205
pipInstall.on('close', async (pipCode) => {
22062206
if (pipCode === 0) {
2207-
// Verify E2B was actually installed by trying to import it
2208-
const verifySpinner = ora('Verifying E2B installation...').start();
2207+
depSpinner.succeed('E2B Python SDK installed successfully');
22092208

2210-
const verifyInstall = spawn('python3', ['-c', 'import e2b; print("E2B imported successfully")'], {
2211-
cwd: sandboxDir,
2212-
stdio: 'pipe'
2213-
});
2214-
2215-
let verifyOutput = '';
2216-
let verifyError = '';
2217-
2218-
verifyInstall.stdout.on('data', (data) => {
2219-
verifyOutput += data.toString();
2220-
});
2221-
2222-
verifyInstall.stderr.on('data', (data) => {
2223-
verifyError += data.toString();
2224-
});
2225-
2226-
verifyInstall.on('close', async (verifyCode) => {
2227-
if (verifyCode === 0 && verifyOutput.includes('E2B imported successfully')) {
2228-
verifySpinner.succeed('E2B Python SDK installed and verified successfully');
2229-
2230-
// Build components string for installation inside sandbox
2209+
// Build components string for installation inside sandbox
22312210
let componentsToInstall = '';
22322211
if (agent) componentsToInstall += ` --agent ${agent}`;
22332212
if (command) componentsToInstall += ` --command ${command}`;
@@ -2275,19 +2254,6 @@ async function executeSandbox(options, targetDir) {
22752254
console.log(chalk.gray(' Create a .env file in the .claude/sandbox directory with your API keys'));
22762255
});
22772256

2278-
} else {
2279-
verifySpinner.fail('E2B installation verification failed');
2280-
console.log(chalk.red(`❌ Cannot import E2B module (exit code ${verifyCode})`));
2281-
if (verifyError) {
2282-
console.log(chalk.red('Verification error:'));
2283-
console.log(chalk.gray(verifyError.trim()));
2284-
}
2285-
console.log(chalk.yellow('💡 Try installing E2B manually:'));
2286-
console.log(chalk.gray(` cd ${sandboxDir}`));
2287-
console.log(chalk.gray(' pip3 install e2b'));
2288-
}
2289-
});
2290-
22912257
} else {
22922258
depSpinner.fail('Failed to install E2B Python SDK');
22932259
console.log(chalk.red(`❌ pip install failed with exit code ${pipCode}`));

0 commit comments

Comments
 (0)