MaastrichtU-IDS / MaastrichtU-IDS/d2s-cli

d2s config throws '.env not found'

Open
#13 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Description

reproduce:

- create folder
- run d2s init
- run d2s config

get

```
File "/home/.local/lib/python3.8/site-packages/d2s/__main__.py", line 31, in config
get_config()
File "/home/.local/lib/python3.8/site-packages/d2s/utils.py", line 207, in get_config
with open('.env') as f:
FileNotFoundError: [Errno 2] No such file or directory: '.env'
```

expected

- if .env is required, can d2s init create it?
- a more friendly error: '.env expected; read more at ...'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the sequence with `d2s init` and `d2s config`, then inspect `d2s/__main__.py` and `d2s/utils.py`, especially `get_config()` and the `.env` read. Clarify whether `d2s init` should create `.env` or `d2s config` should report a friendlier message; done means the command no longer exposes the raw FileNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.