Skip to content

results = model.run() CalledProcessError: + SimulationError: Compilation of solver failed, return_code=2 #360

@Neoarroway

Description

@Neoarroway

Window 10
python 3.11
pip install successful.
Try to run the examples in jupyter notebooks. These are the errors.


CalledProcessError Traceback (most recent call last)
File D:\pywd\SSA\sppy\SpatialPy-main\spatialpy\solvers\solver.py:492, in Solver.compile(self, debug, profile)
491 try:
--> 492 result = subprocess.check_output(make_cmd, stderr=subprocess.STDOUT)
493 if self.debug_level > 1:

File D:\Enviroments\anaconda3\envs\sppyv2\Lib\subprocess.py:465, in check_output(timeout, *popenargs, **kwargs)
463 kwargs['input'] = empty
--> 465 return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
466 **kwargs).stdout

File D:\Enviroments\anaconda3\envs\sppyv2\Lib\subprocess.py:569, in run(input, capture_output, timeout, check, *popenargs, **kwargs)
568 if check and retcode:
--> 569 raise CalledProcessError(retcode, process.args,
570 output=stdout, stderr=stderr)
571 return CompletedProcess(process.args, retcode, stdout, stderr)

CalledProcessError: Command '['D:\Enviroments\anaconda3\envs\sppyv2\python.exe', '-m', 'SCons', '-CC:\Users\taiar\AppData\Local\Temp\spatialpy_build_berydhpb', '-fD:\pywd\SSA\sppy\SpatialPy-main\spatialpy\solvers/c_base/ssa_sdpd-c-simulation-engine/build/SConstruct', 'ROOT=D:\pywd\SSA\sppy\SpatialPy-main\spatialpy\solvers/c_base/ssa_sdpd-c-simulation-engine', 'ROOTINC=D:\pywd\SSA\sppy\SpatialPy-main\spatialpy\solvers/c_base/ssa_sdpd-c-simulation-engine', 'COREDIR=C:\Users\taiar\AppData\Local\Temp\spatialpy_core\taiar', 'MODEL=C:\Users\taiar\AppData\Local\Temp\spatialpy_build_berydhpb\SpatialBirthDeath_generated_model.cpp', 'BUILD=C:\Users\taiar\AppData\Local\Temp\spatialpy_build_berydhpb']' returned non-zero exit status 2.

During handling of the above exception, another exception occurred:

SimulationError Traceback (most recent call last)
Cell In[5], line 1
----> 1 results = model.run()

File D:\pywd\SSA\sppy\SpatialPy-main\spatialpy\core\model.py:1055, in Model.run(self, number_of_trajectories, seed, timeout, number_of_threads, debug_level, debug, profile)
1051 from spatialpy.solvers.solver import Solver # pylint: disable=import-outside-toplevel
1053 sol = Solver(self, debug_level=debug_level)
-> 1055 return sol.run(number_of_trajectories=number_of_trajectories, seed=seed, timeout=timeout,
1056 number_of_threads=number_of_threads, debug=debug, profile=profile)

File D:\pywd\SSA\sppy\SpatialPy-main\spatialpy\solvers\solver.py:544, in Solver.run(self, number_of_trajectories, seed, timeout, number_of_threads, debug, profile, verbose)
542 # Check if compiled, call compile() if not.
543 if not self.is_compiled:
--> 544 self.compile(debug=debug, profile=profile)
546 # Execute the solver
547 for run_ndx in range(number_of_trajectories):

File D:\pywd\SSA\sppy\SpatialPy-main\spatialpy\solvers\solver.py:500, in Solver.compile(self, debug, profile)
498 except Exception:
499 pass
--> 500 raise SimulationError(f"Compilation of solver failed, return_code={err.returncode}")
501 except OSError as err:
502 cmd = " ".join(make_cmd)

SimulationError: Compilation of solver failed, return_code=2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions