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

failed to download pictures using member id #61

Closed
atliv opened this issue Dec 11, 2014 · 7 comments
Closed

failed to download pictures using member id #61

atliv opened this issue Dec 11, 2014 · 7 comments

Comments

@atliv
Copy link

atliv commented Dec 11, 2014

log

2014-12-12 02:53:46,026 - PixivUtil20141201 - INFO - Member id mode.
2014-12-12 02:53:53,380 - PixivUtil20141201 - INFO - Processing Member Id: 839384
2014-12-12 02:53:53,426 - PixivUtil20141201 - INFO - Member Url: http://www.pixiv.net/member_illust.php?id=839384&p=1
2014-12-12 02:53:54,818 - PixivUtil20141201 - DEBUG - Sanitized Filename: C:\Users\lenovo\Desktop\New folder (3)\へ猫 (839384)\folder.jpg
2014-12-12 02:53:54,819 - PixivUtil20141201 - INFO - Using Referer: http://www.pixiv.net/member_illust.php?id=839384&p=1
2014-12-12 02:53:54,901 - PixivUtil20141201 - INFO - File exist! (Identical Size)
2014-12-12 02:53:56,502 - PixivUtil20141201 - ERROR - Error at process_image(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x037DAD00>)
2014-12-12 02:53:56,503 - PixivUtil20141201 - ERROR - Error at process_image(): 47496557
Traceback (most recent call last):
File "PixivUtil2.py", line 494, in process_image
File "PixivModel.pyc", line 224, in init
File "PixivModel.pyc", line 289, in ParseInfo
UnboundLocalError: local variable 'temp' referenced before assignment
2014-12-12 02:53:56,529 - PixivUtil20141201 - ERROR - Dumping html to: Error medium page for image 47496557.html
2014-12-12 02:53:56,536 - PixivUtil20141201 - ERROR - Error at process_member(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x037E2620>) Member Id: 839384
Traceback (most recent call last):
File "PixivUtil2.py", line 392, in process_member
File "PixivUtil2.py", line 494, in process_image
File "PixivModel.pyc", line 224, in init
File "PixivModel.pyc", line 289, in ParseInfo
UnboundLocalError: local variable 'temp' referenced before assignment
2014-12-12 02:54:00,127 - PixivUtil20141201 - ERROR - Error at process_image(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x039BC4E0>)
2014-12-12 02:54:00,128 - PixivUtil20141201 - ERROR - Error at process_image(): 47496557
Traceback (most recent call last):
File "PixivUtil2.py", line 494, in process_image
File "PixivModel.pyc", line 224, in init
File "PixivModel.pyc", line 289, in ParseInfo
UnboundLocalError: local variable 'temp' referenced before assignment
2014-12-12 02:54:00,148 - PixivUtil20141201 - ERROR - Dumping html to: Error medium page for image 47496557.html
2014-12-12 02:54:00,154 - PixivUtil20141201 - ERROR - Error at process_member(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x039BC940>) Member Id: 839384
Traceback (most recent call last):
File "PixivUtil2.py", line 392, in process_member
File "PixivUtil2.py", line 494, in process_image
File "PixivModel.pyc", line 224, in init
File "PixivModel.pyc", line 289, in ParseInfo
UnboundLocalError: local variable 'temp' referenced before assignment
2014-12-12 02:54:03,750 - PixivUtil20141201 - ERROR - Error at process_image(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x03C82558>)
2014-12-12 02:54:03,750 - PixivUtil20141201 - ERROR - Error at process_image(): 47496557
Traceback (most recent call last):
File "PixivUtil2.py", line 494, in process_image
File "PixivModel.pyc", line 224, in init
File "PixivModel.pyc", line 289, in ParseInfo
UnboundLocalError: local variable 'temp' referenced before assignment
2014-12-12 02:54:03,772 - PixivUtil20141201 - ERROR - Dumping html to: Error medium page for image 47496557.html
2014-12-12 02:54:03,776 - PixivUtil20141201 - ERROR - Error at process_member(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x03C82580>) Member Id: 839384
Traceback (most recent call last):
File "PixivUtil2.py", line 392, in process_member
File "PixivUtil2.py", line 494, in process_image
File "PixivModel.pyc", line 224, in init
File "PixivModel.pyc", line 289, in ParseInfo
UnboundLocalError: local variable 'temp' referenced before assignment
2014-12-12 02:54:07,369 - PixivUtil20141201 - ERROR - Error at process_image(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x03DCE9E0>)
2014-12-12 02:54:07,369 - PixivUtil20141201 - ERROR - Error at process_image(): 47496557
Traceback (most recent call last):
File "PixivUtil2.py", line 494, in process_image
File "PixivModel.pyc", line 224, in init
File "PixivModel.pyc", line 289, in ParseInfo
UnboundLocalError: local variable 'temp' referenced before assignment
2014-12-12 02:54:07,391 - PixivUtil20141201 - ERROR - Dumping html to: Error medium page for image 47496557.html
2014-12-12 02:54:07,395 - PixivUtil20141201 - ERROR - Error at process_member(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x03DCEFA8>) Member Id: 839384
Traceback (most recent call last):
File "PixivUtil2.py", line 392, in process_member
File "PixivUtil2.py", line 494, in process_image
File "PixivModel.pyc", line 224, in init
File "PixivModel.pyc", line 289, in ParseInfo
UnboundLocalError: local variable 'temp' referenced before assignment
2014-12-12 02:54:10,898 - PixivUtil20141201 - ERROR - Error at process_image(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x02491328>)
2014-12-12 02:54:10,898 - PixivUtil20141201 - ERROR - Error at process_image(): 47496557
Traceback (most recent call last):
File "PixivUtil2.py", line 494, in process_image
File "PixivModel.pyc", line 224, in init
File "PixivModel.pyc", line 289, in ParseInfo
UnboundLocalError: local variable 'temp' referenced before assignment
2014-12-12 02:54:10,920 - PixivUtil20141201 - ERROR - Dumping html to: Error medium page for image 47496557.html
2014-12-12 02:54:10,923 - PixivUtil20141201 - ERROR - Giving up image_id: 47496557

@vampiricwulf
Copy link

I got a similar error when trying to download image ids: 29238063 47505059 47498125

Traceback (most recent call last):
  File "/Applications/PixivUtil/PixivUtil2.py", line 494, in process_image
    image = PixivImage(iid=image_id, page=parse_medium_page, parent=artist, fromBookmark=bookmark, bookmark_count=bookmark_count)
  File "/Applications/PixivUtil/PixivModel.py", line 224, in __init__
    self.ParseInfo(page)
  File "/Applications/PixivUtil/PixivModel.py", line 290, in ParseInfo
    temp_id = int(re.search('illust_id=(\d+)',temp).group(1))
UnboundLocalError: local variable 'temp' referenced before assignment
Error at process_image(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x1075d7680>)
Dumping html to: Error medium page for image 47498125.html
Traceback (most recent call last):
  File "/Applications/PixivUtil/PixivUtil2.py", line 1687, in main
    np_is_valid, op_is_valid, selection = main_loop(ewd, mode, op_is_valid, selection, np_is_valid, args)
  File "/Applications/PixivUtil/PixivUtil2.py", line 1485, in main_loop
    menu_download_by_image_id(mode, op_is_valid, args)
  File "/Applications/PixivUtil/PixivUtil2.py", line 1224, in menu_download_by_image_id
    process_image(mode, None, int(image_id))
  File "/Applications/PixivUtil/PixivUtil2.py", line 494, in process_image
    image = PixivImage(iid=image_id, page=parse_medium_page, parent=artist, fromBookmark=bookmark, bookmark_count=bookmark_count)
  File "/Applications/PixivUtil/PixivModel.py", line 224, in __init__
    self.ParseInfo(page)
  File "/Applications/PixivUtil/PixivModel.py", line 290, in ParseInfo
    temp_id = int(re.search('illust_id=(\d+)',temp).group(1))
UnboundLocalError: local variable 'temp' referenced before assignment

@lunusvir
Copy link

I got the error about 10 hours ago too. Then figured Pixiv modified the pages. The links to 'big' images are removed. As a temporary workaround before the author responses, I forked and modified a little bit in PixivModel.py which should work until Pixiv changes more.

@vampiricwulf
Copy link

Yeah, another thing to note is the that Error medium page for image #{image_id}.html that it dumps is empty.

@sabearcher
Copy link

Link of big mode been changed. For some pics, there's no "mode=big" page, but do has a label <img class="big" src="...">

@Nandaka
Copy link
Owner

Nandaka commented Dec 12, 2014

Duplicate with #60

@Nandaka Nandaka closed this as completed Dec 12, 2014
@Nandaka
Copy link
Owner

Nandaka commented Dec 12, 2014

fix on the way 😄

@Nandaka
Copy link
Owner

Nandaka commented Dec 12, 2014

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

5 participants