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

Config files path issues #4

Open
JOJ0 opened this issue Jan 25, 2025 · 0 comments
Open

Config files path issues #4

JOJ0 opened this issue Jan 25, 2025 · 0 comments

Comments

@JOJ0
Copy link

JOJ0 commented Jan 25, 2025

Hi, just a tiny issue report. Maybe the ~ character is not resolved in the config?

  File "/home/jojo/.pyenv/versions/beets/bin/beet", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/jojo/git/beets/beets/ui/__init__.py", line 1870, in main
    _raw_main(args)
  File "/home/jojo/git/beets/beets/ui/__init__.py", line 1849, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/home/jojo/.pyenv/versions/3.11.3/envs/beets/lib/python3.11/site-packages/beetsplug/autogenre/__init__.py", line 158, in _run_autogenre_cmd
    genre, genres, source = self._item_genre(item, all, force, opts.genre)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jojo/.pyenv/versions/3.11.3/envs/beets/lib/python3.11/site-packages/beetsplug/autogenre/__init__.py", line 187, in _item_genre
    genres, source = self._item_genres(item, all, force, force_genre)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jojo/.pyenv/versions/3.11.3/envs/beets/lib/python3.11/site-packages/beetsplug/autogenre/__init__.py", line 217, in _item_genres
    genre, matched = self._fix_remix_genre(item, genre)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jojo/.pyenv/versions/3.11.3/envs/beets/lib/python3.11/site-packages/beetsplug/autogenre/__init__.py", line 256, in _fix_remix_genre
    matched = self._genres().match(title)
              ^^^^^^^^^^^^^^
  File "/home/jojo/.pyenv/versions/3.11.3/envs/beets/lib/python3.11/site-packages/beetsplug/autogenre/__init__.py", line 324, in _genres
    with open(genre_wh_file, 'r') as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '~/git/home_config/lastgenre_conf/genres.txt'

and here is another, even though esoteric, since disabling canonical does not make sense with this plugin. when canonical: no I get this:

  File "/home/jojo/.pyenv/versions/beets/bin/beet", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/jojo/git/beets/beets/ui/__init__.py", line 1870, in main
    _raw_main(args)
  File "/home/jojo/git/beets/beets/ui/__init__.py", line 1849, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/home/jojo/.pyenv/versions/3.11.3/envs/beets/lib/python3.11/site-packages/beetsplug/autogenre/__init__.py", line 158, in _run_autogenre_cmd
    genre, genres, source = self._item_genre(item, all, force, opts.genre)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jojo/.pyenv/versions/3.11.3/envs/beets/lib/python3.11/site-packages/beetsplug/autogenre/__init__.py", line 187, in _item_genre
    genres, source = self._item_genres(item, all, force, force_genre)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jojo/.pyenv/versions/3.11.3/envs/beets/lib/python3.11/site-packages/beetsplug/autogenre/__init__.py", line 217, in _item_genres
    genre, matched = self._fix_remix_genre(item, genre)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jojo/.pyenv/versions/3.11.3/envs/beets/lib/python3.11/site-packages/beetsplug/autogenre/__init__.py", line 256, in _fix_remix_genre
    matched = self._genres().match(title)
              ^^^^^^^^^^^^^^
  File "/home/jojo/.pyenv/versions/3.11.3/envs/beets/lib/python3.11/site-packages/beetsplug/autogenre/__init__.py", line 326, in _genres
    with codecs.open(genre_tree_file, 'r', encoding='utf-8') as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen codecs>", line 906, in open
FileNotFoundError: [Errno 2] No such file or directory: '/home/jojo/.pyenv/versions/3.11.3/envs/beets/lib/python3.11/site-packages/beetsplug/autogenre/../lastgenre/genres-tree.yaml'
@JOJ0 JOJ0 changed the title Probably tilde is not understood? Config files path issues Jan 25, 2025
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

No branches or pull requests

1 participant