You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import fiftyone as fo
import fiftyone.zoo as foz
dataset = foz.load_zoo_dataset(
"coco-2017",
split="validation",
label_types=["detections", "segmentations"],
max_samples=5,
)
session = fo.launch_app(dataset)
I am running above code in notebook when I get following error
AttributeError Traceback (most recent call last)
/tmp/ipykernel_15399/2460818995.py in
----> 1 import fiftyone as fo
2 import fiftyone.zoo as foz
3
4 dataset = foz.load_zoo_dataset(
5 "coco-2017",
~/conda/lib/python3.8/site-packages/fiftyone/init.py in
30
31 if _os.environ.get("FIFTYONE_DISABLE_SERVICES", "0") != "1":
---> 32 _foo.delete_non_persistent_datasets_if_allowed()
33 _fom.migrate_database_if_necessary()
34 _fou.log_import_if_allowed()
~/conda/lib/python3.8/site-packages/fiftyone/core/odm/database.py in delete_non_persistent_datasets_if_allowed()
239
240 if num_connections <= 1:
--> 241 fod.delete_non_persistent_datasets()
242
243
~/conda/lib/python3.8/site-packages/fiftyone/core/dataset.py in delete_non_persistent_datasets(verbose)
180 verbose (False): whether to log the names of deleted datasets
181 """
--> 182 for name in _list_datasets(include_private=True):
183 try:
184 dataset = Dataset(name, _create=False, _virtual=True)
~/conda/lib/python3.8/site-packages/fiftyone/core/dataset.py in _list_datasets(include_private)
4584
4585 def _list_datasets(include_private=False):
-> 4586 conn = foo.get_db_conn()
4587
4588 if include_private:
~/conda/lib/python3.8/site-packages/fiftyone/core/odm/database.py in get_db_conn()
347 """
348 _connect()
--> 349 db = _client[fo.config.database_name]
350 return _apply_options(db)
351
AttributeError: module 'fiftyone' has no attribute 'config'
The text was updated successfully, but these errors were encountered:
Little background,
I ran this on both colab and local notebook and faced same issues as mentioned below
When I try to import fiftyone
import fiftyone as fo
I got following error
ImportError: cannot import name '_registerMatType' from 'cv2.cv2' (/usr/local/lib/python3.7/dist-packages/cv2/cv2.cpython-37m-x86_64-linux-gnu.so)
then I resolved it using
!pip uninstall opencv-python -y
!pip install opencv-python
!pip uninstall opencv-python-headless -y
!pip install opencv-python-headless==4.1.2.30
After this when I try to import fiftyone I get error AttributeError: module 'fiftyone' has no attribute 'config'
I am running above code in notebook when I get following error
AttributeError Traceback (most recent call last)
/tmp/ipykernel_15399/2460818995.py in
----> 1 import fiftyone as fo
2 import fiftyone.zoo as foz
3
4 dataset = foz.load_zoo_dataset(
5 "coco-2017",
~/conda/lib/python3.8/site-packages/fiftyone/init.py in
30
31 if _os.environ.get("FIFTYONE_DISABLE_SERVICES", "0") != "1":
---> 32 _foo.delete_non_persistent_datasets_if_allowed()
33 _fom.migrate_database_if_necessary()
34 _fou.log_import_if_allowed()
~/conda/lib/python3.8/site-packages/fiftyone/core/odm/database.py in delete_non_persistent_datasets_if_allowed()
239
240 if num_connections <= 1:
--> 241 fod.delete_non_persistent_datasets()
242
243
~/conda/lib/python3.8/site-packages/fiftyone/core/dataset.py in delete_non_persistent_datasets(verbose)
180 verbose (False): whether to log the names of deleted datasets
181 """
--> 182 for name in _list_datasets(include_private=True):
183 try:
184 dataset = Dataset(name, _create=False, _virtual=True)
~/conda/lib/python3.8/site-packages/fiftyone/core/dataset.py in _list_datasets(include_private)
4584
4585 def _list_datasets(include_private=False):
-> 4586 conn = foo.get_db_conn()
4587
4588 if include_private:
~/conda/lib/python3.8/site-packages/fiftyone/core/odm/database.py in get_db_conn()
347 """
348 _connect()
--> 349 db = _client[fo.config.database_name]
350 return _apply_options(db)
351
AttributeError: module 'fiftyone' has no attribute 'config'
The text was updated successfully, but these errors were encountered: