Closed feacluster closed 3 years ago
Hey, @feacluster ! That code looks familiar 😄
What client version are you running? What about python version?
I tried with latest (2.3.12) and python 3.9. Also changed seller to "dingoacid" with around 5500 listings as the default one had no listings visible for me. And had no such errors.
Theres was a exponential backoff feature introduced in version 2.3.10 which should prevent these kinds of problems, try upgrading to that or latest if you havent allready.
Thanks for the quick reply! Sorry, I am not sure why the seller rockdonkey is showing no listings now.. Anyways I checked and seems I am using version 2.2.2:
Python 3.6.8 (default, Nov 16 2020, 16:55:22)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import discogs_client
>>> print ( discogs_client.__version__)
2.2.2
I next tried:
pip3 install --upgrade python3-discogs-client --user
But the version still showed 2.2.2:
Python 3.6.8 (default, Nov 16 2020, 16:55:22)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import discogs_client
>>> print ( discogs_client.__version__)
2.2.2
Seems like the discogs_client.__version__
hasnt been updated with the releases. https://github.com/joalla/discogs_client/blob/master/discogs_client/__init__.py
Try command pip show python3-discogs-client
Cool, yes it seems to show latest version using either pip show or pip3 show:
[feacluster@instance-5 feacluster]$ pip show python3-discogs-client
---
Metadata-Version: 1.1
Name: python3-discogs-client
Version: 2.3.5
Summary: Python API client for Discogs
Home-page: https://github.com/joalla/discogs_client
Author: joalla
Author-email: jt@peek-a-boo.at
License: UNKNOWN
Location: /home/feacluster/.local/lib/python2.7/site-packages
Requires: requests, oauthlib
Classifiers:
Development Status :: 5 - Production/Stable
Environment :: Console
License :: OSI Approved :: BSD License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python
Topic :: Communications
Topic :: Utilities
You are using pip version 8.1.2, however version 21.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[feacluster@instance-5 feacluster]$ pip3 show python3-discogs-client
Name: python3-discogs-client
Version: 2.3.12
Summary: Python API client for Discogs
Home-page: https://github.com/joalla/discogs_client
Author: joalla
Author-email: jt@peek-a-boo.at
License: UNKNOWN
Location: /home/feacluster/.local/lib/python3.6/site-packages
Requires: requests, python-dateutil, oauthlib
And it still produces that error? pip show
seems to show version 2.3.5 while pip3 show
is the latest, which command are you using when running the script (pip vs. pip3)?
Just tested again and it seems to be working without any errors now. I am running it with python3 . I guess the python2.7 client is some older installation that I don't use.
I seem to randomnly get this error when searching a seller's inventory of more than a thousand or so albums. Here is the code snippet you can try ( just edit the line with the user_token )