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 合併指標
 (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

貢獻者指南