facebookresearch / facebookresearch/dora

Cannot import name 'hydra_main' from 'dora' on Colab or Kaggle environment

Open
#43 2 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Python
Stars
314
Forks
25
PR merge metrics
No merged PRs in 30d

Description

## 🐛 Bug Report

I wanted to run training inside colab notebook using code that utilizes `dora`. But after installation `hydra_main` seems to be missing.

```from dora import hydra_main``` gives me following exception

```ImportError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
----> 1 from dora import hydra_main

ImportError: cannot import name 'hydra_main' from 'dora' (/usr/local/lib/python3.9/dist-packages/dora/__init__.py)
```

I installed it with
```pip install -U dora-search```

and tried few different versions.

## Your Environment
Both kaggle or colab notebooks.

Or maybe this is expected and one can't use `dora` inside colab?

Contributor guide

Open the contributing guide

Research direction

Reproduce the import in a Colab or Kaggle notebook after installing dora-search, then inspect the installed dora/__init__.py and compare the available package versions. Done means the expected behavior for `from dora import hydra_main` in notebook environments is established and the reported ImportError is either resolved or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.