voxel51 / fiftyone

The open-source tool for building high-quality datasets and computer vision models
https://fiftyone.ai
Apache License 2.0
7.89k stars 518 forks source link

[INSTALL] fiftyone.core.config.FiftyOneConfigError: MongoDB could not be installed on your system. Please define a `database_uri` in your `fiftyone.core.config.FiftyOneConfig` to connect to yourown MongoDB instance or cluster #4427

Closed fcakyon closed 1 month ago

fcakyon commented 1 month ago

Hello, I'm having an error when running fifty-one quickstart on CLI.

Having the same error in: https://github.com/voxel51/fiftyone/issues/4216

Error:

fiftyone.core.config.FiftyOneConfigError: MongoDB could not be installed on your system. Please define a `database_uri` in your `fiftyone.core.config.FiftyOneConfig` to connect to yourown MongoDB instance or cluster

My os: Linux-3.10.0-514.6.1.el7.x86_64-x86_64-with-glibc2.17 Python: 3.10.8 fiftyone: 0.23.8 fiftyone-db: 1.1.2

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

How can I make "fiftyone" work in such an environment?

fcakyon commented 1 month ago

I solved it by manually downloading and extracting the required binary MongoDB files after installing the latest fiftyone-db package.

Why is it not automatically handled by the fiftyone-db setup?

benjaminpkane commented 1 month ago

Pardon the delay. The CentOS entries were missing. Should be fixed in fiftyone-db==1.1.3. Thanks @fcakyon!

fcakyon commented 1 month ago

Thanks for the fix @benjaminpkane 🚀