voxel51/fiftyone
Vedi su GitHub[BUG] Launching the app through pants fails after 1.7.1
Open
#6408 aperta il 13 ott 2025
buggood first issue
Metriche repository
- Star
- (4021 star)
- Metriche merge PR
- (Merge medio 4g 14h) (185 PR mergiate in 30 g)
Descrizione
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