adrianzap/softwipe

FileNotFoundError: [Errno 2] No such file or directory: 'cd': 'cd'

Opened this issue · 0 comments

lczech commented

Hi there!

when trying to run softwipe on EPIK, using the softwipe command file

mkdir -p bin
cd bin
cmake ..
make -j4

(and after fixing some issues related to OpenMP not working under conda...)

I get the following error:

/home/lucas/Software/miniconda/envs/softwipe/bin/softwipe . --cc --cmake --no-execution -f build.txt 
 --- Running: COMPILER --- 
Traceback (most recent call last):
  File "/home/lucas/Software/miniconda/envs/softwipe/bin/softwipe", line 33, in <module>
    sys.exit(load_entry_point('SoftWipe==0.1.1', 'console_scripts', 'softwipe')())
  File "/home/lucas/Software/miniconda/envs/softwipe/lib/python3.7/site-packages/softwipe.py", line 437, in main
    args, lines_of_code, program_dir_abs, use_cpp, excluded_paths, args.no_execution)
  File "/home/lucas/Software/miniconda/envs/softwipe/lib/python3.7/site-packages/softwipe.py", line 315, in compile_and_execute_program_with_sanitizers
    weighted_sum_of_compiler_warnings = compile_program(args, lines_of_code, cpp, compiler_flags, excluded_paths)
  File "/home/lucas/Software/miniconda/envs/softwipe/lib/python3.7/site-packages/softwipe.py", line 251, in compile_program
    additional_args=additional_args)
  File "/home/lucas/Software/miniconda/envs/softwipe/lib/python3.7/site-packages/compile_phase.py", line 335, in compile_program_cmake
    excluded_paths)
  File "/home/lucas/Software/miniconda/envs/softwipe/lib/python3.7/site-packages/compile_phase.py", line 267, in parse_make_command_file_and_run_all_commands_in_it
    subprocess.run(split_command, cwd=working_directory, stdout=subprocess.DEVNULL)
  File "/home/lucas/Software/miniconda/envs/softwipe/lib/python3.7/subprocess.py", line 488, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/lucas/Software/miniconda/envs/softwipe/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/home/lucas/Software/miniconda/envs/softwipe/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cd': 'cd'

I think I have specified the command file as described in the help though.

Cheers
Lucas