Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Neoarroway opened this issue Mar 29, 2024 · 0 comments

Comments

@Neoarroway
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant