yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #52248
[Bug 1569642] Re: horizon 9.0.0 with compress error
[Expired for OpenStack Dashboard (Horizon) because there has been no
activity for 60 days.]
** Changed in: horizon
Status: Incomplete => Expired
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1569642
Title:
horizon 9.0.0 with compress error
Status in OpenStack Dashboard (Horizon):
Expired
Bug description:
windows 10,python 2.7.11 x86
When I use python manager.py compress --force
Give me the error
D:\venv\Scripts\python.exe "D:\Program Files\JetBrains\PyCharm 2016.1\helpers\pycharm\django_manage.py" compress --force M:/horizon-9.0.0
Found 'compress' tags in:
M:\horizon-9.0.0\openstack_dashboard\templates\_stylesheets.html
M:\horizon-9.0.0\openstack_dashboard\templates\horizon\_scripts.html
M:\horizon-9.0.0\openstack_dashboard\templates\horizon\_conf.html
Compressing... CommandError: An error occurred during rendering M:\horizon-9.0.0\openstack_dashboard\templates\_stylesheets.html: Error parsing block:
@import "/themes/default/variables";
@import "/dashboard/scss/horizon.scss";
@import "/app/app";
@import '/dashboard/project/containers/_containers.scss';
@import '/dashboard/developer/developer.scss';
@import "/themes/default/styles";
on line 1 of u'string:2330f72e9784e4fd:\n // My Themes\n@import "/themes/default/variables";\n\n// Horizon\n@import "/dashboard/scss/horizon.'
Traceback:
File "D:\venv\lib\site-packages\scss\compiler.py", line 374, in manage_children
self._manage_children_impl(rule, scope)
File "D:\venv\lib\site-packages\scss\compiler.py", line 403, in _manage_children_impl
method(calculator, rule, scope, block)
File "D:\venv\lib\site-packages\scss\compiler.py", line 856, in _at_import
source = extension.handle_import(name, self, rule)
File "D:\venv\lib\site-packages\django_pyscss\extension\django.py", line 42, in handle_import
full_filename, storage = get_file_and_storage(str(search_path / filename))
File "D:\venv\lib\site-packages\django_pyscss\utils.py", line 47, in get_file_and_storage
name, storage = get_file_from_storage(filename)
File "D:\venv\lib\site-packages\django_pyscss\utils.py", line 25, in get_file_from_storage
filename = staticfiles_storage.path(filename)
File "D:\venv\lib\site-packages\django\contrib\staticfiles\storage.py", line 51, in path
return super(StaticFilesStorage, self).path(name)
File "D:\venv\lib\site-packages\django\core\files\storage.py", line 307, in path
return safe_join(self.location, name)
File "D:\venv\lib\site-packages\django\utils\_os.py", line 85, in safe_join
'component ({})'.format(final_path, base_path))
SuspiciousFileOperation: The joined path (M:\themes\default\_variables.scss) is located outside of the base path component (M:\horizon-9.0.0\static)
Process finished with exit code 1
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1569642/+subscriptions
References