Skip to content

[fnos] native .fpk missing playwright/driver — browser install fails with FileNotFoundError #2118

Closed

Description

@seasom1804

问题描述

在飞牛 fnOS 上安装 Octop-fnos-native-1.0.2b8.fpk 后,控制台点击"安装浏览器"失败:

FileNotFoundError: [Errno 2] No such file or directory: '/vol1/@appcenter/octop-native/site-packages/playwright/driver/node'

根因

拆开 Octop-fnos-native-1.0.2b8.fpk(app.tgz)检查:site-packages/playwright/ 下完全没有 driver/ 目录(0 个文件)。Playwright 的 driver(含 node 二进制和 JS 驱动代码)在打包时被去掉了,导致:

  1. playwright install chromium 无法运行(连下载都开始不了);
  2. 即使手动装好 Chromium,Playwright 也无法驱动它。

注意:这不是网络/镜像源问题,配置 PLAYWRIGHT_DOWNLOAD_HOST 无法解决;PLAYWRIGHT_NODEJS_PATH 也救不了,因为缺的不只是 node 二进制,是整个 driver 目录。

环境

  • Octop v1.0.2b8(fnos native,x86_64)
  • 飞牛 fnOS(x86_64)
  • Python 3.12(飞牛 python312)

建议

打包时保留 playwright/driver/,或在文档中说明浏览器功能在 fnos native 版不可用。

Activity

  1. jubaoliang commented on Oct 19, 2026

    @jubaoliang
    Collaborator

    Closing: fixed by #2129 (Playwright driver kept in the native fnOS package), already on develop / 1.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions