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
I'm currently setting up image processing dependencies via devbox (but this also applies to general shell.nix setup), but I'm still having errors regarding missing library files. I'm obviously not sure if I added all the required dependencies from nixpkgs based on Ubuntu installation guide.
Note that I ran devbox run -- pipenv run -- mkdocs serve in a GitHub Codespace using a custom Dockerfile based off gitpod/workspace-full image.
gitpod /workspaces/recaptimesquad-wiki (ajhalili2006/setup-devbox-and-pipfile) $ devbox run -- pipenv run -- mkdocs serve
Traceback (most recent call last):
File "/workspaces/recaptimesquad-wiki/.venv/bin/mkdocs", line 8, in<module>sys.exit(cli())
^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/mkdocs/__main__.py", line 270, in serve_command
serve.serve(**kwargs)
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/mkdocs/commands/serve.py", line 59, in serve
config = get_config()
^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/mkdocs/commands/serve.py", line 47, in get_config
config = load_config(
^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/mkdocs/config/base.py", line 378, in load_config
errors, warnings = cfg.validate()
^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/mkdocs/config/base.py", line 230, in validate
run_failed, run_warnings = self._validate()
^^^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/mkdocs/config/base.py", line 188, in _validate
self[key] = config_option.validate(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/mkdocs/config/config_options.py", line 182, in validate
return self.run_validation(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/mkdocs/config/config_options.py", line 1064, in run_validation
self.load_plugin_with_namespace(name, cfg)
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/mkdocs/config/config_options.py", line 1100, in load_plugin_with_namespace
return (name, self.load_plugin(name, config))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/mkdocs/config/config_options.py", line 1118, in load_plugin
plugin_cls = self.installed_plugins[name].load()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.devbox/nix/profile/default/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.devbox/nix/profile/default/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/material/plugins/social/plugin.py", line 53, in<module>
from cairosvg import svg2png
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/cairosvg/__init__.py", line 26, in<module>
from . import surface # noqa isort:skip
^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/cairosvg/surface.py", line 9, in<module>
import cairocffi as cairo
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/cairocffi/__init__.py", line 47, in<module>
cairo = dlopen(
^^^^^^^
File "/workspaces/recaptimesquad-wiki/.venv/lib/python3.11/site-packages/cairocffi/__init__.py", line 44, in dlopen
raise OSError(error_message) # pragma: no cover
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: no library called "cairo-2" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so.2': /workspaces/recaptimesquad-wiki/.devbox/nix/profile/default/lib/libz.so.1: version `ZLIB_1.2.9' not found (required by /workspaces/recaptimesquad-wiki/.devbox/nix/profile/default/lib/libpng16.so.16). Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.so.2'cannot load library 'libcairo.so.2': /workspaces/recaptimesquad-wiki/.devbox/nix/profile/default/lib/libz.so.1: version `ZLIB_1.2.9' not found (required by /workspaces/recaptimesquad-wiki/.devbox/nix/profile/default/lib/libpng16.so.16). Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.so.2'cannot load library 'libcairo.2.dylib': libcairo.2.dylib: cannot open shared object file: No such file or directory. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo.2.dylib'cannot load library 'libcairo-2.dll': libcairo-2.dll: cannot open shared object file: No such file or directory. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libcairo-2.dll'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The why
I'm currently setting up image processing dependencies via
devbox(but this also applies to generalshell.nixsetup), but I'm still having errors regarding missing library files. I'm obviously not sure if I added all the required dependencies from nixpkgs based on Ubuntu installation guide.If someone needs to reproduce this, here's the devbox config I use: https://github.com/ajhalili2006/recaptimesquad-wiki/blob/a1b4eaf394145572b176dd891061a5f700cc34ed/devbox.json (or if opening within Gitpod/GitHub Codespaces, switch to
ajhalili2006/setup-devbox-and-pipfilebranch)Log
Note that I ran
devbox run -- pipenv run -- mkdocs servein a GitHub Codespace using a custom Dockerfile based offgitpod/workspace-fullimage.Beta Was this translation helpful? Give feedback.
All reactions