Replies: 6 comments 8 replies
-
| 
         急急急! 我也遇到一样的问题,说下我的环境  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         我也是,一直没找到解决办法  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         我windows环境之前也这样,一顿折腾,后来发现是browser_data目录的问题,我换了个路径就好了,供参考  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         楼主,经测试 在Windows上 通过修改core/wis/nodriver_helper.py中25行的data_dir之后,确实能正常启动,但是ubutu(无图形界面)还是不行。  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         我复现了,需要 study  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         确认此问题系由于 win11 对于相对路径的解读与其他操作系统不一致所引起。我已经推送了最新代码解决此问题,  | 
  
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
好像提示不能用root用户,用了普通用户也不行
Database manager initialized successfully
2025-07-18 11:02:29 | initialize kuaishou crawler failed:
---------------------
Failed to connect to browser
---------------------
One of the causes could be when you are running as root.
In that case you need to pass no_sandbox=True
, will abort all the sources for kuaishou platform
Traceback (most recent call last):
File "/lanxp/wiseflow-master/core/run_task.py", line 31, in schedule_task
await ks_crawler.async_initialize()
File "/lanxp/wiseflow-master/core/wis/kuaishou/core.py", line 48, in async_initialize
self.ks_client.account_info = await account_with_ip_pool.get_account_with_ip_info()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lanxp/wiseflow-master/core/wis/mc_commen/account_pool.py", line 223, in get_account_with_ip_info
account: AccountInfoModel = await self.get_active_account(force_login)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lanxp/wiseflow-master/core/wis/mc_commen/account_pool.py", line 59, in get_active_account
async with NodriverHelper(self._platform_name) as nodriver_helper:
File "/lanxp/wiseflow-master/core/wis/nodriver_helper.py", line 34, in aenter
await self.start()
File "/lanxp/wiseflow-master/core/wis/nodriver_helper.py", line 56, in start
self.browser = await uc.start(**config)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/lanxp/wiseflow-master/.venv/lib/python3.12/site-packages/nodriver/core/util.py", line 101, in start
return await Browser.create(config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/lanxp/wiseflow-master/.venv/lib/python3.12/site-packages/nodriver/core/browser.py", line 95, in create
await instance.start()
File "/lanxp/wiseflow-master/.venv/lib/python3.12/site-packages/nodriver/core/browser.py", line 425, in start
raise Exception(
Exception:
---------------------
Failed to connect to browser
---------------------
One of the causes could be when you are running as root.
In that case you need to pass no_sandbox=True
Beta Was this translation helpful? Give feedback.
All reactions