-
Notifications
You must be signed in to change notification settings - Fork 258
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
Several Errors Related to Fanbox #1380
Comments
same issue |
Having the same issue with Fanbox as well. |
Everyone try upgrading your pip requirements: I was just able to download Fanbox using version 20240703. |
I tried that @biggestsonicfan it did not work and produced the same error as above. |
@esserius Can you attach a log? |
pixivutil.log |
@esserius Oh, OP's latest master is the same error in latest master... I don't know what to say other than I am on Python 3.11 and linux. Let me try Windows in a venv. |
The executable version of the latest release works in Windows, and I can login without issue. However, f1 and f2 are broken |
Of course the executable version won't work, it doesn't have the updated dependencies. The log you uploaded shows it was run as a script. |
Given that it's working for you I wonder if there's something about Windows-based python that's borking it. |
I'm experiencing the on-startup issue laid out above with both the Windows EXE and with Python 3.10 in WSL, both using version 20240703. |
Prerequisites
Description
Cannot download from Fanbox. Basically followed all the steps to update my cookies, updated to the latest version, used firefox to grab the cloudflare cookies, and after several errors I got the program functional, but the fanbox does not work for the old version or the latest release. Not sure about running from the source code, I probably didn't do it right but it produces a similar yet different error related to cookies or something.
Downloading individual posts actually works on the latest release version, but the other options result in the error.
Steps to Reproduce
Expected behavior: For the downloads to happen.
Actual behavior: Multiple error messages.
(LATEST RELEASE ERROR AFTER INPUT F1)
File "PixivUtil2.py", line 1745, in main
File "PixivUtil2.py", line 1467, in main_loop
File "PixivUtil2.py", line 945, in menu_fanbox_download_from_list
File "PixivFanboxHandler.py", line 50, in process_fanbox_artist_by_id
File "PixivBrowserFactory.py", line 1048, in fanboxGetPostsFromArtist
File "PixivModelFanbox.py", line 575, in parsePosts
TypeError: list indices must be integers or slices, not str
Unknown Error, please check the log file: (<class 'TypeError'>, TypeError('list indices must be integers or slices, not str'), <traceback object at 0x0000020E89E74D40>)
(OLD VERSION ERROR AFTER INPUT F1)
End Page (default is 0) =
Trying to log in FANBOX with saved cookie
Not logged in to FANBOX, trying to update FANBOX cookie...
Traceback (most recent call last):
File "PixivUtil2.py", line 1462, in main
File "PixivUtil2.py", line 1189, in main_loop
File "PixivUtil2.py", line 786, in menu_fanbox_download_from_list
File "PixivBrowserFactory.pyc", line 884, in fanboxGetArtistList
File "PixivBrowserFactory.pyc", line 396, in fanbox_is_logged_in
File "PixivBrowserFactory.pyc", line 389, in fanboxLoginUsingCookie
File "PixivBrowserFactory.pyc", line 414, in updateFanboxCookie
Exception: Could not get pixivAccount.postKey while trying to log into fanbox.cc with given pixiv.net cookie
Unknown Error, please check the log file: (<class 'Exception'>, Exception('Could not get pixivAccount.postKey while trying to log into fanbox.cc with given pixiv.net cookie'), <traceback object at 0x04945E88>)
(LATEST MASTER ERROR ON STARTUP)
See Q3. at https://github.com/Nandaka/PixivUtil2?tab=readme-ov-file#a-usage
Trying to log in with saved cookie
Error at doLogin(): (<class 'mechanize._response.get_seek_wrapper_class..httperror_seek_wrapper'>, <httperror_seek_wrapper (urllib.error.HTTPError instance) at 0x1773e11d130 whose wrapped object = <HTTPError 403: 'Forbidden'>>, <traceback object at 0x000001773E13ABC0>)
Traceback (most recent call last):
File "C:\Logs\Auxillary Logs\APPLE\Backup\PROD\PixivUtil2-master\PixivUtil2-master\PixivUtil2.py", line 1558, in doLogin
result = br.loginUsingCookie()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Logs\Auxillary Logs\APPLE\Backup\PROD\PixivUtil2-master\PixivUtil2-master\PixivBrowserFactory.py", line 352, in loginUsingCookie
res = self.open_with_retry('https://www.pixiv.net') # + self._locale)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Logs\Auxillary Logs\APPLE\Backup\PROD\PixivUtil2-master\PixivUtil2-master\PixivBrowserFactory.py", line 208, in open_with_retry
res = self.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pinkc\AppData\Local\Programs\Python\Python312\Lib\site-packages\mechanize_mechanize.py", line 257, in open
return self._mech_open(url_or_request, data, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\pinkc\AppData\Local\Programs\Python\Python312\Lib\site-packages\mechanize_mechanize.py", line 313, in _mech_open
raise response
mechanize._response.get_seek_wrapper_class..httperror_seek_wrapper: HTTP Error 403: Forbidden
Cannot Login!
Log file:
pixivutil.log (latest release)
pixivutil.log (old version 20211104)
pixivutil.log (latest master)
Versions
latest release version 20240703
original version 20211104
latest master version 20240703
The text was updated successfully, but these errors were encountered: