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

Enter key stops working, replaced by ^M #20

Open
Gwouigwoui opened this issue Sep 10, 2024 · 0 comments
Open

Enter key stops working, replaced by ^M #20

Gwouigwoui opened this issue Sep 10, 2024 · 0 comments

Comments

@Gwouigwoui
Copy link

Gwouigwoui commented Sep 10, 2024

Problem

When I run beet import (haven't tried with another command), after the Enter key working as expected in the menus for a few occurrences (between one and four, approximately), the output for using the key turns to ^M, preventing any further use of beets and forcing me to quit with Ctrl+C.

If I run again beet import, the issue persists. However, if I run stty icrnl first it works again, until it stops working again. Checking with stty -a shows that indeed stty gets reverted to -icrnl.

After further testing, importing with all the plugins on except bpmanalyser works without any issue. Then running bpmanalyser on the newly imported files also turns stty back to -icrnl.

Setup

  • OS: Ubuntu 22.04 using WSL (Windows 11)
  • Python version: 3.10.12
  • beets version: 2.0.0
  • Turning off plugins made problem go away (yes/no): yes (no plugin=no issue, bpmanalyser=problem appears)

My configuration (output of beet config) is:

    bing_lang_from: []
    auto: yes
    bing_client_secret: REDACTED
    bing_lang_to:
    google_API_key: REDACTED
    google_engine_ID: REDACTED
    genius_api_key: REDACTED
    fallback:
    force: no
    local: no
    synced: no
    sources:
    - google
    - genius
    - tekstowo
    - lrclib
    dist_thresh: 0.1
directory: /mnt/music
# --------------- Main ---------------

library: /mnt/music/musiclibrary.blb

# --------------- Tagging ---------------

per_disc_numbering: yes

# --------------- Performance ---------------

threaded: yes
original_date: no

import:
    write: yes
    copy: no
    move: no
    resume: ask
    incremental: yes

# --------------- Plugins ---------------

plugins:
- discogs
- fromfilename
- fetchart
- edit
- extrafiles
- embedart
- ftintitle
- lastimport
- lyrics
- inline
- badfiles
- plexupdate
- duplicates
- missing
- artistcountry
- autogenre
- lastgenre
- xtractor
- plexsync
- summarize
- chroma
plex:
    host: 192.168.2.10
    port: 32400
    token: REDACTED
    library_name: Musique
    secure: no
    ignore_cert_errors: no
openai:
    api_key: REDACTED
    model: gpt-3.5-turbo
google:
    model: gemini-pro
    api_key: REDACTED
    service_json: ~/beets.json
ftintitle:
    auto: yes
    format: (feat. {0})
    drop: no
missing:
    format: $albumartist - $album - $title
    count: yes
    total: no
    album: no
chroma:
    auto: yes
bpmanalyser:
    auto: yes
    dry-run: no
    write: yes
    threads: AUTO
    force: no
    quiet: no
acoustid:
    apikey: REDACTED
badfiles:
    check_on_import: yes
    commands:
        ogg: myoggchecker --opt1 --opt2
        flac: flac --test --warnings-as-errors --silent
        m4a: ffprobe -v error
fetchart:
    auto: yes
    minwidth: 500
    maxwidth: 0
    quality: 0
    max_filesize: 0
    enforce_ratio: no
    cautious: no
    cover_names:
    - cover
    - front
    - art
    - album
    - folder
    sources:
    - filesystem
    - coverart
    - itunes
    - amazon
    - albumart
    - cover_art_url
    store_source: no
    high_resolution: no
    deinterlace: no
    cover_format:
    google_key: REDACTED
    google_engine: 001442825323518660753:hrh5ch1gjzm
    fanarttv_key: REDACTED
    lastfm_key: REDACTED
extrafiles:
    patterns: {}
    paths: {}
duplicates:
    album: no
    checksum: ''
    copy: ''
    count: no
    delete: no
    format: ''
    full: no
    keys: []
    merge: no
    move: ''
    path: no
    tiebreak: {}
    strict: no
    tag: ''
discogs:
    apikey: REDACTED
    apisecret: REDACTED
    tokenfile: discogs_token.json
    source_weight: 0.5
    user_token: REDACTED
    separator: ', '
    index_tracks: no
    append_style_genre: no
pathfields: {}
item_fields: {}
album_fields: {}
lastgenre:
    whitelist: yes
    min_weight: 10
    count: 1
    fallback:
    canonical: no
    source: album
    force: yes
    auto: yes
    separator: ', '
    prefer_specific: no
    title_case: yes
embedart:
    maxwidth: 0
    auto: yes
    compare_threshold: 0
    ifempty: no
    remove_art_file: no
    quality: 0
xtractor:
    auto: no
    dry-run: no
    write: yes
    threads: 1
    force: no
    quiet: no
    keep_output: no
    keep_profiles: no
    low_level_targets:
        bpm:
            path: rhythm.bpm
            type: integer
            required: yes
        danceability:
            path: rhythm.danceability
            type: float
        beats_count:
            path: rhythm.beats_count
            type: integer
        average_loudness:
            path: lowlevel.average_loudness
            type: float
            required: yes
    high_level_targets:
        danceable:
            path: highlevel.danceability.all.danceable
            type: float
            required: yes
        gender:
            path: highlevel.gender.value
            type: string
            required: yes
        is_male:
            path: highlevel.gender.all.male
            type: float
        is_female:
            path: highlevel.gender.all.female
            type: float
        genre_rosamerica:
            path: highlevel.genre_rosamerica.value
            type: string
            required: yes
        voice_instrumental:
            path: highlevel.voice_instrumental.value
            type: string
            required: yes
        is_voice:
            path: highlevel.voice_instrumental.all.voice
            type: float
        is_instrumental:
            path: highlevel.voice_instrumental.all.instrumental
            type: float
        mood_acoustic:
            path: highlevel.mood_acoustic.all.acoustic
            type: float
            required: yes
        mood_aggressive:
            path: highlevel.mood_aggressive.all.aggressive
            type: float
            required: yes
        mood_electronic:
            path: highlevel.mood_electronic.all.electronic
            type: float
            required: yes
        mood_happy:
            path: highlevel.mood_happy.all.happy
            type: float
            required: yes
        mood_sad:
            path: highlevel.mood_sad.all.sad
            type: float
            required: yes
        mood_party:
            path: highlevel.mood_party.all.party
            type: float
            required: yes
        mood_relaxed:
            path: highlevel.mood_relaxed.all.relaxed
            type: float
            required: yes
        mood_mirex:
            path: highlevel.moods_mirex.value
            type: string
            required: yes
        mood_mirex_cluster_1:
            path: highlevel.moods_mirex.all.Cluster1
            type: float
        mood_mirex_cluster_2:
            path: highlevel.moods_mirex.all.Cluster2
            type: float
        mood_mirex_cluster_3:
            path: highlevel.moods_mirex.all.Cluster3
            type: float
        mood_mirex_cluster_4:
            path: highlevel.moods_mirex.all.Cluster4
            type: float
        mood_mirex_cluster_5:
            path: highlevel.moods_mirex.all.Cluster5
            type: float
    essentia_extractor: /your/path/to/streaming_extractor_music
    extractor_profile:
        outputFormat: json
        outputFrames: 0
        lowlevel:
            frameSize: 2048
            hopSize: 1024
        highlevel:
            compute: 1
            svm_models: [/your/path/to/svm_model.history]
        chromaprint:
            compute: 0
autogenre:
    auto: no
    pretend: no
    all: no
    force: no
    lastgenre: yes
    xtractor: yes
    from_title: yes
    parent_genres: yes
    genre_rosamerica_strong: 0.8
    genre_electronic_strong: 0.8
    genre_electronic_prepend: 0.5
    genre_electronic_append: 0.45
edit:
    albumfields: album albumartist
    itemfields: track title artist album
    ignore_fields: id path
plexsync:
    tokenfile: spotify_plexsync.json
    manual_search: no
lastfm:
    user: ''
    api_key: REDACTED
lastimport:
    per_page: 500
    retry_limit: 3

My plugin version (output of beet bpmanalyser -v) is:

(bpmanalyser: Bpm Analyser(beets-bpmanalyser) plugin for Beets: v1.5.9
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