yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #95238
[Bug 2095374] [NEW] File to import not found or unreadable: /horizon/lib/font_awesome/scss/font-awesome.scss
Public bug reported:
When I run the following command ./manage.py compress, I get the
following error:
(venv) root@fsn1-controller01 /var/lib/horizon # ./manage.py compress
/var/lib/horizon/venv/lib/python3.11/site-packages/debreach/__init__.py:6: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
version_info = version.StrictVersion(__version__).version
CommandError: An error occurred during rendering _stylesheets.html: Error: File to import not found or unreadable: /horizon/lib/font_awesome/scss/font-awesome.scss.
on line 12:1 of dashboard/scss/horizon.scss
from line 6:9 of stdin
>> @import "/horizon/lib/font_awesome/scss/font-awesome.scss";
^
(venv) root@fsn1-controller01 /var/lib/horizon # ll
total 124
-rw-r--r-- 1 root root 77 Jan 20 19:13 babel-django.cfg
-rw-r--r-- 1 root root 258 Jan 20 19:13 babel-djangojs.cfg
-rw-r--r-- 1 root root 233 Jan 20 19:13 bindep.txt
-rw-r--r-- 1 root root 600 Jan 20 19:13 CONTRIBUTING.rst
drwxr-xr-x 3 root root 4096 Jan 20 19:13 doc
-rw-r--r-- 1 root root 579 Jan 20 19:13 HACKING.rst
drwxr-xr-x 19 root root 4096 Jan 20 19:15 horizon
-rw-r--r-- 1 root root 10143 Jan 20 19:13 LICENSE
-rwxr-xr-x 1 root root 831 Jan 20 19:13 manage.py
-rw-r--r-- 1 root root 634 Jan 20 19:13 MANIFEST.in
drwxr-xr-x 6 root root 4096 Jan 20 19:15 openstack_auth
drwxr-xr-x 18 root root 4096 Jan 20 19:15 openstack_dashboard
-rw-r--r-- 1 root root 1023 Jan 20 19:13 package.json
drwxr-xr-x 8 root root 4096 Jan 20 19:13 playbooks
-rw-r--r-- 1 root root 2188 Jan 20 19:13 plugin-registry.csv
-rw-r--r-- 1 root root 1920 Jan 20 19:13 README.rst
drwxr-xr-x 4 root root 4096 Jan 20 19:13 releasenotes
-rw-r--r-- 1 root root 120 Jan 20 19:13 reno.yaml
-rw-r--r-- 1 root root 2664 Jan 20 19:13 requirements.txt
drwxr-xr-x 5 root root 4096 Jan 20 19:13 roles
-rw-r--r-- 1 root root 1937 Jan 20 19:13 setup.cfg
-rw-r--r-- 1 root root 698 Jan 20 19:13 setup.py
drwxr-xr-x 9 root root 4096 Jan 20 19:15 static
-rw-r--r-- 1 root root 379 Jan 20 19:13 test-requirements.txt
-rw-r--r-- 1 root root 3198 Jan 20 19:13 test-shim.js
drwxr-xr-x 2 root root 4096 Jan 20 19:13 tools
-rw-r--r-- 1 root root 7537 Jan 20 19:13 tox.ini
drwxr-xr-x 6 root root 4096 Jan 20 19:13 venv
(venv) root@fsn1-controller01 /var/lib/horizon #
I have installed Horizon in a virtual Python 3 environment (Debian Bookworm) and I also clone the Horizon Github Repo, then I installed all requirements using pip install -r requirements.txt. I also created a File under "nano openstack_dashboard/local/local_settings.d/_0001_static_root.py" with the content "STATIC_ROOT = "/var/lib/horizon/static/" But the error still exists.
Anyone have an idea?
** Affects: horizon
Importance: Undecided
Status: New
--
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/2095374
Title:
File to import not found or unreadable:
/horizon/lib/font_awesome/scss/font-awesome.scss
Status in OpenStack Dashboard (Horizon):
New
Bug description:
When I run the following command ./manage.py compress, I get the
following error:
(venv) root@fsn1-controller01 /var/lib/horizon # ./manage.py compress
/var/lib/horizon/venv/lib/python3.11/site-packages/debreach/__init__.py:6: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
version_info = version.StrictVersion(__version__).version
CommandError: An error occurred during rendering _stylesheets.html: Error: File to import not found or unreadable: /horizon/lib/font_awesome/scss/font-awesome.scss.
on line 12:1 of dashboard/scss/horizon.scss
from line 6:9 of stdin
>> @import "/horizon/lib/font_awesome/scss/font-awesome.scss";
^
(venv) root@fsn1-controller01 /var/lib/horizon # ll
total 124
-rw-r--r-- 1 root root 77 Jan 20 19:13 babel-django.cfg
-rw-r--r-- 1 root root 258 Jan 20 19:13 babel-djangojs.cfg
-rw-r--r-- 1 root root 233 Jan 20 19:13 bindep.txt
-rw-r--r-- 1 root root 600 Jan 20 19:13 CONTRIBUTING.rst
drwxr-xr-x 3 root root 4096 Jan 20 19:13 doc
-rw-r--r-- 1 root root 579 Jan 20 19:13 HACKING.rst
drwxr-xr-x 19 root root 4096 Jan 20 19:15 horizon
-rw-r--r-- 1 root root 10143 Jan 20 19:13 LICENSE
-rwxr-xr-x 1 root root 831 Jan 20 19:13 manage.py
-rw-r--r-- 1 root root 634 Jan 20 19:13 MANIFEST.in
drwxr-xr-x 6 root root 4096 Jan 20 19:15 openstack_auth
drwxr-xr-x 18 root root 4096 Jan 20 19:15 openstack_dashboard
-rw-r--r-- 1 root root 1023 Jan 20 19:13 package.json
drwxr-xr-x 8 root root 4096 Jan 20 19:13 playbooks
-rw-r--r-- 1 root root 2188 Jan 20 19:13 plugin-registry.csv
-rw-r--r-- 1 root root 1920 Jan 20 19:13 README.rst
drwxr-xr-x 4 root root 4096 Jan 20 19:13 releasenotes
-rw-r--r-- 1 root root 120 Jan 20 19:13 reno.yaml
-rw-r--r-- 1 root root 2664 Jan 20 19:13 requirements.txt
drwxr-xr-x 5 root root 4096 Jan 20 19:13 roles
-rw-r--r-- 1 root root 1937 Jan 20 19:13 setup.cfg
-rw-r--r-- 1 root root 698 Jan 20 19:13 setup.py
drwxr-xr-x 9 root root 4096 Jan 20 19:15 static
-rw-r--r-- 1 root root 379 Jan 20 19:13 test-requirements.txt
-rw-r--r-- 1 root root 3198 Jan 20 19:13 test-shim.js
drwxr-xr-x 2 root root 4096 Jan 20 19:13 tools
-rw-r--r-- 1 root root 7537 Jan 20 19:13 tox.ini
drwxr-xr-x 6 root root 4096 Jan 20 19:13 venv
(venv) root@fsn1-controller01 /var/lib/horizon #
I have installed Horizon in a virtual Python 3 environment (Debian Bookworm) and I also clone the Horizon Github Repo, then I installed all requirements using pip install -r requirements.txt. I also created a File under "nano openstack_dashboard/local/local_settings.d/_0001_static_root.py" with the content "STATIC_ROOT = "/var/lib/horizon/static/" But the error still exists.
Anyone have an idea?
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/2095374/+subscriptions