admin管理员组文章数量:1126452
I'm currently working at a project for university where I run into a problem while working on a Linux server. When I try to run my main.py I get the following output in the console:
ANNarchy 4.8 (4.8.2.3) on linux (posix).
cc1plus: note: obsolete option ‘-I-’ used, please use ‘-iquote’ instead
cc1plus: error: ‘-I-’ specified twice
cc1plus: note: obsolete option ‘-I-’ used, please use ‘-iquote’ instead
Traceback (most recent call last):File "/usr/lib/python3.10/distutils/unixccompiler.py", line 117, in \_compileself.spawn(compiler_so + cc_args + \[src, '-o', obj\] +File "/usr/lib/python3.10/distutils/ccompiler.py", line 910, in spawnspawn(cmd, dry_run=self.dry_run)File "/usr/lib/python3.10/distutils/spawn.py", line 91, in spawnraise DistutilsExecError(distutils.errors.DistutilsExecError: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):File "/afs/university/home/urz/j/jonste/.local/lib/python3.10/site-packages/pyximport/\_pyximport3.py", line 314, in create_moduleso_path = build_module(spec.name, pyxfilename=spec.origin, pyxbuild_dir=self.\_pyxbuild_dir,File "/afs/university/home/urz/j/jonste/.local/lib/python3.10/site-packages/pyximport/\_pyximport3.py", line 197, in build_moduleso_path = pyxbuild.pyx_to_dll(pyxfilename, extension_mod,File "/afs/university/home/urz/j/jonste/.local/lib/python3.10/site-packages/pyximport/pyxbuild.py", line 103, in pyx_to_dlldist.run_commands()File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commandsself.run_command(cmd)File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_commandcmd_obj.run()File "/usr/lib/python3.10/distutils/command/build_ext.py", line 340, in runself.build_extensions()File "/usr/lib/python3.10/distutils/command/build_ext.py", line 449, in build_extensionsself.\_build_extensions_serial()File "/usr/lib/python3.10/distutils/command/build_ext.py", line 474, in \_build_extensions_serialself.build_extension(ext)File "/afs/university/home/urz/j/jonste/.local/lib/python3.10/site-packages/Cython/Distutils/build_ext.py", line 135, in build_extensionsuper(build_ext, self).build_extension(ext)File "/usr/lib/python3.10/distutils/command/build_ext.py", line 529, in build_extensionobjects = selfpilerpile(sources,File "/usr/lib/python3.10/distutils/ccompiler.py", line 574, in compileself.\_compile(obj, src, ext, cc_args, extra_postargs, pp_opts)File "/usr/lib/python3.10/distutils/unixccompiler.py", line 120, in \_compileraise CompileError(msg)distutils.errors.CompileError: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):File "/scratch/jonste/V4RF/code/main.py", line 60, in \<module\>import modelbined as netFile "/scratch/jonste/V4RF/code/model/combined.py", line 34, in \<module\>from model import dorsalFile "/scratch/jonste/V4RF/code/model/dorsal.py", line 25, in \<module\>from model.dorsal_connections import (File "/afs/university/home/urz/j/jonste/.local/lib/python3.10/site-packages/pyximport/\_pyximport3.py", line 332, in create_moduleraise exc.with_traceback(tb)File "/afs/university/home/urz/j/jonste/.local/lib/python3.10/site-packages/pyximport/\_pyximport3.py", line 314, in create_moduleso_path = build_module(spec.name, pyxfilename=spec.origin, pyxbuild_dir=self.\_pyxbuild_dir,File "/afs/university/home/urz/j/jonste/.local/lib/python3.10/site-packages/pyximport/\_pyximport3.py", line 197, in build_moduleso_path = pyxbuild.pyx_to_dll(pyxfilename, extension_mod,File "/afs/university/home/urz/j/jonste/.local/lib/python3.10/site-packages/pyximport/pyxbuild.py", line 103, in pyx_to_dlldist.run_commands()File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commandsself.run_command(cmd)File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_commandcmd_obj.run()File "/usr/lib/python3.10/distutils/command/build_ext.py", line 340, in runself.build_extensions()File "/usr/lib/python3.10/distutils/command/build_ext.py", line 449, in build_extensionsself.\_build_extensions_serial()File "/usr/lib/python3.10/distutils/command/build_ext.py", line 474, in \_build_extensions_serialself.build_extension(ext)File "/afs/university/home/urz/j/jonste/.local/lib/python3.10/site-packages/Cython/Distutils/build_ext.py", line 135, in build_extensionsuper(build_ext, self).build_extension(ext)File "/usr/lib/python3.10/distutils/command/build_ext.py", line 529, in build_extensionobjects = selfpilerpile(sources,File "/usr/lib/python3.10/distutils/ccompiler.py", line 574, in compileself.\_compile(obj, src, ext, cc_args, extra_postargs, pp_opts)File "/usr/lib/python3.10/distutils/unixccompiler.py", line 120, in \_compileraise CompileError(msg)ImportError: Building module model.dorsal_connections failed: \["distutils.errors.CompileError: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1\\n"\]
Since I do not study computer science and my tutor who's working at the faculty of computer science also doesn't know what to do, I'm searching help on here.
I tried to reinstall cython but I did not help.
本文标签:
版权声明:本文标题:python - distutils.errors.CompileError: command 'usrbinx86_64-linux-gnu-gcc' failed with exit code 1 - Stack Ove 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736661710a1946447.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论