You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running voici build notebook.ipynb, the command fails with the error RuntimeError: host_dir must be a directory: /home/sapristi/dev/tests_voici/_output/files
EDIT I thought this was specific to build, but I just realized that serve now fails as well, but didn't fail before - there's probably something wrong in my setup :(
Ok so voici notebook.ipynb works, but if that was not run, both voici build notebook.ipynb and voici serve notebook.ipynb fails
Stacktrace:
Traceback (most recent call last):
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/doit_cmd.py", line 294, in run
return command.parse_execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/cmd_base.py", line 150, in parse_execute
return self.execute(params, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/cmd_base.py", line 570, in execute
return self._execute(**exec_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/cmd_run.py", line 265, in _execute
return runner.run_all(self.control.task_dispatcher())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/runner.py", line 254, in run_all
self.run_tasks(task_dispatcher)
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/runner.py", line 213, in run_tasks
node = task_dispatcher.generator.send(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/control.py", line 629, in _dispatcher_generator
next_step = node.step()
^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/control.py", line 336, in step
return next(self.generator)
^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/control.py", line 345, in _func
for value in decorated(*args, **kwargs):
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/control.py", line 473, in _add_task
new_tasks = generate_tasks(to_load, task_gen, ref.__doc__)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/loader.py", line 390, in generate_tasks
for task_dict, x_doc in flat_generator(gen_result, gen_doc):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/loader.py", line 27, in flat_generator
for item in gen:
^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_core/manager.py", line 138, in _delayed_gather
yield from _gather()
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_core/manager.py", line 131, in _gather
raise error
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_core/manager.py", line 123, in _gather
for task in getattr(addon, attr)(self):
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 127, in post_build
yield from self.copy_kernels_from_prefix()
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 179, in copy_kernels_from_prefix
yield from self.copy_kernel(kernel_dir, kernel_wasm, kernel_js)
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 261, in copy_kernel
yield from self.pack_prefix(kernel_dir=kernel_dir)
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 351, in pack_prefix
pack_directory(
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/empack/pack.py", line 233, in pack_directory
raise RuntimeError(error)
RuntimeError: host_dir must be a directory: /home/sapristi/dev/tests_voici/_output/files
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
jupyterlite-xeus:copy:xpython:logo-64x64.png
jupyterlite-xeus:copy:xpython:logo-32x32.png
jupyterlite-xeus:copy:xpython:logo-svg.svg
jupyterlite-xeus:copy:xpython:binaries
jupyterlite-xeus:copy:xpython:kernel.json
[VoiciBuildApp] ERROR | [lite] [post_build] [jupyterlite-xeus] [ERR] host_dir must be a directory: /home/sapristi/dev/tests_voici/_output/files
Traceback (most recent call last):
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/doit_cmd.py", line 294, in run
return command.parse_execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/cmd_base.py", line 150, in parse_execute
return self.execute(params, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/cmd_base.py", line 570, in execute
return self._execute(**exec_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/cmd_run.py", line 265, in _execute
return runner.run_all(self.control.task_dispatcher())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/runner.py", line 254, in run_all
self.run_tasks(task_dispatcher)
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/runner.py", line 213, in run_tasks
node = task_dispatcher.generator.send(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/control.py", line 629, in _dispatcher_generator
next_step = node.step()
^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/control.py", line 336, in step
return next(self.generator)
^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/control.py", line 345, in _func
for value in decorated(*args, **kwargs):
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/control.py", line 473, in _add_task
new_tasks = generate_tasks(to_load, task_gen, ref.doc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/loader.py", line 390, in generate_tasks
for task_dict, x_doc in flat_generator(gen_result, gen_doc):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/loader.py", line 27, in flat_generator
for item in gen:
^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_core/manager.py", line 138, in _delayed_gather
yield from _gather()
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_core/manager.py", line 131, in _gather
raise error
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_core/manager.py", line 123, in _gather
for task in getattr(addon, attr)(self):
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 127, in post_build
yield from self.copy_kernels_from_prefix()
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 179, in copy_kernels_from_prefix
yield from self.copy_kernel(kernel_dir, kernel_wasm, kernel_js)
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 261, in copy_kernel
yield from self.pack_prefix(kernel_dir=kernel_dir)
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 351, in pack_prefix
pack_directory(
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/empack/pack.py", line 233, in pack_directory
raise RuntimeError(error)
RuntimeError: host_dir must be a directory: /home/sapristi/dev/tests_voici/_output/files
The text was updated successfully, but these errors were encountered:
Description
When running
voici build notebook.ipynb
, the command fails with the errorRuntimeError: host_dir must be a directory: /home/sapristi/dev/tests_voici/_output/files
EDIT I thought this was specific to
build
, but I just realized thatserve
now fails as well, but didn't fail before - there's probably something wrong in my setup :(voici notebook.ipynb
works, but if that was not run, bothvoici build notebook.ipynb
andvoici serve notebook.ipynb
failsStacktrace:
Reproduce
Context
Troubleshoot Output
Command Line Output
Package Version Build Channel Size
─────────────────────────────────────────────────────────────────────────────────────────────────────
Install:
─────────────────────────────────────────────────────────────────────────────────────────────────────
Summary:
Install: 35 packages
Total download: 0 B
─────────────────────────────────────────────────────────────────────────────────────────────────────
Downloading and Extracting Packages:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
jupyterlite-xeus:copy:xpython:logo-64x64.png
jupyterlite-xeus:copy:xpython:logo-32x32.png
jupyterlite-xeus:copy:xpython:logo-svg.svg
jupyterlite-xeus:copy:xpython:binaries
jupyterlite-xeus:copy:xpython:kernel.json
[VoiciBuildApp] ERROR | [lite] [post_build] [jupyterlite-xeus] [ERR] host_dir must be a directory: /home/sapristi/dev/tests_voici/_output/files
Traceback (most recent call last):
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/doit_cmd.py", line 294, in run
return command.parse_execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/cmd_base.py", line 150, in parse_execute
return self.execute(params, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/cmd_base.py", line 570, in execute
return self._execute(**exec_params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/cmd_run.py", line 265, in _execute
return runner.run_all(self.control.task_dispatcher())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/runner.py", line 254, in run_all
self.run_tasks(task_dispatcher)
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/runner.py", line 213, in run_tasks
node = task_dispatcher.generator.send(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/control.py", line 629, in _dispatcher_generator
next_step = node.step()
^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/control.py", line 336, in step
return next(self.generator)
^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/control.py", line 345, in _func
for value in decorated(*args, **kwargs):
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/control.py", line 473, in _add_task
new_tasks = generate_tasks(to_load, task_gen, ref.doc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/loader.py", line 390, in generate_tasks
for task_dict, x_doc in flat_generator(gen_result, gen_doc):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/doit/loader.py", line 27, in flat_generator
for item in gen:
^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_core/manager.py", line 138, in _delayed_gather
yield from _gather()
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_core/manager.py", line 131, in _gather
raise error
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_core/manager.py", line 123, in _gather
for task in getattr(addon, attr)(self):
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 127, in post_build
yield from self.copy_kernels_from_prefix()
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 179, in copy_kernels_from_prefix
yield from self.copy_kernel(kernel_dir, kernel_wasm, kernel_js)
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 261, in copy_kernel
yield from self.pack_prefix(kernel_dir=kernel_dir)
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/jupyterlite_xeus/add_on.py", line 351, in pack_prefix
pack_directory(
File "/home/sapristi/dev/tests_voici/.venv/lib/python3.12/site-packages/empack/pack.py", line 233, in pack_directory
raise RuntimeError(error)
RuntimeError: host_dir must be a directory: /home/sapristi/dev/tests_voici/_output/files
The text was updated successfully, but these errors were encountered: