Wandb tries (and fails) to import non-existent fastai when running under Tox
See original GitHub issuewandb --version && python --version && uname
- wandb, version 0.8.20
- Python 3.6.9
- Linux
Description
Test imports wandb when running under Tox. Doesn’t call anything in it, does not initialize, simply imports. I get an error because it seems to try to import fastai (which is not installed). If I install fastai, it fails on trying to import something else, which is also not installed. Outside Tox, the tests run just fine.
What I Did
Traceback
___________________________________________________ ERROR collecting util/wandb.py ___________________________________________________
.tox/py3/lib/python3.6/site-packages/_pytest/doctest.py:408: in _mock_aware_unwrap
return real_unwrap(obj, stop=_is_mocked)
/usr/lib/python3.6/inspect.py:512: in unwrap
while _is_wrapper(func):
/usr/lib/python3.6/inspect.py:506: in _is_wrapper
return hasattr(f, '__wrapped__') and not stop(f)
.tox/py3/lib/python3.6/site-packages/wandb/util.py:156: in __getattr__
module = self._load()
.tox/py3/lib/python3.6/site-packages/wandb/util.py:139: in _load
module = importlib.import_module(self.__name__)
.tox/py3/lib/python3.6/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:994: in _gcd_import
???
<frozen importlib._bootstrap>:971: in _find_and_load
???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:665: in _load_unlocked
???
<frozen importlib._bootstrap_external>:678: in exec_module
???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
???
.tox/py3/lib/python3.6/site-packages/wandb/fastai/__init__.py:39: in <module>
import fastai
E ModuleNotFoundError: No module named 'fastai'
During handling of the above exception, another exception occurred:
/usr/lib/python3.6/doctest.py:933: in find
self._find(tests, obj, name, module, source_lines, globs, {})
.tox/py3/lib/python3.6/site-packages/_pytest/doctest.py:455: in _find
self, tests, obj, name, module, source_lines, globs, seen
/usr/lib/python3.6/doctest.py:992: in _find
if ((inspect.isroutine(inspect.unwrap(val))
.tox/py3/lib/python3.6/site-packages/_pytest/doctest.py:414: in _mock_aware_unwrap
"https://github.com/pytest-dev/pytest/issues/5080" % (e, obj),
<frozen importlib._bootstrap>:295: in _module_repr
???
.tox/py3/lib/python3.6/site-packages/wandb/util.py:156: in __getattr__
module = self._load()
.tox/py3/lib/python3.6/site-packages/wandb/util.py:139: in _load
module = importlib.import_module(self.__name__)
.tox/py3/lib/python3.6/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:994: in _gcd_import
???
<frozen importlib._bootstrap>:971: in _find_and_load
???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:665: in _load_unlocked
???
<frozen importlib._bootstrap_external>:678: in exec_module
???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
???
.tox/py3/lib/python3.6/site-packages/wandb/fastai/__init__.py:39: in <module>
import fastai
E ModuleNotFoundError: No module named 'fastai'
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Wandb tries (and fails) to import non-existent fastai ... - GitHub
Test imports wandb when running under Tox. Doesn't call anything in it, does not initialize, simply imports. I get an error because it...
Read more >Fastai - Documentation - Weights & Biases - Wandb
If you're using fastai to train your models, W&B has an easy integration using the WandbCallback . Explore the details in interactive docs...
Read more >wandb Changelog - PyUp.io
- `wandb agent` now works on windows. - Nice error message when wandb.log is called without a dict - Keras callback has a...
Read more >The Garden of Forking Paths | Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from Meta ... ⓪ not able to fork the notebook ⓪...
Read more >See raw diff - Hugging Face
ValueResult` - :raise: :exc:`IndexError` if the mapkey does not exist - :raise: ... -201,fastai/fastai,Is the code running in the ipython environment ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Issue-Label Bot is automatically applying the label
bug
to this issue, with a confidence of 0.95. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
Indeed, I saw after check a post on the forums… but at first just followed the instructions on the project page that was confusing.