Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid config - permission denied #272

Open
webgtx opened this issue Jun 28, 2024 · 3 comments
Open

invalid config - permission denied #272

webgtx opened this issue Jun 28, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@webgtx
Copy link

webgtx commented Jun 28, 2024

Describe the bug
Configuration from the readme does not work with the ticker.

To Reproduce
Steps to reproduce the behavior:

  1. Build ticker
  2. Copy config from the readme to ~/.ticker.yaml
  3. Run ticker --config ~/.ticker.yaml
  4. See following error invalid config: yaml: line 2: mapping values are not allowed in this context

Expected behavior
Anything but error

Environment (please complete the following information):

  • OS: Fedora release 40 (Forty)
  • Terminal: foot version: 1.17.2 -pgo +ime +graphemes -assertions
  • ticker Version: ticker version v0.0.0 (I built it on latest git commit)

Configuration that I'm using
The place where I get it from: https://github.com/achannarasappa/ticker#configuration

i# ~/.ticker.yaml
show-summary: true
show-tags: true
show-fundamentals: true
show-separator: true
show-holdings: true
interval: 5
currency: USD
currency-summary-only: false
watchlist:
  - NET
  - TEAM
  - ESTC
  - BTC-USD # Bitcoin price via Yahoo
  - SOL.X # Solana price via CoinGecko
  - SAMOYEDCOIN.CG # Samoyed price via CoinGecko
  - CARDANO.CC # Samoyed price via CoinCap
lots:
  - symbol: "ABNB"
    quantity: 35.0
    unit_cost: 146.00
  - symbol: "ARKW"
    quantity: 20.0
    unit_cost: 152.25
  - symbol: "ARKW"
    quantity: 20.0
    unit_cost: 145.35
    fixed_cost: 7.00 # e.g. brokerage commission fee
groups:
  - name: crypto
    watchlist:
      - SHIB-USD
      - VGX-USD
    holdings:
      - symbol: SOL1-USD
        quantity: 17
        unit_cost: 159.10
@webgtx webgtx added the bug Something isn't working label Jun 28, 2024
@webgtx
Copy link
Author

webgtx commented Jun 28, 2024

The configuration I used had a typo. Please ignore this issue, thank you.

@webgtx webgtx closed this as completed Jun 28, 2024
@jeremy-rutman
Copy link

jeremy-rutman commented Nov 12, 2024

I'm getting invalid config - permission denied for the same (no typo) yaml file, and for which I gave all permissions:

jr@jr-Legion-7-16IAX7:~$ ticker --config ~/.ticker.yaml
Error: invalid config: open /home/jr/.ticker.yaml: permission denied
jr@jr-Legion-7-16IAX7:~$ ls -l .ticker.yaml 
-rwxrwxrwx 1 jr jr 776 Nov 12 12:10 .ticker.yaml

@xrewati
Copy link

xrewati commented Dec 5, 2024

Same issue as above

@webgtx webgtx reopened this Jan 6, 2025
@webgtx webgtx changed the title Configuration from the readme does not work with the ticker. invalid config - permission denied Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants