lightnovel-crawler
lightnovel-crawler copied to clipboard
Module Load Failure in Lightnovel Crawler v3.4.0
Describe the bug
The Lightnovel Crawler v3.4.0 is experiencing issues with loading certain modules. The issue seems to occur when the application tries to load the current index data from C:\Users\Administrator\.lncrawl\sources\_index.json
. The following modules failed to load:
-
C:\Program Files\Python312\Lib\site-packages\sources\ar\rewayatclub.py
-
C:\Program Files\Python312\Lib\site-packages\sources\en\l\lnmtl.py
-
C:\Program Files\Python312\Lib\site-packages\sources\en\n\novelmao.py
-
C:\Program Files\Python312\Lib\site-packages\sources\en\r\ranobes.py
The application was initialized successfully, but the issue with the modules persists.
17:07:26 [DEBUG] (lncrawl.core)
Arguments: Namespace(log=3, log_file=None, list_sources=False, crawler=[], novel_page=None, query=None, login=None, output_formats=[], add_source_url=False, single=False, multi=False, output_path=None, filename=None, filename_only=False, force=False, ignore=False, all=False, first=None, last=None, page=None, range=None, volumes=None, chapters=None, proxy_file=None, auto_proxy=False, bot=None, shard_id=0, shard_count=1, selenium_grid=None, suppress=False, ignore_images=False, close_directly=False, extra={})
17:07:26 [DEBUG] (lncrawl.core.sources)
Loading current index data from C:\Users\Administrator\.lncrawl\sources\_index.json
17:07:26 [DEBUG] (lncrawl.core.sources)
Current index was already downloaded once
17:07:26 [DEBUG] (lncrawl.core.sources)
Saving current index data to C:\Users\Administrator\.lncrawl\sources\_index.json
17:07:26 [DEBUG] (lncrawl.core.sources)
Saving current index data to C:\Users\Administrator\.lncrawl\sources\_index.json
17:07:26 [WARNING] (lncrawl.core.sources)
Module load failed: C:\Program Files\Python312\Lib\site-packages\sources\ar\rewayatclub.py | 3
17:07:26 [WARNING] (lncrawl.core.sources)
Module load failed: C:\Program Files\Python312\Lib\site-packages\sources\en\l\lnmtl.py | 3
17:07:26 [WARNING] (lncrawl.core.sources)
Module load failed: C:\Program Files\Python312\Lib\site-packages\sources\en\n\novelmao.py | 3
17:07:26 [WARNING] (lncrawl.core.sources)
Module load failed: C:\Program Files\Python312\Lib\site-packages\sources\en\r\ranobes.py | 3
17:07:26 [INFO] (lncrawl.core.app)
Initialized App
17:07:26 [DEBUG] (asyncio)
Using proactor: IocpProactor
Let us know
App source: PIP App version: 3.4.0 Your OS: Windows 11Pro 22H2 22621.2134
Happened to me too. It seems to be caused by some changes they made in Python 3.12. Downgrading to 3.11 works as a temporary solution.
At first glance, it seems that the problem lies with the library used by all four sources, js2py. It appears that this library is incompatible with Python 3.12. Someone mentioned this issue on the library's GitHub page. Furthermore, there have been no updates in the project for some time, so I am not optimistic that the problem will be solved anytime soon. The best solution is probably to remove the usage of js2py if possible or replace it with an alternative (if one exists).