PyKX TICK.start() / BASIC.start() -> QError: hop. OS reports: Connection refused

workbook Section_4_&_5_Build_Real-Time_Architecture.ipynb cell 14

running ‘simple.start()’ to attempt to start the tickerplant is not working on the sandbox - error picture attached. also attempted to run locally and had a similar error ('2025.06.26T13:38:21.143 pykx.q. OS reports: No such file or directory).

note - simple is defined as
simple = kx.tick.BASIC(
tables = {‘trade’: trade, ‘quote’: quote, ‘aggregate’: aggregate},
ports={‘tickerplant’: 5010, ‘rdb’: 5012, ‘hdb’: 5011},
log_directory = ‘log’,
database = ‘db’
)

Any idea how to fix this?

Not sure why, but on the 3rd attempt at restarting kernel & running the notebook again it worked!

thanks for your help

Can you restart the runtime and rerun all the cells before this one?

Then before you run this cell, add a cell to find the working directory ‘!pwd’, what is it? It should be something like:

/home/jovyan/course-capture-stream-and-query-data-with-pykx/PyKX_Course/database

Then run the cell to start the simple architecture - let me know if you are still getting this error.

Sorry for the slow response.

in sandbox - running ‘!pwd’ returns
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory pwd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

on local machine returns
…/KX_academy/course-capture-stream-and-query-data-with-pykx/PyKX_Course/database