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

Automated PIP package upload fails #866

Closed
mwouts opened this issue Oct 9, 2021 · 2 comments
Closed

Automated PIP package upload fails #866

mwouts opened this issue Oct 9, 2021 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@mwouts
Copy link
Owner

mwouts commented Oct 9, 2021

Jupytext 1.13.1 should have been uploaded to PIP a few days ago, but the corresponding run ended in error.

Also the following warnings are emitted by jupyter_packaging before the error

  • DeprecatedWarning: create_cmdclass is deprecated as of 0.8 and will be removed in 1.0.
  • DeprecatedWarning: install_npm is deprecated as of 0.8 and will be removed in 1.0. Use npm_builder and wrap_installers

Here is an extract of the logs:

error An unexpected error occurred: "https://registry.yarnpkg.com/@lumino/algorithm/-/algorithm-1.7.0.tgz: Request failed \"404 Not Found\"".
info If you think this is a bug, please open a bug report with the information provided in "/home/runner/work/jupytext/jupytext/packages/labextension/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
setup.py:155: DeprecatedWarning: create_cmdclass is deprecated as of 0.8 and will be removed in 1.0. "
Use `wrap_installers` to handle prebuild steps in cmdclass.
Use `get_data_files` to handle data files.
Use `include_package_data=True` and `MANIFEST.in` for package data.

  data_files_spec=data_files_spec,
setup.py:162: DeprecatedWarning: install_npm is deprecated as of 0.8 and will be removed in 1.0. Use `npm_builder` and `wrap_installers`
  npm=["jlpm"],
Traceback (most recent call last):
  File "setup.py", line 169, in <module>
    setup(**setup_args)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/setuptools/__init__.py", line 144, in setup
    return distutils.core.setup(**attrs)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/jupyter_packaging/setupbase.py", line 640, in run
    [self.run_command(cmd) for cmd in cmds]
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/jupyter_packaging/setupbase.py", line 640, in <listcomp>
    [self.run_command(cmd) for cmd in cmds]
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/jupyter_packaging/setupbase.py", line 321, in run
    c.run()
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/jupyter_packaging/setupbase.py", line 615, in run
    builder()
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/jupyter_packaging/setupbase.py", line 212, in builder
    run(npm_cmd + ['install'], cwd=node_package)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/jupyter_packaging/setupbase.py", line 275, in run
    return subprocess.check_call(cmd, **kwargs)
  File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/subprocess.py", line 363, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/opt/hostedtoolcache/Python/3.7.12/x64/bin/jlpm', 'install']' returned non-zero exit status 1.
@mwouts mwouts added the help wanted Extra attention is needed label Oct 10, 2021
@mwouts
Copy link
Owner Author

mwouts commented Oct 10, 2021

Locally I am able to build a local version of the package, however it includes the node_modules and is thus way too big (43M), which reminds me of #730.

@mwouts
Copy link
Owner Author

mwouts commented Nov 8, 2021

The issue disappeared and jupytext==1.13.1 was just uploaded to pip thanks to this run of the CI: https://github.com/mwouts/jupytext/runs/4144722117

@mwouts mwouts closed this as completed Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant