collectstatic failing with 'NoneType' object is not iterable

Bug #1662180 reported by David Moreau Simard
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
David Moreau Simard

Bug Description

We started seeing build failures in packaging Horizon for RDO recently and the problems seem to correlate around which causes the following stack trace:

DEBUG: + /usr/bin/python collectstatic --noinput --clear
DEBUG: Traceback (most recent call last):
DEBUG: File "", line 23, in <module>
DEBUG: execute_from_command_line(sys.argv)
DEBUG: File "/usr/lib/python2.7/site-packages/django/core/management/", line 354, in execute_from_command_line
DEBUG: utility.execute()
DEBUG: File "/usr/lib/python2.7/site-packages/django/core/management/", line 303, in execute
DEBUG: File "/usr/lib/python2.7/site-packages/django/conf/", line 48, in __getattr__
DEBUG: self._setup(name)
DEBUG: File "/usr/lib/python2.7/site-packages/django/conf/", line 44, in _setup
DEBUG: self._wrapped = Settings(settings_module)
DEBUG: File "/usr/lib/python2.7/site-packages/django/conf/", line 92, in __init__
DEBUG: mod = importlib.import_module(self.SETTINGS_MODULE)
DEBUG: File "/usr/lib64/python2.7/importlib/", line 37, in import_module
DEBUG: __import__(name)
DEBUG: File "/builddir/build/BUILD/horizon-", line 410, in <module>
DEBUG: File "/builddir/build/BUILD/horizon-", line 261, in get_xstatic_dirs
DEBUG: for file in files:
DEBUG: TypeError: 'NoneType' object is not iterable

It looks as if the value should be an empty list (which is iterable) rather than None.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master

Changed in horizon:
assignee: nobody → David Moreau Simard (dmsimard)
status: New → In Progress
Revision history for this message
David Moreau Simard (dmsimard) wrote :

This turned out to be because the minimum provided version by upstream horizon reqs.txt did not provide a .MAIN for those two modules.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by David Moreau Simard (<email address hidden>) on branch: master
Reason: See comment in bug

Revision history for this message
David Moreau Simard (dmsimard) wrote :

xstatic packages being bumped in requirements.txt:

Changed in horizon:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.