Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named 'build' #47

Open
frankmecial opened this issue Nov 29, 2022 · 1 comment
Open

ImportError: No module named 'build' #47

frankmecial opened this issue Nov 29, 2022 · 1 comment

Comments

@frankmecial
Copy link

i got the following errors

(total3D) G:\Total3DUnderstanding-master>python main.py configs/total3d.yaml --mode train
out\total3d\20221129161655
['external/pyTorchChamferDistance/build']
Traceback (most recent call last):
File "main.py", line 21, in
from net_utils.utils import initiate_environment
File "G:\Total3DUnderstanding-master\net_utils\utils.py", line 12, in
from models.registers import METHODS
File "G:\Total3DUnderstanding-master\models_init_.py", line 1, in
from . import total3d, mgnet
File "G:\Total3DUnderstanding-master\models\mgnet_init_.py", line 1, in
from . import modules, training, config, dataloader
File "G:\Total3DUnderstanding-master\models\mgnet\config.py", line 5, in
from .testing import Tester
File "G:\Total3DUnderstanding-master\models\mgnet\testing.py", line 8, in
from external.pyTorchChamferDistance.chamfer_distance import ChamferDistance
File "G:\Total3DUnderstanding-master\external\pyTorchChamferDistance\chamfer_distance_init_.py", line 1, in
from .chamfer_distance import ChamferDistance
File "G:\Total3DUnderstanding-master\external\pyTorchChamferDistance\chamfer_distance\chamfer_distance.py", line 8, in
build_directory="external/pyTorchChamferDistance/build")
File "C:\Users\moo-nin\anaconda3\envs\total3D\lib\site-packages\torch\utils\cpp_extension.py", line 644, in load
is_python_module)
File "C:\Users\moo-nin\anaconda3\envs\total3D\lib\site-packages\torch\utils\cpp_extension.py", line 824, in _jit_compile
return _import_module_from_library(name, build_directory, is_python_module)
File "C:\Users\moo-nin\anaconda3\envs\total3D\lib\site-packages\torch\utils\cpp_extension.py", line 967, in _import_module_from_library
file, path, description = imp.find_module(module_name, [path])
File "C:\Users\moo-nin\anaconda3\envs\total3D\lib\imp.py", line 298, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named 'build'

It looks like some files should in "build" disapper, how to solve this problem?

@yinyunie
Copy link
Collaborator

Hi,

Have you tried to deploy it on Ubuntu? because this code is developed under Ubuntu 16.04. It should work on any other Ubuntu system.

Best,
Yinyu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants