I recommend using pip to install beets too.



Adrian
> On Oct 2, 2018, at 7:08 PM, Robbie Sands <[email protected]> wrote:
> 
> 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?
> 
>> On Tue, 2 Oct 2018 at 20:26, Adrian Sampson <[email protected]> wrote:
>> 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
>> 
>> 
>>> On Oct 2, 2018, at 2:44 AM, Enrico <[email protected]> wrote:
>>> 
>>> 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
>>>   Downloading 
>>> https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl
>>>  (91kB)
>>>     100% |████████████████████████████████| 92kB 3.5MB/s 
>>> Collecting requests_oauthlib
>>>   Downloading 
>>> https://files.pythonhosted.org/packages/94/e7/c250d122992e1561690d9c0f7856dadb79d61fd4bdd0e598087dce607f6c/requests_oauthlib-1.0.0-py2.py3-none-any.whl
>>> Collecting chardet<3.1.0,>=3.0.2 (from requests)
>>>   Downloading 
>>> https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
>>>  (133kB)
>>>     100% |████████████████████████████████| 143kB 5.5MB/s 
>>> Collecting urllib3<1.24,>=1.21.1 (from requests)
>>>   Downloading 
>>> https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl
>>>  (133kB)
>>>     100% |████████████████████████████████| 143kB 5.8MB/s 
>>> Collecting certifi>=2017.4.17 (from requests)
>>>   Downloading 
>>> https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl
>>>  (147kB)
>>>     100% |████████████████████████████████| 153kB 9.7MB/s 
>>> Collecting idna<2.8,>=2.5 (from requests)
>>>   Downloading 
>>> https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
>>>  (58kB)
>>>     100% |████████████████████████████████| 61kB 8.4MB/s 
>>> Collecting oauthlib>=0.6.2 (from requests_oauthlib)
>>>   Downloading 
>>> https://files.pythonhosted.org/packages/e6/d1/ddd9cfea3e736399b97ded5c2dd62d1322adef4a72d816f1ed1049d6a179/oauthlib-2.1.0-py2.py3-none-any.whl
>>>  (121kB)
>>>     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.
>>> 
>>> -- 
>>> 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 [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>> 
>> -- 
>> 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 [email protected].
>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to