'NoneType' object has no attribute 'write' #47
Unanswered
timothyreed1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi - installed the latest Bandcamp-downloader on my Mac running the latest OS and am getting the error: "AttributeError: 'NoneType' object has no attribute 'write'". I've tried logging into Bandcamp on Brave and Chrome with the same error. I have about 210 purchases on Bandcamp and can download manually. Has anyone run into this issue before?
Thanks to easlice for making this software available.
% bandcamp-downloader.py --browser brave my bandcamp username
Traceback (most recent call last):
File "/Users/me/.local/bin/bandcamp-downloader.py", line 591, in
sys.exit(main())
~~~~^^
File "/Users/me/.local/bin/bandcamp-downloader.py", line 186, in main
items = get_items_for_user(args.username, args.include_hidden)
File "/Users/me/.local/bin/bandcamp-downloader.py", line 289, in get_items_for_user
items.update(fetch_items(
~~~~~~~~~~~^
False,
^^^^^^
...<2 lines>...
# count is the number we have left to fetch after the initial data blob
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
data['collection_data']['item_count'] - len(data['item_cache']['collection'])))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/me/.local/bin/bandcamp-downloader.py", line 248, in fetch_items
return merge_items_and_urls(data['items'], data['redownload_urls'] or {})
File "/Users/me/.local/bin/bandcamp-downloader.py", line 337, in merge_items_and_urls
CONFIG['TQDM'].write("WARN: couldn't find redownload URL for item_id:[{}], artist:[{}], title:[{}]".format(
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'write'
Beta Was this translation helpful? Give feedback.
All reactions