Skip to content

themes missing building the rpm package #67

@brancomat

Description

@brancomat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions