question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ModuleNotFoundError: No module named 'd2go.tools'

See original GitHub issue

Hi, thanks for your great job. I installed the environment as ReadMe said. No erros during setting up environment. But when I executed the example, I came across an ERROR:

~/d2go$ d2go.train_net --config-file ./configs/faster_rcnn_fbnetv3a_C4.yaml
Traceback (most recent call last):
  File "/home/lbc/anaconda3/envs/d2go/bin/d2go.train_net", line 5, in <module>
    from d2go.tools.train_net import cli
ModuleNotFoundError: No module named 'd2go.tools'

But in python interpreter environment, it’s fine to import d2go.tools in current directory. It will report the same error in the up-level dir.

~/d2go$ python
Python 3.6.13 |Anaconda, Inc.| (default, Feb 23 2021, 21:15:04)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from d2go.tools.train_net import cli
** fvcore version of PathManager will be deprecated soon. **
** Please migrate to the version in iopath repo. **
https://github.com/facebookresearch/iopath

>>>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
LegendBCcommented, Mar 6, 2021

Thanks for your reply. I found other submodules fine, and I checked the submodule dir, and I found the reason is that an empty __init__.py file is missing in the tests/ dir. After adding it and installing, everything goes fine.

0reactions
zhanghang1989commented, Mar 16, 2021

I believe it should use all the available gpus. What’s the behavior on your side?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'tools.nnwrap'
It seems command to install torch not is working as expected, instead, you can try to install PyTorch using below command.
Read more >
notebook04660a88f4 | Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from ... import model_zoo ModuleNotFoundError: No module named 'detectron2'.
Read more >
Is there any demo on how to use d2go mask-rcnn model on ...
Hey, I think the d2go demo is already available. ... In case you can not find the demo, D2go demo for android with...
Read more >
importerror: cannot import name 'metanet_pb2' from partially ...
ModuleNotFoundError : No module named 'detectron' ... I installed the latest code of d2go according to revision in #137,but still get this error....
Read more >
Detectron2 - Object Detection with PyTorch - Gilbert Tanner
The new framework is called Detectron2 and is now implemented in PyTorch instead of ... !python -m pip install pyyaml==5.1 # Detectron2 has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found