pyinstaller 4.4 raised an error as follows

48 views
Skip to first unread message

郦春

unread,
Aug 1, 2021, 11:44:40 AM8/1/21
to PyInstaller
I can pakage my project normally, but when I ran the application it raised an error as follows:
Traceback (most recent call last): File "run.py", line 360, in huaban.run.MainWorkPanel.start_download File "run.py", line 594, in huaban.run.MainWorkPanel.real_run File "scrapy\crawler.py", line 280, in __init__ File "scrapy\crawler.py", line 152, in __init__ File "scrapy\crawler.py", line 146, in _get_spider_loader File "scrapy\spiderloader.py", line 67, in from_settings File "scrapy\spiderloader.py", line 24, in __init__ File "scrapy\spiderloader.py", line 51, in _load_all_spiders File "scrapy\utils\misc.py", line 83, in walk_modules File "C:\soft\VirtualenvFiles\huaban\Lib\site-packages\PyInstaller\hooks\rthooks\pyi_rth_pkgutil.py", line 71, in _pyi_pkgutil_iter_modules assert pkg_path.startswith(SYS_PREFIX) TypeError: startswith first arg must be str or a tuple of str, not PureWindowsPath 

My python version is 3.8.10.

But if I use pyinstaller 4.1 ,  there is no error.

How to deal with it?
Reply all
Reply to author
Forward
0 new messages