Installation of beatport plugin with dependencies

51 views
Skip to first unread message

Enrico

unread,
Oct 2, 2018, 2:44:15 AM10/2/18
to beets
Hey I recently discovered the beatport plugin while reading through the beets docs. I'm churning though quite a lot of obscure electronic music recently so this plugin would be perfect. I've since tried every iteration I can think of to get it running but with no luck yet. I have beatport listed in the plugins part of my config file and I've run the command pip install requests requests_oauthlib to install the two dependencies with the following output:

root@server:/mnt/user/appdata/beets/plugins# pip install requests requests_oauthlib
Collecting requests
    100% |████████████████████████████████| 92kB 3.5MB/s 
Collecting requests_oauthlib
Collecting chardet<3.1.0,>=3.0.2 (from requests)
    100% |████████████████████████████████| 143kB 5.5MB/s 
Collecting urllib3<1.24,>=1.21.1 (from requests)
    100% |████████████████████████████████| 143kB 5.8MB/s 
Collecting certifi>=2017.4.17 (from requests)
    100% |████████████████████████████████| 153kB 9.7MB/s 
Collecting idna<2.8,>=2.5 (from requests)
    100% |████████████████████████████████| 61kB 8.4MB/s 
Collecting oauthlib>=0.6.2 (from requests_oauthlib)
    100% |████████████████████████████████| 122kB 7.2MB/s 
Installing collected packages: chardet, urllib3, certifi, idna, requests, oauthlib, requests-oauthlib
Successfully installed certifi-2018.8.24 chardet-3.0.4 idna-2.7 oauthlib-2.1.0 requests-2.19.1 requests-oauthlib-1.0.0 urllib3-1.23
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

However unfortunately when running an import I get the following error:

root@server:/# docker exec -ti beets beet import /downloads
** error loading plugin beatport:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/beets/plugins.py", line 270, in load_plugins
    namespace = __import__(modname, None, None)
  File "/usr/lib/python2.7/site-packages/beetsplug/beatport.py", line 25, in <module>
    from requests_oauthlib import OAuth1Session
ImportError: No module named requests_oauthlib

I'm assuming this has something to do with where the plugin files are located? Any help/advice would be fantastic, thanks.

Adrian Sampson

unread,
Oct 2, 2018, 7:26:50 AM10/2/18
to beets...@googlegroups.com
Any chance your `pip` is from a different Python installation from where beets is installed? I notice beets is coming from a 2.7 installation; could `pip` be installing stuff for a Python 3 installation? (If so, I recommend moving everything to Python 3!)

Adrian
--
You received this message because you are subscribed to the Google Groups "beets" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beets-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robbie Sands

unread,
Oct 2, 2018, 7:09:10 PM10/2/18
to beets...@googlegroups.com
That's entirely possible. I installed python (python3-3.6.2b-x86_64-1) and pip (pip-10.0.1-x86_64-1) to install requests & requests_oauthlib. I'm running beets in a container (linuxserver - https://hub.docker.com/r/linuxserver/beets/) so should I re-run the installation using Python 2.7? Does install location matter?

Adrian Sampson

unread,
Oct 2, 2018, 8:26:34 PM10/2/18
to beets...@googlegroups.com
I recommend using pip to install beets too.




Adrian

Robbie Sands

unread,
Oct 2, 2018, 8:32:33 PM10/2/18
to beets...@googlegroups.com
Thanks very much for your reply, I'd like to continue using the beets container so I'll ask over at the Linuxserver forums to see if there's a way to add the plugins.
Reply all
Reply to author
Forward
0 new messages