Duff89 / parser_avito

Находит товары на avito.ru по ключевым словам
175 stars 63 forks source link

TypeError: expected str, bytes or os.PathLike object, not NoneType #21

Closed TemArt90 closed 1 year ago

TemArt90 commented 1 year ago

image

Exception in thread Thread-1 (start_scraping): Traceback (most recent call last): File "/usr/lib64/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/lib64/python3.11/threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "/home/temart/parser_avito/AvitoParser.py", line 152, in start_scraping self.run_parse() File "/home/temart/parser_avito/AvitoParser.py", line 258, in run_parse ).parse() ^^^^^^^ File "/home/temart/parser_avito/parser_cls.py", line 236, in parse with SB(uc=True, File "/usr/lib64/python3.11/contextlib.py", line 137, in enter return next(self.gen) ^^^^^^^^^^^^^^ File "/home/temart/parser_avito/env/lib64/python3.11/site-packages/seleniumbase/plugins/sb_manager.py", line 815, in SB sb.setUp() File "/home/temart/parser_avito/env/lib64/python3.11/site-packages/seleniumbase/fixtures/base_case.py", line 13825, in setUp self.driver = self.get_new_driver( ^^^^^^^^^^^^^^^^^^^^ File "/home/temart/parser_avito/env/lib64/python3.11/site-packages/seleniumbase/fixtures/base_case.py", line 3783, in get_new_driver new_driver = browser_launcher.get_driver( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/temart/parser_avito/env/lib64/python3.11/site-packages/seleniumbase/core/browser_launcher.py", line 1234, in get_driver return get_local_driver( ^^^^^^^^^^^^^^^^^ File "/home/temart/parser_avito/env/lib64/python3.11/site-packages/seleniumbase/core/browser_launcher.py", line 3044, in get_local_driver driver = undetected.Chrome( ^^^^^^^^^^^^^^^^^^ File "/home/temart/parser_avito/env/lib64/python3.11/site-packages/seleniumbase/undetected/init.py", line 294, in init browser = subprocess.Popen( ^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib64/python3.11/subprocess.py", line 1824, in _execute_child and os.path.dirname(executable) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 152, in dirname TypeError: expected str, bytes or os.PathLike object, not NoneType

Duff89 commented 1 year ago

image

Exception in thread Thread-1 (start_scraping): Traceback (most recent call last): File "/usr/lib64/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/lib64/python3.11/threading.py", line 975, in run self._target(*self._args, self._kwargs) File "/home/temart/parser_avito/AvitoParser.py", line 152, in start_scraping self.run_parse() File "/home/temart/parser_avito/AvitoParser.py", line 258, in run_parse ).parse() ^^^^^^^ File "/home/temart/parser_avito/parser_cls.py", line 236, in parse with SB(uc=True, File "/usr/lib64/python3.11/contextlib.py", line 137, in enter return next(self.gen) ^^^^^^^^^^^^^^ File "/home/temart/parser_avito/env/lib64/python3.11/site-packages/seleniumbase/plugins/sb_manager.py", line 815, in SB sb.setUp() File "/home/temart/parser_avito/env/lib64/python3.11/site-packages/seleniumbase/fixtures/base_case.py", line 13825, in setUp self.driver = self.get_new_driver( ^^^^^^^^^^^^^^^^^^^^ File "/home/temart/parser_avito/env/lib64/python3.11/site-packages/seleniumbase/fixtures/base_case.py", line 3783, in get_new_driver new_driver = browser_launcher.get_driver( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/temart/parser_avito/env/lib64/python3.11/site-packages/seleniumbase/core/browser_launcher.py", line 1234, in get_driver return get_local_driver( ^^^^^^^^^^^^^^^^^ File "/home/temart/parser_avito/env/lib64/python3.11/site-packages/seleniumbase/core/browser_launcher.py", line 3044, in get_local_driver driver = undetected.Chrome( ^^^^^^^^^^^^^^^^^^ File "/home/temart/parser_avito/env/lib64/python3.11/site-packages/seleniumbase/undetected/init.py", line 294, in init browser = subprocess.Popen( ^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/subprocess.py", line 1026, in init** self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib64/python3.11/subprocess.py", line 1824, in _execute_child and os.path.dirname(executable) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 152, in dirname TypeError: expected str, bytes or os.PathLike object, not NoneType

У Вас установлен Chrome?

Duff89 commented 1 year ago

Нет ответа