Skip to content

Conversation

@simerda
Copy link

@simerda simerda commented Apr 11, 2023

When creating the virtual environment on MacOS (arch64 M1 processor) using conda forge the process fails with the following error message:

ERROR conda.core.link:_execute(740): An error occurred while installing package 'conda-forge::rise-5.7.1-py310hbe9552e_2'.
Rolling back transaction: done

LinkError: post-link script failed for package conda-forge::rise-5.7.1-py310hbe9552e_2
location of failed script: /opt/homebrew/Caskroom/miniforge/base/envs/python-intro/bin/.rise-post-link.sh
==> script messages <==
<None>
==> script output <==
stdout: 
stderr: Traceback (most recent call last):
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/bin/jupyter-nbextension", line 10, in <module>
    sys.exit(main())
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/jupyter_core/application.py", line 277, in launch_instance
    return super().launch_instance(argv=argv, **kwargs)
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/traitlets/config/application.py", line 1043, in launch_instance
    app.start()
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/notebook/nbextensions.py", line 972, in start
    super().start()
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/jupyter_core/application.py", line 266, in start
    self.subapp.start()
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/notebook/nbextensions.py", line 882, in start
    self.toggle_nbextension_python(self.extra_args[0])
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/notebook/nbextensions.py", line 855, in toggle_nbextension_python
    return toggle(module,
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/notebook/nbextensions.py", line 470, in enable_nbextension_python
    return _set_nbextension_state_python(True, module, user, sys_prefix,
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/notebook/nbextensions.py", line 368, in _set_nbextension_state_python
    m, nbexts = _get_nbextension_metadata(module)
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/notebook/nbextensions.py", line 1107, in _get_nbextension_metadata
    m = import_item(module)
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/traitlets/utils/importstring.py", line 38, in import_item
    return __import__(parts[0])
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/rise/__init__.py", line 3, in <module>
    __version__ = pkg_resources.require("rise")[0].version
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/pkg_resources/__init__.py", line 966, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/pkg_resources/__init__.py", line 827, in resolve
    dist = self._resolve_dist(
  File "/opt/homebrew/Caskroom/miniforge/base/envs/python-intro/lib/python3.10/site-packages/pkg_resources/__init__.py", line 868, in _resolve_dist
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'webcolors>=1.11; extra == "format-nongpl"' distribution was not found and is required by jsonschema

return code: 1

()

system info:
Darwin Jans-MacBook-Air.local 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 21:00:41 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T8103 arm64

This PR fixes it by adding 2 dependencies into environment.yml: jsonschema-with-format-nongpl and webcolors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant