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

C++ build system fails is a folder has a space #733

Closed
briandrawert opened this issue Feb 24, 2022 · 0 comments · Fixed by #756 or #789
Closed

C++ build system fails is a folder has a space #733

briandrawert opened this issue Feb 24, 2022 · 0 comments · Fixed by #756 or #789
Assignees
Labels
bug Something isn't working ✔️​ Issue / PR has been resolved
Milestone

Comments

@briandrawert
Copy link
Member

Setup:

mkdir "folder_w_ _a_space"
cd folder_w_\ _a_space/
python3 -m venv venv
source venv/bin/activate
git clone https://github.com/StochSS/GillesPy2
pip install ./GillesPy2/
cd GillesPy2/examples/ExtraModels

Run and error:

python 
Python 3.8.10 (default, Nov 26 2021, 20:14:08) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from tyson_oscillator import Tyson2StateOscillator
>>> model = Tyson2StateOscillator()
>>> from gillespy2 import TauHybridCSolver
>>> result = model.run(solver=TauHybridCSolver)
Traceback (most recent call last):
  File "/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/core/model.py", line 1011, in run
    return solver.run(model=self, t=t, increment=increment, timeout=timeout, **solver_args)
  File "/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/solvers/cpp/tau_hybrid_c_solver.py", line 170, in run
    self = TauHybridCSolver(model, resume=resume)
  File "/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/solvers/cpp/c_solver.py", line 84, in __init__
    self._set_model()
  File "/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/solvers/cpp/c_solver.py", line 310, in _set_model
    self._build(self.model, self.target, self.variable, False)
  File "/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/solvers/cpp/tau_hybrid_c_solver.py", line 157, in _build
    return super()._build(sanitized_model, simulation_name, variable, debug)
  File "/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/solvers/cpp/c_solver.py", line 117, in _build
    return self.build_engine.build_simulation(simulation_name)
  File "/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/solvers/cpp/build/build_engine.py", line 164, in build_simulation
    self.make.build_simulation(simulation_name, template_dir=str(self.template_dir))
  File "/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/solvers/cpp/build/make.py", line 63, in build_simulation
    self.__execute(simulation_name, **kwargs)
  File "/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/solvers/cpp/build/make.py", line 93, in __execute
    raise gillespyError.BuildError(f"Error encountered during execution of Makefile target: '{target}'.\n"
gillespy2.core.gillespyError.BuildError: Error encountered during execution of Makefile target: 'hybrid'.
Return code: 2- stdout: make: Entering directory '/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/solvers/cpp/c_base'
make: Leaving directory '/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/solvers/cpp/c_base'

- stderr: make: *** No rule to make target '/home/brian/folder_w_', needed by '/tmp/gillespy2_build_wsnb7e91/gillespy2_obj/model.o'.  Stop.



During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/core/model.py", line 1022, in run
    raise SimulationError(
gillespy2.core.gillespyError.SimulationError: argument 'solver=<class 'gillespy2.solvers.cpp.tau_hybrid_c_solver.TauHybridCSolver'>' to run() failed.  Reason Given: Error encountered during execution of Makefile target: 'hybrid'.
Return code: 2- stdout: make: Entering directory '/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/solvers/cpp/c_base'
make: Leaving directory '/home/brian/folder_w_ _a_space/venv/lib/python3.8/site-packages/gillespy2/solvers/cpp/c_base'

- stderr: make: *** No rule to make target '/home/brian/folder_w_', needed by '/tmp/gillespy2_build_wsnb7e91/gillespy2_obj/model.o'.  Stop.

@briandrawert briandrawert added the bug Something isn't working label Feb 24, 2022
@briandrawert briandrawert added this to the 1.6.9 milestone Feb 24, 2022
@briandrawert briandrawert linked a pull request Mar 24, 2022 that will close this issue
@briandrawert briandrawert modified the milestones: 1.6.9, 1.6.10 Apr 11, 2022
@BryanRumsey BryanRumsey added the ✔️​ Issue / PR has been resolved label Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ✔️​ Issue / PR has been resolved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants