Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin doesn't start due to exceptions.AttributeError: CookieJar instance has no attribute 'copy' #34

Closed
ronajon opened this issue Mar 22, 2014 · 8 comments

Comments

@ronajon
Copy link

ronajon commented Mar 22, 2014

since a couple of days i can't browse Google Music anymore.
in the server.log this message appears

[14-03-22 19:53:43.4525] Slim::Utils::PluginManager::load (348) Warning: Couldn't call Plugins::GoogleMusic::Plugin->initPlugin: exceptions.AttributeError: CookieJar instance has no attribute 'copy' at line 106

@hechtus
Copy link
Owner

hechtus commented Mar 23, 2014

I must admit that I've never seen this error. A bit of googling tells that this is probably Python related. A first thing would be to update gmusicapi to the developer version:

sudo pip install git+https://github.com/simon-weber/Unofficial-Google-Music-API.git@develop

You could also try to update the Perl Inline and Inline::Python module:

sudo cpan App::cpanminus
sudo cpanm --notest Inline
sudo cpanm --notest Inline::Python

Does this help?

@hechtus hechtus changed the title plugin won't start Plugin doesn't start due to exception "AttributeError: CookieJar instance has no attribute 'copy'" Mar 23, 2014
@hechtus hechtus changed the title Plugin doesn't start due to exception "AttributeError: CookieJar instance has no attribute 'copy'" Plugin doesn't start due to exceptions.AttributeError: CookieJar instance has no attribute 'copy' Mar 23, 2014
@ronajon
Copy link
Author

ronajon commented Mar 23, 2014

updated the gmusicapi and executed the perl commands.
both did not work.

i just reinstalled logitechmediaserver, added the google music plugin, but still the same error

@ronajon
Copy link
Author

ronajon commented Mar 23, 2014

also tried updating all perl modules, didn't resolve the issue either

@hechtus
Copy link
Owner

hechtus commented Mar 24, 2014

I have no clue. Do you have any idea what has changed when the error occurred? What kind of system do you have? What are the LMS and Google Music Plugin versions?

@simon-weber Do you have an idea what the exception below is all about?

AttributeError: CookieJar instance has no attribute 'copy' at line 106

@simon-weber
Copy link

I don't think I ever try to copy a cookiejar. My bet would be that this is a bug in requests.

@ronajon can you show us the output of pip freeze? You might also try just installing requests 2.1.0 explicitly; that's the last known-good version (simon-weber/gmusicapi#217).

@ronajon
Copy link
Author

ronajon commented Mar 24, 2014

i had requests 1.2.0, and after upgrading to 2.2.1 the problem is solved!
thanks @hechtus & @simon-weber

for the record, here's my old pip freeze

Cheetah==2.4.4
Genshi==0.6
GnuPGInterface==0.3.2
Jinja2==2.7.2
Landscape-Client==13.07.3
MarkupSafe==0.19
MySQL-python==1.2.3
PAM==0.4.2
PyYAML==3.10
Twisted-Core==11.1.0
apparmor==2.7.102
appdirs==1.2.0
apt-xapian-index==0.44
argparse==1.2.1
binaryornot==0.2.0
chardet==2.0.1
command-not-found==0.2.44
cookiecutter==0.7.0
decorator==3.3.2
distribute==0.7.3
eyeD3==0.6.17
gmusicapi==3.1.1-dev
google-api-python-client==1.2
httplib2==0.8
keyring==0.9.2
language-selector==0.1
launchpadlib==1.9.12
lazr.restfulclient==0.12.0
lazr.uri==1.0.3
mercurial==2.0.2
mock==1.0.1
mod-python==3.3.1
mutagen==1.21
oauth==1.0.1
oauth2client==1.1
pager==3.3
pexpect==2.3
proboscis==1.2.5.3
protobuf==2.4.1
pyOpenSSL==0.12
pycrypto==2.4.1
pycurl==7.19.0
pyserial==2.5
python-apt==0.8.3ubuntu7.2
python-dateutil==2.1
python-debian==0.1.21ubuntu1
python-gflags==2.0
requests==1.2.0
simplejson==2.3.2
six==1.4.1
smart==1.4
ufw==0.31.1-1
unattended-upgrades==0.1
validictory==0.9.0
wadllib==1.3.0
wsgi-intercept==0.4
wsgiref==0.1.2
wxPython==2.8.12.1
wxPython-common==2.8.12.1
zope.interface==3.6.1

@simon-weber
Copy link

Glad it works! I'll make a note to test on requests 1.2.0 -- if it always breaks, I can blacklist it.

@hechtus
Copy link
Owner

hechtus commented Mar 25, 2014

@simon-weber Thanks for your help!

@ronajon Great that it works now and thank you for reporting this issue. I suspect it's closed now ...

@hechtus hechtus closed this as completed Mar 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants