Is the runTests.py in the stan repo broken?

I’m trying to run some tests in the stan repo and stan/runTests.py produces the following error

pc-2097d:stan ds921$ ./runTests.py src/test/unit/mcmc/hmc/hamiltonians/dense_e_metric_test.cpp  
Traceback (most recent call last):
  File "./runTests.py", line 16, in <module>
    "lib", "stan_math", "runTests.py"))
IOError: [Errno 2] No such file or directory

I’m running on a mac and can give some system info if you think it’s necessary, but I did notice that this version of runTests.py is much shorter than the math library version

It’s giving me trouble as well! But it could also well be that I’m doing something wrong.

Is your python 2.7 or 3.x?

2.7.10. Should I work out how to update?

2.7.15 called with python
3.6.5 called with python3

Are both 2.7 and 3.6 failing.

General rule is to never touch system python.

Can you add a print statement before the error.

print(os.path.join(os.path.dirname(os.path.abspath(__file__)),
            "lib", "stan_math", "runTests.py"))
mathR....

Nevermind. It turns out I hadn’t run git submodule update --init… Sorry!

1 Like