discogs / discogs_client

DEPRECATED - Official Python Client for the Discogs API
http://www.discogs.com/developers
Other
480 stars 132 forks source link

Client' object has no attribute 'Release' #84

Closed jkemege closed 7 years ago

jkemege commented 7 years ago

why am I getting this error?

c:\discogs\tl_out.py(12)() -> release = ds.Release(380484) (Pdb) n AttributeError: "'Client' object has no attribute 'Release'"

with this Python code: import discogs_client as discogs discogs.user_agent = 'jkkGetTrackLists/0.1' ds = discogs.Client(discogs.user_agent, user_token="UyRNtkkPucDKrtMluzIRAvNoWzHjsLLRtfYvsKeG") release = ds.Release(380484) print(release.title) for item in release.tracklist: print(item)

Keven

jkemege commented 7 years ago

Plus when I change the offending line to discogs_client(because that's where Release is at), I get this error with regard to init arguments....:

c:\discogs\tl_out.py(12)() -> release = discogs.Release(380484) (Pdb) n TypeError: 'init() takes exactly 3 arguments (2 given)'

not sure what to do to fix this condition??

rodneykeeling commented 7 years ago

Hi Keven,

You'll need to change this: release = ds.Release(380484) to this: release = ds.release(380484)

Cheers, Rodney

jkemege commented 7 years ago

All is ok now... I copied this code from somewhere and thought it was good R to r worked... I thought it was something to do with the discogs_client install... Much thanks!

Keven

---- Rodney Keeling notifications@github.com wrote:

Hi Keven,

You'll need to change this: release = ds.Release(380484) to this: release = ds.release(380484)

Cheers, Rodney

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/discogs/discogs_client/issues/84#issuecomment-330657513