# Beet (new) plugin not detected

**URL:** <https://discourse.beets.io/t/beet-new-plugin-not-detected/2118>\
**Category:** Help\
**Created:** [July 16, 2022, 12:10am UTC](https://discourse.beets.io/t/beet-new-plugin-not-detected/2118 "2022-07-16T00:10:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![planetearth](https://avatars.discourse-cdn.com/v4/letter/p/82dd89/32.png) [@planetearth](https://discourse.beets.io/u/planetearth)\
**Post date:** [July 16, 2022, 12:10am UTC](https://discourse.beets.io/t/beet-new-plugin-not-detected/2118/1 "2022-07-16T00:10:27Z")

</div>

I am trying to write a new beets plugin to integrate Plex. Here’s the temporary [repo](https://github.com/arsaboo/beets-plexsync).

Unfortunately, whatever, I do I cannot get the plugin detected. I have installed the plugin using `pip install git+https://github.com/arsaboo/beets-plexsync.git` and I can see the plexsync.py file in `/home/arsaboo/.local/lib/python3.10/site-packages/beetsplug`. Here’s my edited config.yaml

```auto
plugins: plexsync fetchart embedart convert scrub duplicates edit lastimport info
directory: /data/music
library: ~/.config/beets/musiclibrary.blb
art_filename: albumart
threaded: yes
original_date: no
per_disc_numbering: no

convert:
    auto: no
    ffmpeg: /usr/bin/ffmpeg
    opts: -ab 320k -ac 2 -ar 48000
    max_bitrate: 320
    threads: 1

paths:
    default: /data/music/Hindi Music/%left{$album,1}/$album ($year)/$album ($year) - $title
    singleton: /data/music/Non-Album/%left{$album,1}/$album ($year)/$album ($year) - $title
    comp: /data/music/Hindi Music/Compilations/%left{$album,1}/$album ($year)/$album ($year) - $title
    albumtype_soundtrack: /data/music/Hindi Music/%left{$album,1}/$album ($year)/$album ($year) - $title

import:
    write: yes
    copy: no
    move: no
    resume: ask
    incremental: no
    quiet_fallback: skip
    timid: no
    log: ~/.config/beets/beet.log

clutter:
  [
  .DS_Store, # Default.
  Thumbs.DB # Default.
  ]

pluginpath:
    - /home/arsaboo/.local/lib/python3.10/site-packages/beetsplug
    - /home/arsaboo/.config/beets/plugins
lastgenre:
    auto: no
    source: album
    count: 5
    separator: '\\'

embedart:
    auto: yes
    remove_art_file: yes

fetchart:
    auto: yes
    lastfm_key: XYZ
    fanarttv_key : ZYX
    sources:
      - filesystem
      - coverart: release
      - itunes
      - coverart: releasegroup
      - lastfm
      - fanarttv

scrub:
    auto: no

replace:
    '^\.': _
    '[\x00-\x1f]': _
    '[<>:"\?\*\|]': _
    '[\xE8-\xEB]': e
    '[\xEC-\xEF]': i
    '[\xE2-\xE6]': a
    '[\xF2-\xF6]': o
    '[\xF8]': o
    '\.$': _
    '\s+$': ''

web:
    host: 0.0.0.0
    port: 8337

plex:
    host: 192.168.2.212
    port: 32400
    token: TOKEN

lastfm:
    user: arsaboo

discogs:
    source_weight: 1

```

But, `beet -vv` does not detect it:

```auto
arsaboo@ubuntuvm2:~/beets$ ls /home/arsaboo/.local/lib/python3.10/site-packages/beetsplug
importreplace.py __init__.py plexsync.py __pycache__
arsaboo@ubuntuvm2:~/beets$ beet -vv
user configuration: /home/arsaboo/.config/beets/config.yaml
data directory: /home/arsaboo/.config/beets
plugin paths: /home/arsaboo/.local/lib/python3.10/site-packages/beetsplug; /home/arsaboo/.config/beets/plugins
Sending event: pluginload
library database: /home/arsaboo/.config/beets/musiclibrary.blb
library directory: /data/music
Sending event: library_opened
Usage:
  beet COMMAND [ARGS...]
  beet help COMMAND

Options:
  --format-item=FORMAT_ITEM
                        print with custom format
  --format-album=FORMAT_ALBUM
                        print with custom format
  -l LIBRARY, --library=LIBRARY
                        library database file to use
  -d DIRECTORY, --directory=DIRECTORY
                        destination music directory
  -v, --verbose log more details (use twice for even more)
  -c CONFIG, --config=CONFIG
                        path to configuration file
  -p PLUGINS, --plugins=PLUGINS
                        a comma-separated list of plugins to load
  -P EXCLUDE, --disable-plugins=EXCLUDE
                        a comma-separated list of plugins to disable
  -h, --help show this help message and exit

Commands:
  clearart remove images from file metadata
  config show or edit the user configuration
  convert convert to external location
  duplicates (dup) List duplicate tracks or albums.
  edit interactively edit metadata
  embedart embed image files into file metadata
  extractart extract an image from file metadata
  fetchart download album art
  fields show fields available for queries and format strings
  help (?) give detailed help on a specific sub-command
  import (imp, im) import new music
  info show file metadata
  lastimport import last.fm play-count
  list (ls) query the library
  modify (mod) change metadata fields
  move (mv) move or copy items
  remove (rm) remove matching items from the library
  scrub clean audio tags
  spotify build a Spotify playlist
  spotifysync fetch track attributes from Spotify
  stats show statistics about the library or a query
  update (upd, up) update the library
  version output version information
  write write tag information to files
Sending event: cli_exit

```

Any thoughts what am I missing…thanks!

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [July 18, 2022, 2:25pm UTC](https://discourse.beets.io/t/beet-new-plugin-not-detected/2118/2 "2022-07-18T14:25:07Z")

</div>

Hmm; given the lack of errors in the output, can you try `beet version` to see if the plugin has loaded?

It _sort of_ looks like beets isn’t seeing your `plugins:` line in your config, so it might be good to double-check that it’s using the right config file by typing `beet config`.
