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

themes missing building the rpm package #67

Open
brancomat opened this issue Dec 29, 2023 · 0 comments
Open

themes missing building the rpm package #67

brancomat opened this issue Dec 29, 2023 · 0 comments

Comments

@brancomat
Copy link

Following the doc, I built the rpm package:

python3 setup.py bdist_rpm \
   --requires="python3-inotify python3-markdown python3-docutils python3-jinja2 python3-pytz python3-dateutil python3-pyyaml python3-pillow"

and then installed it and followed the "A new blog in under one minute" tutorial, launching ssite show and obtaining this error:

$ ssite show
Traceback (most recent call last):
  File "/usr/bin/ssite", line 35, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/bin/ssite", line 29, in main
    return handler.run()
           ^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/staticsite/cmd/serve/__init__.py", line 58, in run
    self.start_server()
  File "/usr/lib/python3.11/site-packages/staticsite/cmd/serve/__init__.py", line 41, in start_server
    app.reload()
  File "/usr/lib/python3.11/site-packages/staticsite/cmd/serve/server.py", line 176, in reload
    self.site.load()
  File "/usr/lib/python3.11/site-packages/staticsite/site.py", line 489, in load
    self.load_theme()
  File "/usr/lib/python3.11/site-packages/staticsite/site.py", line 367, in load_theme
    self._theme = Theme.create(self, self.settings.THEME)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/staticsite/theme.py", line 238, in create
    return cls(site, name, loader.load(name))
                           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/staticsite/theme.py", line 51, in load
    self.load_configs(name)
  File "/usr/lib/python3.11/site-packages/staticsite/theme.py", line 80, in load_configs
    config = self.load_config(self.find_root(name), name)
                              ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/staticsite/theme.py", line 97, in find_root
    raise ThemeNotFoundError(f"Theme {name!r} not found in {self.search_paths!r}")
staticsite.theme.ThemeNotFoundError: Theme 'default' not found in ['/usr/bin/themes', '/usr/share/staticsite/themes']

In the rpm package seems to be missing the "themes" directory.

If I launch the same command from the git checkout with:

./ssite show $my_site_path

everything seems to work fine.

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

No branches or pull requests

1 participant