Error occurred

from hitchrunpy import ExamplePythonCode
from ensure import Ensure
import hitchbuildpy
import hitchbuild

virtualenv = hitchbuildpy.VirtualenvBuild(
    name="py3.7",
    base_python=hitchbuildpy.PyenvBuild("3.7").with_build_path(
        '/path/to/share_dir/'
    ),
).with_build_path("/path/to/build_dir/")

virtualenv.ensure_built()

pyrunner = ExamplePythonCode(
    virtualenv.bin.python,
    '/path/to/working_dir',
)
pyrunner.with_code('''x =''').run()
hitchrunpy.exceptions.ErrorRunningCode:
Error running code. Output:

  File "examplepythoncode.py", line 56
    x =
      ^
SyntaxError: invalid syntax

Executable specification

Page automatically generated from basic.story.