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: Building module gpu_nms failed: #29

Open
Harisahmad1881 opened this issue Dec 19, 2020 · 0 comments
Open

ImportError: Building module gpu_nms failed: #29

Harisahmad1881 opened this issue Dec 19, 2020 · 0 comments

Comments

@Harisahmad1881
Copy link

Harisahmad1881 commented Dec 19, 2020

How to fix this error

ImportErrorTraceback (most recent call last)
<ipython-input-119-b58744bc9f98> in <module>()
----> 1 from nms.gpu_nms import gpu_nms

12 frames
/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.pyc in load_module(self, fullname)
    460 
    461 
--> 462 #install args
    463 class PyxArgs(object):
    464     build_dir=True

/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.pyc in load_module(name, pyxfilename, pyxbuild_dir, is_package, build_inplace, language_level, so_path)
    231                 raise exc.with_traceback(tb)
    232             else:
--> 233                 exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
    234     return mod
    235 

/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.pyc in load_module(name, pyxfilename, pyxbuild_dir, is_package, build_inplace, language_level, so_path)
    213                 module_name = name
    214             so_path = build_module(module_name, pyxfilename, pyxbuild_dir,
--> 215                                    inplace=build_inplace, language_level=language_level)
    216         mod = imp.load_dynamic(name, so_path)
    217         if is_package and not hasattr(mod, '__path__'):

/usr/local/lib/python2.7/dist-packages/pyximport/pyximport.pyc in build_module(name, pyxfilename, pyxbuild_dir, inplace, language_level)
    189                                   setup_args=sargs,
    190                                   inplace=inplace,
--> 191                                   reload_support=pyxargs.reload_support)
    192     assert os.path.exists(so_path), "Cannot find: %s" % so_path
    193 

/usr/local/lib/python2.7/dist-packages/pyximport/pyxbuild.pyc in pyx_to_dll(filename, ext, force_rebuild, build_in_temp, pyxbuild_dir, setup_args, reload_support, inplace)
    100     try:
    101         obj_build_ext = dist.get_command_obj("build_ext")
--> 102         dist.run_commands()
    103         so_path = obj_build_ext.get_outputs()[0]
    104         if obj_build_ext.inplace:

/usr/lib/python2.7/distutils/dist.pyc in run_commands(self)
    951         """
    952         for cmd in self.commands:
--> 953             self.run_command(cmd)
    954 
    955     # -- Methods that operate on its Commands --------------------------

/usr/lib/python2.7/distutils/dist.pyc in run_command(self, command)
    970         cmd_obj = self.get_command_obj(command)
    971         cmd_obj.ensure_finalized()
--> 972         cmd_obj.run()
    973         self.have_run[command] = 1
    974 

/usr/local/lib/python2.7/dist-packages/Cython/Distutils/old_build_ext.pyc in run(self)
    184             optimization.disable_optimization()
    185 
--> 186         _build_ext.build_ext.run(self)
    187 
    188     def build_extensions(self):

/usr/lib/python2.7/distutils/command/build_ext.pyc in run(self)
    338 
    339         # Now actually compile and link everything.
--> 340         self.build_extensions()
    341 
    342     def check_extensions_list(self, extensions):

/usr/local/lib/python2.7/dist-packages/Cython/Distutils/old_build_ext.pyc in build_extensions(self)
    192         for ext in self.extensions:
    193             ext.sources = self.cython_sources(ext.sources, ext)
--> 194             self.build_extension(ext)
    195 
    196     def cython_sources(self, sources, extension):

/usr/lib/python2.7/distutils/command/build_ext.pyc in build_extension(self, ext)
    497                                          debug=self.debug,
    498                                          extra_postargs=extra_args,
--> 499                                          depends=ext.depends)
    500 
    501         # XXX -- this is a Vile HACK!

/usr/lib/python2.7/distutils/ccompiler.pyc in compile(self, sources, output_dir, macros, include_dirs, debug, extra_preargs, extra_postargs, depends)
    572             except KeyError:
    573                 continue
--> 574             self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
    575 
    576         # Return *all* object filenames, not just the ones we just built.

/usr/lib/python2.7/distutils/unixccompiler.pyc in _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts)
    122                        extra_postargs)
    123         except DistutilsExecError, msg:
--> 124             raise CompileError, msg
    125 
    126     def create_static_lib(self, objects, output_libname,

ImportError: Building module nms.gpu_nms failed: ["CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1\n"]


image

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

1 participant