Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,21 @@ gpt-engineer is [governed](https://github.com/gpt-engineer-org/gpt-engineer/blob


https://github.com/gpt-engineer-org/gpt-engineer/assets/4467025/40d0a9a8-82d0-4432-9376-136df0d57c99



### 6. Update README.md

Add a troubleshooting section to **`README.md`**:

```markdown
## Troubleshooting

### Installation Error: `canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'`

If you encounter this error during installation, it's due to compatibility issues with setuptools and pyperclip.

**Quick fix:**
```bash
pip install "setuptools<66.0" "pyperclip==1.8.2"
pip install gpt-engineer
20 changes: 20 additions & 0 deletions scripts/install_fixed.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Write-Host "Fixing pyperclip installation issue for gpt-engineer..." -ForegroundColor Green

# Update pip to latest version
Write-Host "Upgrading pip..."
python -m pip install --upgrade pip

# Install compatible setuptools version first
Write-Host "Installing compatible setuptools version..."
python -m pip install "setuptools>=45.0,<66.0"

# Install pyperclip 1.8.2 specifically to avoid canonicalize_version error
Write-Host "Installing pyperclip 1.8.2..."
python -m pip install "pyperclip>=1.8.2,<1.9.0"

# Install gpt-engineer in development mode
Write-Host "Installing gpt-engineer..."
python -m pip install -e .

Write-Host "✅ Installation completed successfully!" -ForegroundColor Green
Write-Host "You can now run: gpte projects/example"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo detected: The command on line 20 reads "gpte projects/example". Should it be "gpt-engineer projects/example" (or the intended command)?

Suggested change
Write-Host "You can now run: gpte projects/example"
Write-Host "You can now run: gpt-engineer projects/example"

22 changes: 22 additions & 0 deletions scripts/install_fixed.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding 'set -e' after the shebang to exit immediately if a command fails.

echo "Fixing pyperclip installation issue for gpt-engineer..."

# Update pip to latest version
echo "Upgrading pip..."
pip install --upgrade pip

# Install compatible setuptools version first
echo "Installing compatible setuptools version..."
pip install "setuptools>=45.0,<66.0"

# Install pyperclip 1.8.2 specifically to avoid canonicalize_version error
echo "Installing pyperclip 1.8.2..."
pip install "pyperclip>=1.8.2,<1.9.0"

# Install gpt-engineer in development mode
echo "Installing gpt-engineer..."
pip install -e .

echo "✅ Installation completed successfully!"
echo "You can now run: gpte projects/example"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a newline at the end of the file for consistency and to avoid potential issues.

Loading