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

Can't run demo #113

Open
Dekermanjian opened this issue Mar 13, 2024 · 10 comments
Open

Can't run demo #113

Dekermanjian opened this issue Mar 13, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@Dekermanjian
Copy link

I am unable to get the demo to build following the instructions in the README of this repo.

I am getting the following error:

InvalidArchiveError('Error with archive C:\\Users\\Username\\miniconda3\\pkgs\\pillow-10.2.0-hf51ec75_0.tar.bz2.  You probably need to delete and re-do)
InvalidArchiveError('Error with archive C:\\Users\\Username\\miniconda3\\pkgs\\ipython-8.22.2-py311had7285e_0.tar.bz2.  You probably need to delete and)
InvalidArchiveError('Error with archive C:\\Users\\Username\\miniconda3\\pkgs\\pandas-1.5.3-h5aab7b2_0.tar.bz2.  You probably need to delete and re-dow)
InvalidArchiveError('Error with archive C:\\Users\\Username\\miniconda3\\pkgs\\python-3.11.3-h_hash_24_cpython.tar.bz2.  You probably need to delete an)

[VoiciBuildApp] ERROR | [lite] [post_build] [jupyterlite-xeus] [ERR] Command '['C:\\Users\\Username\\miniconda3\\condabin\\conda.BAT', 'install', '--yes', '--prefix', WindowsPath('C:/Users/JONATH~1/AppData/Local/Temp/tmpqx1g5bpx/env/envs/voici'), '-c', 'https://repo.mamba.pm/emscripten-forge', '-c', 'conda-forge', 'xeus-python', 'pandas', 'bqplot', 'ipycanvas', 'ipywidgets']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "C:\Users\Username\miniconda3\envs\adhoc\Lib\site-packages\doit\doit_cmd.py", line 294, in run
    return command.parse_execute(args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Username\miniconda3\envs\adhoc\Lib\site-packages\doit\cmd_base.py", line 150, in parse_execute
    return self.execute(params, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Username\miniconda3\envs\adhoc\Lib\site-packages\doit\cmd_base.py", line 570, in execute
    return self._execute(**exec_params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Username\miniconda3\envs\adhoc\Lib\site-packages\doit\cmd_run.py", line 265, in _execute
    return runner.run_all(self.control.task_dispatcher())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Username\miniconda3\envs\adhoc\Lib\site-packages\doit\runner.py", line 254, in run_all
    self.run_tasks(task_dispatcher)
  File "C:\Users\Username\miniconda3\envs\adhoc\Lib\site-packages\doit\runner.py", line 213, in run_tasks
    node = task_dispatcher.generator.send(node)

Any help would be appreciated.

@Dekermanjian Dekermanjian added the bug Something isn't working label Mar 13, 2024
@martinRenou
Copy link
Member

Thanks for opening an issue. Do you see other errors prior to this?

@trungleduc
Copy link
Member

it looks like an issue of jupyterlite-xeus on Windows

@jgunstone
Copy link

not sure if its related but the past few times I've tried to run the live demo linked in the README get a permanent spin

image

@martinRenou
Copy link
Member

@jgunstone can you try from a private window? Just to make sure you're not hitting cache

@parthi2929
Copy link

parthi2929 commented Apr 16, 2024

Any resolution? I am also getting same issue in Windows.. I used "Use this template" created new repo, and ran voice content/demo.ipynb from root folder.

[VoiciBuildApp] ERROR | [lite] [post_build] [jupyterlite-xeus] [ERR] Command '['C:\\Users\\PC-NAME\\miniconda3\\condabin\\conda.BAT', 'create', '--yes', '--prefix', WindowsPath('C:/Users/USER~1/AppData/Local/Temp/tmpzx8z5mya/env/envs/voici'), '-c', 'https://repo.mamba.pm/emscripten-forge', '-c', 'conda-forge']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\doit\doit_cmd.py", line 294, in run
    return command.parse_execute(args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\doit\cmd_base.py", line 150, in parse_execute
    return self.execute(params, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\doit\cmd_base.py", line 570, in execute
    return self._execute(**exec_params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\doit\cmd_run.py", line 265, in _execute
    return runner.run_all(self.control.task_dispatcher())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\doit\runner.py", line 254, in run_all
    self.run_tasks(task_dispatcher)
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\doit\runner.py", line 213, in run_tasks
    node = task_dispatcher.generator.send(node)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\doit\control.py", line 629, in _dispatcher_generator
    next_step = node.step()
                ^^^^^^^^^^^
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\doit\control.py", line 336, in step
    return next(self.generator)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\doit\control.py", line 345, in _func
    for value in decorated(*args, **kwargs):
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\doit\control.py", line 473, in _add_task
    new_tasks = generate_tasks(to_load, task_gen, ref.__doc__)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\doit\loader.py", line 390, in generate_tasks
    for task_dict, x_doc in flat_generator(gen_result, gen_doc):
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\doit\loader.py", line 27, in flat_generator
    for item in gen:
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\jupyterlite_core\manager.py", line 138, in _delayed_gather
    yield from _gather()
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\jupyterlite_core\manager.py", line 131, in _gather
    raise error
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\jupyterlite_core\manager.py", line 123, in _gather
    for task in getattr(addon, attr)(self):
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\jupyterlite_xeus\add_on.py", line 116, in post_build
    self.create_prefix()
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\jupyterlite_xeus\add_on.py", line 140, in create_prefix
    create_conda_env_from_env_file(root_prefix, yaml_content, env_file.parent)
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\jupyterlite_xeus\create_conda_env.py", line 53, in create_conda_env_from_env_file
    create_conda_env_from_specs(
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\jupyterlite_xeus\create_conda_env.py", line 69, in create_conda_env_from_specs
    _create_conda_env_from_specs_impl(
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\jupyterlite_xeus\create_conda_env.py", line 129, in _create_conda_env_from_specs_impl
    return _create_env_with_config(CONDA_COMMAND, prefix_path, specs, channels_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\site-packages\jupyterlite_xeus\create_conda_env.py", line 139, in _create_env_with_config
    subprocess_run(
  File "C:\Users\PC-NAME\miniconda3\envs\dataviz2\Lib\subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\PC-NAME\\miniconda3\\condabin\\conda.BAT', 'create', '--yes', '--prefix', WindowsPath('C:/Users/USER~1/AppData/Local/Temp/tmpzx8z5mya/env/envs/voici'), '-c', 'https://repo.mamba.pm/emscripten-forge', '-c', 'conda-forge']' returned non-zero exit status 1.

@trungleduc
Copy link
Member

@parthi2929 jupyterlite_xeus does not work well with Windows yet (jupyterlite/xeus#56)

@jgunstone
Copy link

@jgunstone can you try from a private window? Just to make sure you're not hitting cache

this sorted it - thanks

@martinRenou
Copy link
Member

@parthi2929 are you able to run C:\\Users\\PC-NAME\\miniconda3\\condabin\\conda.BAT create --yes --prefix 'C:/Users/USER~1/AppData/Local/Temp/tmpzx8z5mya/env/envs/voici' -c https://repo.mamba.pm/emscripten-forge -c conda-forge on this machine and show us the output?

@parthi2929
Copy link

@martinRenou Please find it below..

The system cannot find the path specified.
Channels:
 - https://repo.mamba.pm/emscripten-forge
 - conda-forge
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\Users\USER~1\AppData\Local\Temp\tmpzx8z5mya\env\envs\voici



Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate C:\Users\USER~1\AppData\Local\Temp\tmpzx8z5mya\env\envs\voici
#
# To deactivate an active environment, use
#
#     $ conda deactivate

@parthi2929
Copy link

If could be helpful, my where conda is

$ where conda
C:\Users\PC-NAME\miniconda3\condabin\conda.bat
C:\Users\PC-NAME\miniconda3\Library\bin\conda.bat
C:\Users\PC-NAME\miniconda3\Scripts\conda.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants