Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-8995

[fiware-stackoverflow] FIWARE Wirecloud Bug; <custom theme> is not a valid WireCloud theme

    Details

      Description

      Created question in FIWARE Q/A platform on 17-05-2016 at 14:05
      Please, ANSWER this question AT https://stackoverflow.com/questions/37276368/fiware-wirecloud-bug-custom-theme-is-not-a-valid-wirecloud-theme

      Question:
      FIWARE Wirecloud Bug; <custom theme> is not a valid WireCloud theme

      Description:
      We have Wirecloud installed on our own server, using the Docker image on Docker Hub (latest = 0.9.1).
      Using the instructions here: https://wirecloud.readthedocs.io/en/latest/development/platform/themes/ we tried to follow the 'Basic themes' section. But is it is not clear where the theme should be placed on the file system.

      1. created the directory structure in the example
      2. created a file _init_.py with one line: parent = "wirecloud.defaulttheme"
      3. created a file _variables.scss and pasted the example into it. Put the file in babblerTheme/static/css/
      4. created a header.png image and placed it in babblerTheme/static/images/logos/
      5. Then updated settings.py with the name of our basic theme with the setting: THEME_ACTIVE = "babblerTheme"
      6. Then ran python manage.py collectstatic --noinput

      we get the error:

      ...File "/usr/local/lib/python2.7/site-packages/wirecloud/platform/themes.py", line 82, in get_theme_metadata'
      raise ValueError("%s is not a valid WireCloud theme" % theme_name)
      ValueError: babblerTheme is not a valid WireCloud theme

      We tried putting the theme directory in the following places without any luck:

      /opt/wirecloud_instance/wirecloud_instance/babblerTheme
      /opt/wirecloud_instance/babblerTheme
      /usr/local/lib/python2.7/site-packages/wirecloud/babblerTheme

      All three places, same uninformative error.

      This should be really easy, but i already spent more than half a day on it. I can work around this bug by changing the contents of the default theme, but i expect that will lead to problems when upgrading Wirecloud.

      What should we be doing to get Wirecloud to pick up our custom theme?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 15:14|CREATED monitor | # answers= 2, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 15:14|CREATED monitor | # answers= 2, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 18:10|UPDATED status: transition Answer| # answers= 2, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 18:10|UPDATED status: transition Answer| # answers= 2, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 21:10|UPDATED status: transition Finish| # answers= 2, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 21:10|UPDATED status: transition Finish| # answers= 2, accepted answer= True

          People

          • Assignee:
            backlogmanager Backlog Manager
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: