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

VS Code: "Key error" or debug error: "connect ECONNREFUSED 127.0.0.1:5678" #13

Open
Captain-Science opened this issue May 28, 2023 · 0 comments

Comments

@Captain-Science
Copy link

I've been hacking at this for months so I decided to call for help.
BTW the VS Code lintr has quite a few complaints as well--mostly about unused import/from

$ python main.py artwork

there are 2 users

download artworks for user smith

Traceback (most recent call last):
File "C:\DevProjects\deviantart-scraper-master\main.py", line 59, in
main()
File "C:\DevProjects\deviantart-scraper-master\main.py", line 44, in main
download_users(api, config, args.option)
File "C:\DevProjects\deviantart-scraper-master\main.py", line 14, in download_users
result = api.save_users_artworks(config.users, config.save_dir)
File "C:\DevProjects\deviantart-scraper-master\lib\deviantart.py", line 191, in save_users_artworks
files = self.save_user_artworks(user, dir_path)
File "C:\DevProjects\deviantart-scraper-master\lib\deviantart.py", line 181, in save_user_artworks
files = pool.map(partial(self.save_artwork, dir_path), artworks)
File "C:\SoftwareDevelopment\PythonPython39\lib\multiprocessing\pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "C:\SoftwareDevelopment\PythonPython39\lib\multiprocessing\pool.py", line 771, in get
raise self._value
File "C:\SoftwareDevelopment\PythonPython39\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "C:\SoftwareDevelopment\PythonPython39\lib\multiprocessing\pool.py", line 48, in mapstar
return list(map(*args))
File "C:\DevProjects\deviantart-scraper-master\lib\deviantart.py", line 155, in save_artwork
download_url = self._download_url(artwork)
File "C:\DevProjects\deviantart-scraper-master\lib\deviantart.py", line 112, in _download_url
url = next(a['src'] for a in artwork['files'] if a['Art_type']=='fullview')

KeyError: 'files'

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

1 participant