voxel51/fiftyone

[BUG] Launching the app through pants fails after 1.7.1

开放

#6,408 创建于 2025年10月13日

 (0 条评论) (0 个反应) (0 位负责人)Python (400 个派生)batch import
buggood first issue

仓库指标

星标
 (4,021 个星标)
PR 合并指标
 (平均合并 3天 11小时) (30 天内合并 161 个 PR)

描述

Describe the problem

Launching fiftyone through pants fails starting from version 1.7.1. The app does not find index.html and this is probably due to how pants resolves and packages dependencies. This issue only appears when running through pants. Outside of pants it works perfectly.

Code to reproduce issue

Invoking the following code through pants run script.py

import fiftyone as fo
import fiftyone.zoo as foz

dataset = foz.load_zoo_dataset("quickstart")
session = fo.launch_app(dataset)

session.wait()

Leads to a blank page with "Not found" when opening http://0.0.0.0:5151.

System information

  • Ubuntu 22.04
  • Python version 3.11
  • FiftyOne version >= 1.7.1
  • FiftyOne installed from pip

Other info/logs

The error is the same as in this topic, but it's only when running through pants.

Willingness to contribute

  • Yes. I can contribute a fix for this bug independently
  • [ x ] Yes. I would be willing to contribute a fix for this bug with guidance from the FiftyOne community
  • No. I cannot contribute a bug fix at this time

贡献者指南