voxel51/fiftyone

[BUG] Launching the app through pants fails after 1.7.1

オープン

#6,408 opened on 2025/10/13

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Python (400 件のフォーク)batch import
buggood first issue

Repository metrics

Stars
 (4,021 個のスター)
PR merge metrics
 (平均マージ 3d 11h) (30d で 161 merged PRs)

説明

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

コントリビューターガイド