Skip to content

Commit 830d95a

Browse files
rolfedhclaude
andcommitted
fix: Remove typer[all] extra to avoid installation conflicts
- Change dependency from typer[all] to typer to prevent conflicts - Add troubleshooting docs for "Not a directory" installation error - Provide multiple solutions: remove conflicting file or use pipx - Update CLAUDE.md to reflect dependency change The typer[all] extra was causing pip to fail when a 'typer' executable already exists in ~/.local/bin/. Using the base typer package avoids this conflict while maintaining all required functionality. Fixes #17 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c4cc2f9 commit 830d95a

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Aditi is a complete reboot of asciidoc-dita-toolkit, designed as a CLI tool to p
1818

1919
<!-- AUTO-GENERATED:DEPENDENCIES -->
2020
### Core Dependencies
21-
- **CLI Framework**: typer[all]>=0.9.0
21+
- **CLI Framework**: typer>=0.9.0
2222
- **Data Validation**: pydantic>=2.5.0, pydantic-settings>=2.1.0
2323
- **Other**: rich>=13.7.0, questionary>=2.0.0
2424

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Aditi helps technical writers identify and fix compatibility issues when migrati
2525
pip install --upgrade aditi
2626
```
2727

28+
> **Note**: If you encounter an installation error like `[Errno 20] Not a directory: '/home/user/.local/bin/typer'`, see the [troubleshooting guide](docs/QUICKSTART.md#installation-error-not-a-directory).
29+
2830
### System Requirements
2931

3032
- **Python**: 3.11 or later

docs/QUICKSTART.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,30 @@ aditi check --verbose # Review remaining issues
192192

193193
## Troubleshooting
194194

195+
### Installation Error: "Not a directory"
196+
197+
```bash
198+
ERROR: Could not install packages due to an OSError: [Errno 20] Not a directory: '/home/user/.local/bin/typer'
199+
```
200+
201+
**Problem**: A file named `typer` already exists in your bin directory, preventing pip from installing the typer package.
202+
203+
**Solutions**:
204+
1. Remove the conflicting file:
205+
```bash
206+
rm ~/.local/bin/typer
207+
```
208+
209+
2. Then reinstall aditi:
210+
```bash
211+
pip install --upgrade aditi
212+
```
213+
214+
3. Alternative: Use pipx for isolated installation:
215+
```bash
216+
pipx install aditi
217+
```
218+
195219
### "No paths configured" Error
196220

197221
```bash

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ classifiers = [
2828
]
2929
keywords = ["asciidoc", "dita", "documentation", "migration", "vale", "linter"]
3030
dependencies = [
31-
"typer[all]>=0.9.0",
31+
# Note: Using 'typer' instead of 'typer[all]' to avoid conflicts with existing typer CLI installations
32+
"typer>=0.9.0",
3233
"rich>=13.7.0",
3334
"pydantic>=2.5.0",
3435
"pydantic-settings>=2.1.0",

0 commit comments

Comments
 (0)