Closed thedevilisinthedetails closed 8 years ago
Do you think you could fill in the necessary sections of the issue? More specifically the beet config
section, as it looks like it's related to your discogs token.
sorry, updated.
i have my discogs_token.json in my config file
Take a look at #1949, primarily #1949 (comment).
Works but i get this error before the candidates appears
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/beets/plugins.py", line 255, in load_plugins
namespace = __import__(modname, None, None)
File "/Library/Python/2.7/site-packages/beetsplug/fetchart.py", line 26, in <module>
import requests
ImportError: No module named requests
** error loading plugin lyrics:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/beets/plugins.py", line 255, in load_plugins
namespace = __import__(modname, None, None)
File "/Library/Python/2.7/site-packages/beetsplug/lyrics.py", line 23, in <module>
import requests
ImportError: No module named requests
** error loading plugin discogs:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/beets/plugins.py", line 255, in load_plugins
namespace = __import__(modname, None, None)
File "/Library/Python/2.7/site-packages/beetsplug/discogs.py", line 28, in <module>
from discogs_client import Release, Client
ImportError: No module named discogs_client
Take a look at #1949 (comment).
You'll want to run this to install all of the dependencies:
pip install -U beets[fetchart,discogs,import]
did that now I'm getting
Traceback (most recent call last):
File "/usr/local/bin/beet", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2793, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 673, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 576, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: musicbrainzngs>=0.4
i try to update musicbrainzngs but i guess I'm already updated
Hmm, there is something weird going on with your system. I'm on OS X 10.11.4 and I can just install beets from scratch fine with pip install beets
.
What's the output from pip install -U musicbrainzngs
?
I agree.
Requirement already up-to-date: musicbrainzngs in /usr/local/lib/python2.7/site-packages
Oh dear, it seems you're using python
from OS X and pip
from brew
! That sounds like a right mess π.
Could you run these and provide the output?
which python
which pip
brew list
ah can't recall when and why i would install brew on this machine. but seems you're right:
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
/usr/local/bin/pip
gdbm openssl pkg-config python readline sqlite
Interesting how python
is already installed via brew, yet your shell is still pulling it from /Library/Frameworks
. Could you try this?
brew link python
And if that fails saying it is already linked, try this:
brew unlink python && brew link python
And finally re-run the commands from my previous comment.
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
/usr/local/bin/pip
gdbm openssl pkg-config python readline sqlite
Try this:
echo $PATH
It seems that the python for brew is not being added to your PATH
.
/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
That's very odd! Have you added the python framework to your PATH yourself? What are the contents of your .bashrc
in your home folder?
. not that i recall. I don't have that file bash file
Could you run this command in your home directory?
ls -d .[!.]*
.CFUserTextEncoding .Trash .bash_profile .distlib .oracle_jre_usage .ssh .DS_Store .adobe .config .dropbox .pia_manager .viminfo .SoulseekQt .bash_history .cups .lyrics .pia_manager_crash.log
What are the contents of your .bash_profile
? I suspect it contains a line adding the OS X python binaries to your PATH
.
yup, PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
Just comment that line out by adding #
to the start. Not entirely sure why it was there in the first place!
done. should this actually use my default python on my OS X?
I'd say it's better to use the brew
one, The Hitchhiker's Guide to Python puts it well:
The latest version of Mac OS X, El Capitan, comes with Python 2.7 out of the box.
You do not need to install or configure anything else to use Python. Having said that, I would strongly recommend that you install the tools and libraries described in the next section before you start building Python applications for real-world use.
...
The version of Python that ships with OS X is great for learning but itβs not good for development. The version shipped with OS X may be out of date from the official current Python release, which is considered the stable production version.
k. so now i get this for which python.
/usr/local/bin/python
/usr/local/bin/pip
gdbm openssl pkg-config python readline sqlite
tried to update musicbrainzngs and i still get the error
Try uninstalling it with pip uninstall musicbrainzngs
and then reinstalling it.
May need @sampsyo on this one because I'm running out of ideas π.
Did and same issue:
Traceback (most recent call last): File "/usr/local/bin/beet", line 5, in <module> from pkg_resources import load_entry_point File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2793, in <module> working_set.require(__requires__) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 673, in require needed = self.resolve(parse_requirements(requirements)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 576, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: musicbrainzngs>=0.4
Thanks a ton for your help though, really appreciate it:). Guess will wait for @sampsyo to comment.
It's still using the wrong python! Have you closed and reopened your terminal?
yup.
Very strange, what's the output of echo $PATH
now?
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
Well now I have no idea! Final possibility, uninstall beets completely and reinstall.
pip uninstall beets
pip install beets
For some reason it looks like /usr/local/bin/beet
is pulling in the /System/Library/Frameworks/Python.framework/Versions/2.7
version of Python instead of the brew
one located in /usr/local
, crazy! Hoping reinstalling will set it straight.
works! thanks so much for your troubles!!
Success! I'll close up this issue π.
Problem
Trying to import returns traceback error (beet imp -t "{albumFile}")
Running this command in verbose (
-vv
) mode:Led to this problem:
Here's a link to the music files that trigger the bug (if relevant):
Setup
My configuration (output of
beet config
) is: