what-to-eat icon indicating copy to clipboard operation
what-to-eat copied to clipboard

[BUG] Directory .what-to-eat is not created when running "configure" on a clean installation

Open Realiserad opened this issue 11 months ago • 2 comments

Describe the bug

Very nice little program! But I found a small issue setting it up.

My environment is Ubuntu 22.04.4 and fish 3.7.0.

To Reproduce

This is what I did:

  1. Install using pip
pip3 install what-to-eat
  1. Install completions for fish (this works)
what-to-eat --install-completion
  1. Trying to create a profile
> what-to-eat configure
[?] What do you want to do?: 
 > Create new configuration
   Add profile
   List profiles
   Edit profile
   Set profile as default
   Remove profile

[?] Profile name: Default
[?] Your address: Stockholm
💥 Unexpected error: [Errno 2] No such file or directory: 
'/home/bastian/.what-to-eat/.what-to-eat-cache.json'

Expected behavior

The directory $HOME/.what-to-eat should be created if it does not exist.

Screenshots

image

Realiserad avatar Mar 01 '24 17:03 Realiserad