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

issue moving from hyfetch-extra-legal-git to hyfetch #332

Closed
1 task done
Ryder17z opened this issue Aug 1, 2024 · 2 comments · Fixed by #342
Closed
1 task done

issue moving from hyfetch-extra-legal-git to hyfetch #332

Ryder17z opened this issue Aug 1, 2024 · 2 comments · Fixed by #342

Comments

@Ryder17z
Copy link

Ryder17z commented Aug 1, 2024

Describe the bug

Since there is broken versioning on hyfetch-extra-legal-git I have tried to switch to the main "branch", but it doesn't run as expected.

Traceback (most recent call last):
  File "/usr/bin/hyfetch", line 33, in <module>
    sys.exit(load_entry_point('HyFetch==1.4.11', 'console_scripts', 'hyfetch')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/hyfetch/main.py", line 420, in run
    preset = preset.set_light_dl(config.lightness or GLOBAL_CFG.default_lightness())
             ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'set_light_dl'
  • Does this issue still occur in the master branch? (Required)

Expected behavior

Run normally and output according to the config file.

Screenshots

output of the alternative version

Config file

Please paste the content of ~/.config/hyfetch.json below:

{
    "preset": "polyam",
    "mode": "rgb",
    "light_dark": "dark",
    "lightness": 0.5,
    "color_align": {
        "mode": "vertical",
        "custom_colors": [],
        "fore_back": []
    },
    "backend": "neofetch",
    "args": null,
    "distro": null,
    "pride_month_shown": [],
    "pride_month_disable": false
}

Additional context

N/A

@luna-1024
Copy link
Contributor

Your error is happening because the configured polyamorous flag (under preset in your config) is not yet available in hyfetch. There is an open PR to upstream those new flags #295. It seems the PR may have stalled, but it definitely would be good to get those flags in the project.

@Ryder17z
Copy link
Author

Ryder17z commented Aug 3, 2024

it's unfortunate that there is no fallback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants