Slicer
Slicer copied to clipboard
Problems during the installation
I have a problem installing your program via python3 running the command python3 photonslicer.py -s STLs\legocog.stl -g True -f False
inside the directory after having downloaded the code with git clone --note the program's name is PhotonSlicer.py not photonslicer.py better updating the reference (it took 5 minutes for me to understand why it didn't found the program, I'm dumb I know). After running the command python3 bla bla bla
I get this enormous error:
/home/lancillotto/.pyxbld/temp.linux-x86_64-3.8/pyrex/rleEncode.c:598:10: fatal error: numpy/arrayobject.h: File o directory non esistente 598 | #include "numpy/arrayobject.h" | ^~~~~~~~~~~~~~~~~~~~~ compilation terminated. Traceback (most recent call last): File "/usr/lib/python3.8/distutils/unixccompiler.py", line 117, in _compile self.spawn(compiler_so + cc_args + [src, '-o', obj] + File "/usr/lib/python3.8/distutils/ccompiler.py", line 910, in spawn spawn(cmd, dry_run=self.dry_run) File "/usr/lib/python3.8/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/usr/lib/python3.8/distutils/spawn.py", line 157, in _spawn_posix raise DistutilsExecError( distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/pyximport/pyximport.py", line 214, in load_module so_path = build_module(module_name, pyxfilename, pyxbuild_dir, File "/usr/lib/python3.8/site-packages/pyximport/pyximport.py", line 186, in build_module so_path = pyxbuild.pyx_to_dll(pyxfilename, extension_mod, File "/usr/lib/python3.8/site-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll dist.run_commands() File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "/usr/lib/python3.8/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/usr/lib/python3.8/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions _build_ext.build_ext.build_extensions(self) File "/usr/lib/python3.8/distutils/command/build_ext.py", line 449, in build_extensions self._build_extensions_serial() File "/usr/lib/python3.8/distutils/command/build_ext.py", line 474, in _build_extensions_serial self.build_extension(ext) File "/usr/lib/python3.8/distutils/command/build_ext.py", line 528, in build_extension objects = self.compiler.compile(sources, File "/usr/lib/python3.8/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/usr/lib/python3.8/distutils/unixccompiler.py", line 120, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "PhotonSlicer.py", line 31, in