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

DeviantArt Error Keyword "Category" #5976

Closed
Soeroah opened this issue Aug 9, 2024 · 2 comments
Closed

DeviantArt Error Keyword "Category" #5976

Soeroah opened this issue Aug 9, 2024 · 2 comments

Comments

@Soeroah
Copy link

Soeroah commented Aug 9, 2024

Just tried running my usual script that worked mere hours ago and got this error

[deviantart][error] An unexpected error occurred: KeyError - 'category'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .

Ran as requested and got this response

C:\Users\Blank>py -3 -m gallery_dl https://www.deviantart.com/misc/gallery --range 1-30 --verbose
[gallery-dl][debug] Version 1.27.1
[gallery-dl][debug] Python 3.11.4 - Windows-10-10.0.22631-SP0
[gallery-dl][debug] requests 2.32.3 - urllib3 2.0.4
[gallery-dl][debug] Configuration Files ['%APPDATA%\gallery-dl\config.json']
[gallery-dl][debug] Starting DownloadJob for 'https://www.deviantart.com/misc/gallery'
[deviantart][debug] Using DeviantartGalleryExtractor for 'https://www.deviantart.com/misc/gallery'
[deviantart][debug] Using custom API credentials (client-id 19841)
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.deviantart.com:443
[urllib3.connectionpool][debug] https://www.deviantart.com:443 "GET /api/v1/oauth2/user/profile/miscHTTP/1.1" 200 1346
[urllib3.connectionpool][debug] https://www.deviantart.com:443 "GET /api/v1/oauth2/gallery/all?username=misc&offset=0&limit=24&mature_content=true HTTP/1.1" 200 None
[deviantart][debug] Switching to private access token
[urllib3.connectionpool][debug] https://www.deviantart.com:443 "GET /api/v1/oauth2/gallery/all?username=misc&offset=0&limit=24&mature_content=true HTTP/1.1" 200 None
[deviantart][error] An unexpected error occurred: KeyError - 'category'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[deviantart][debug]
Traceback (most recent call last):
File "C:\Users\Blank\AppData\Local\Programs\Python\Python311\Lib\site-packages\gallery_dl\job.py", line 150, in run
for msg in extractor:
File "C:\Users\Blank\AppData\Local\Programs\Python\Python311\Lib\site-packages\gallery_dl\extractor\deviantart.py", line 150, in items
self.prepare(deviation)
File "C:\Users\Blank\AppData\Local\Programs\Python\Python311\Lib\site-packages\gallery_dl\extractor\deviantart.py", line 249, in prepare
deviation["da_category"] = deviation["category"]
~~~~~~~~~^^^^^^^^^^^^
KeyError: 'category'

@Hrxn
Copy link
Contributor

Hrxn commented Aug 9, 2024

  1. Outdated version
  2. Latest dA commits not included in any released version

Either use Python to run directly from source or try the latest build from here: https://github.com/gdl-org/builds/releases

@Soeroah
Copy link
Author

Soeroah commented Aug 9, 2024

I updated to the latest stable release and it didn't work, but the latest dev release from github seems to have fixed it

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants