# Python3-discogs-client version should be \>= 2.3.15

**URL:** <https://discourse.beets.io/t/python3-discogs-client-version-should-be-2-3-15/2655>\
**Category:** Help\
**Created:** [September 30, 2024, 7:30am UTC](https://discourse.beets.io/t/python3-discogs-client-version-should-be-2-3-15/2655 "2024-09-30T07:30:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![clmbmb](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/clmbmb/32/289_2.png) [@clmbmb](https://discourse.beets.io/u/clmbmb)\
**Post date:** [September 30, 2024, 7:30am UTC](https://discourse.beets.io/t/python3-discogs-client-version-should-be-2-3-15/2655/1 "2024-09-30T07:30:06Z")

</div>

I’ve had some issues lately with beets reporting python3-discogs-client version. In my case, I’m at version 2.7 and as can be seen in the title, it complains about needing version \>=2.3.15.

Here’s a list of all my python packages inside the beets virtual env:

```shell
> pip list
Package Version
---------------------- -----------
beets 2.0.0
beets-extrafiles 0.0.7
certifi 2024.8.30
charset-normalizer 3.3.2
confuse 2.0.1
discogs-client 2.3.0
idna 3.10
jellyfish 1.1.0
mediafile 0.12.0
munkres 1.1.4
musicbrainzngs 0.7.1
mutagen 1.47.0
oauthlib 3.2.2
pip 24.2
python-dateutil 2.9.0.post0
python3-discogs-client 2.7
PyYAML 6.0.2
requests 2.32.3
setuptools 75.1.0
six 1.16.0
typing_extensions 4.12.2
Unidecode 1.3.8
urllib3 2.2.3
wheel 0.44.0

```

Any tips?

---

<div class="post-metadata">

**Author:** ![jackwilsdon](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/jackwilsdon/32/10_2.png) [@jackwilsdon](https://discourse.beets.io/u/jackwilsdon)\
**Post date:** [September 30, 2024, 10:09am UTC](https://discourse.beets.io/t/python3-discogs-client-version-should-be-2-3-15/2655/2 "2024-09-30T10:09:28Z")

</div>

This looks to be because you’ve got `discogs-client` version 2.3.0 installed as well as `python3-discogs-client` (and for some reason beets is using the former). We probably need something in beets to handle this and show a warning if both are installed, as beets only depends on `python3-discogs-client` now that Python 2 support has been dropped.

---

<div class="post-metadata">

**Author:** ![clmbmb](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/clmbmb/32/289_2.png) [@clmbmb](https://discourse.beets.io/u/clmbmb)\
**Post date:** [September 30, 2024, 10:30am UTC](https://discourse.beets.io/t/python3-discogs-client-version-should-be-2-3-15/2655/3 "2024-09-30T10:30:41Z")

</div>

OK, I tested by removing discogs-client module and I get this:

```shell
** error loading plugin discogs:
Traceback (most recent call last):
  File "/home/clmbmb/.pyenv/beets/lib/python3.11/site-packages/beets/plugins.py", line 269, in load_plugins
    namespace = __import__ (modname, None, None)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/clmbmb/.pyenv/beets/lib/python3.11/site-packages/beetsplug/discogs.py", line 29, in <module>
    from discogs_client import Client, Master, Release
ModuleNotFoundError: No module named 'discogs_client'

```

I’m not that experienced with python, but why does it happen? I’m asking becase I created a new venv and installed beets and the other modules from scratch and I don’t get those errors.

---

<div class="post-metadata">

**Author:** ![jackwilsdon](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/jackwilsdon/32/10_2.png) [@jackwilsdon](https://discourse.beets.io/u/jackwilsdon)\
**Post date:** [September 30, 2024, 11:12am UTC](https://discourse.beets.io/t/python3-discogs-client-version-should-be-2-3-15/2655/4 "2024-09-30T11:12:34Z")

</div>

As they both provide the same package, uninstalling one can end up breaking the other (it seems crazy to me that pip allows them to both be installed in the first place). Reinstalling `python3-discogs-client` should fix it:

```auto
$ pip3 install --force-reinstall python3-discogs-client

```

---

<div class="post-metadata">

**Author:** ![clmbmb](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/clmbmb/32/289_2.png) [@clmbmb](https://discourse.beets.io/u/clmbmb)\
**Post date:** [September 30, 2024, 11:13am UTC](https://discourse.beets.io/t/python3-discogs-client-version-should-be-2-3-15/2655/5 "2024-09-30T11:13:59Z")

</div>

Thanks a lot for the explanation.
