(Closed) Running heat and heat gaussian from Terminal (macOs)


190
views
0
7 months ago by
This is the error i am getting, which package do i have to install and how can i understand it myself? How do i distinguish the error in between all these lines? Danke.

FileNotFoundError                         Traceback (most recent call last)

<ipython-input-5-282d8f7ecf79> in <module>()

     20 # Define initial value

     21 u_0 = Expression('exp(-a*pow(x[0], 2) - a*pow(x[1], 2))',

---> 22                  degree=2, a=5)

     23 u_n = interpolate(u_0, V)

     24




~/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dolfin/functions/expression.py in __new__(cls, cppcode, *args, **kwargs)

    677                                                 [generic_function_members],

    678                                                 [mesh_function_members],

--> 679                                                 mpi_comm=kwargs.get("mpi_comm"))

    680         cpp_base, members = cpp_base[0], members[0]

    681




~/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dolfin/compilemodules/expressions.py in compile_expressions(cppargs, generic_function_members, mesh_function_members, mpi_comm)

    264         "\n\n".join(code_snippets), classnames,

    265         additional_declarations="\n".join(additional_declarations),

--> 266         mpi_comm=mpi_comm)

    267

    268     return expression_classes, all_members




~/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dolfin/compilemodules/expressions.py in compile_expression_code(code, classnames, module_name, additional_declarations, mpi_comm)

    181     compiled_module = compile_extension_module(

    182         code, additional_declarations=additional_declarations,

--> 183         mpi_comm=mpi_comm)

    184

    185     # Get the compiled class




~/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dolfin/compilemodules/jit.py in mpi_jit(*args, **kwargs)

     68         # Just call JIT compiler when running in serial

     69         if MPI.size(mpi_comm) == 1:

---> 70             return local_jit(*args, **kwargs)

     71

     72         # Default status (0 == ok, 1 == fail)




~/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/dolfin/compilemodules/compilemodule.py in compile_extension_module(code, module_name, additional_declarations, additional_system_headers, mpi_comm, **instant_kwargs)

    601             code=code,

    602             additional_declarations=additional_declarations,

--> 603             **instant_kwargs)

    604

    605     sys.stdout.flush()




~/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/instant/build.py in build_module(modulename, source_directory, code, init_code, additional_definitions, additional_declarations, sources, wrap_headers, local_headers, system_headers, include_dirs, library_dirs, libraries, swigargs, swig_include_dirs, cppargs, lddargs, object_files, arrays, generate_interface, generate_setup, cmake_packages, signature, cache_dir)

    575         # Recompile if necessary

    576         recompile(modulename, module_path, new_compilation_checksum,

--> 577                   build_system)

    578

    579         # --- Load, cache, and return module




~/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/instant/build.py in recompile(modulename, module_path, new_compilation_checksum, build_system)

    149             #cmd = "cmake .";

    150             instant_debug("cmd = %s" % cmd)

--> 151             ret, output = get_status_output(cmd)

    152             write_file(compile_log_filename, output)

    153             if ret != 0:




~/anaconda3/envs/fenicsproject/lib/python3.6/site-packages/instant/output.py in get_status_output(cmd, input, cwd, env)

    150         #       http://www.openfabrics.org/downloads/OFED/release_notes/OFED_3.12_rc1_release_notes#3.03

    151         pipe = subprocess.Popen(cmd, shell=False, cwd=cwd, env=env, stdout=subprocess.PIPE,

--> 152                      stderr=subprocess.STDOUT)

    153

    154         (output, errout) = pipe.communicate(input=input)




~/anaconda3/envs/fenicsproject/lib/python3.6/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors)

    707                                 c2pread, c2pwrite,

    708                                 errread, errwrite,

--> 709                                 restore_signals, start_new_session)

    710         except:

    711             # Cleanup if the child failed starting.




~/anaconda3/envs/fenicsproject/lib/python3.6/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)

   1342                         if errno_num == errno.ENOENT:

   1343                             err_msg += ': ' + repr(err_filename)

-> 1344                     raise child_exception_type(errno_num, err_msg, err_filename)

   1345                 raise child_exception_type(err_msg)

   1346




FileNotFoundError: [Errno 2] No such file or directory: 'cmake': 'cmake'
Community: FEniCS Project
This is an installation problem. I would recommend posting to the Slack, see https://www.allanswered.com/post/nvje/do-not-post-install-or-compile-questions-email-to-fenics-supportgooglegroups-com-or-use-slack/.
written 7 months ago by Jan Blechta  

This post is closed by moderator and no new answer/comment may be added.

Installation question

written 7 months ago by Jan Blechta  
Please login to add an answer/comment or follow this question.
The thread is closed. No new answer/comment may be added.

Similar posts:
Search »