Bug 1219956

Summary: not loading font-awesome in the notebook
Product: [Fedora] Fedora Reporter: Michael S. <misc>
Component: ipythonAssignee: Thomas Spura <tomspur>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: michel, mrunge, orion, python-sig, shahms, tomspur
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipython-2.4.1-7.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-30 00:46:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Trivial patch none

Description Michael S. 2015-05-08 19:53:45 UTC
When using the ipython notebook, it is unable to display some icons.

This show this message :
WARNING:tornado.access:404 GET /static/fonts/fontawesome-webfont.ttf?v=4.1.0 (127.0.0.1) 3.18ms referer=http://127.0.0.1:8888/static/style/style.min.css?v=5f407fabccb859314401c15f5bc2d147


After debugging, it seems to try to open :
[pid  9266] stat("/home/misc/.ipython/profile_default/static/fonts/fontawesome-webfont.woff", 0x7ffe9e79dee0) = -1 ENOENT (No such file or directory)

[pid  9266] stat("/usr/share/javascript/fonts/fontawesome-webfont.woff", 0x7ffe9e79dee0) = -1 ENOENT (No such file or directory)

[pid  9266] stat("/usr/lib/python2.7/site-packages/IPython/html/static/fonts/fontawesome-webfont.woff", 0x7ffe9e79dee0) = -1 ENOENT (No such file or directory)

I suspect the 2nd should go to /usr/share/fonts/fontawesome/fontawesome-webfont.woff, so maybe the patch used to add _jsdir should also include /usr/share/fonts ?

Comment 1 Michael S. 2015-05-08 19:56:35 UTC
Created attachment 1023590 [details]
Trivial patch

Here is a small patch that should solve the issue.

Comment 2 Orion Poplawski 2015-05-08 22:29:29 UTC
That may be a good solution.  But what's surprising to me is that it isn't looking in /usr/lib/python2.7/site-packages/IPython/html/static/components/font-awesome/font/fontawesome-webfont.woff.

Looks like the pip installed style.min.css uses a path of:

../components/font-awesome/font/fontawesome-webfont.woff?v=3.2.1

But the fedora compiled style.min.css ends up with:

../fonts/fontawesome-webfont.woff?v=4.1.0

So we don't seem to be compiling that correctly.  I don't understand this process very well though.

Comment 3 Orion Poplawski 2015-05-08 23:05:20 UTC
Looks like the variable for FA's path is now $fa-font-path and needs to be set in IPython/html/static/style/style.less.  I've got a fix.

Comment 4 Fedora Update System 2015-05-09 00:58:17 UTC
ipython-2.4.1-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/ipython-2.4.1-2.fc21

Comment 5 Fedora Update System 2015-05-09 00:58:24 UTC
ipython-2.4.1-2.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/ipython-2.4.1-2.fc22

Comment 6 Fedora Update System 2015-05-11 19:06:58 UTC
ipython-2.4.1-5.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Michael S. 2015-05-14 23:37:12 UTC
It doesn't seems to work for me on F22. I maybe have some local configuration or something that break it, so I will need to set a new VM and test.

Comment 8 Michael S. 2015-05-15 00:13:57 UTC
Ok, testing on F22, this is not fixed.

Comment 9 Fedora Update System 2015-07-14 00:52:40 UTC
ipython-2.4.1-6.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/ipython-2.4.1-6.fc22

Comment 10 Fedora Update System 2015-07-14 15:28:04 UTC
Package ipython-2.4.1-6.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing ipython-2.4.1-6.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-7900/ipython-2.4.1-6.fc21
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2015-07-16 15:34:21 UTC
ipython-2.4.1-7.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/ipython-2.4.1-7.fc21

Comment 12 Fedora Update System 2015-07-16 15:34:33 UTC
ipython-2.4.1-7.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/ipython-2.4.1-7.fc22

Comment 13 Fedora Update System 2015-07-30 00:46:27 UTC
ipython-2.4.1-7.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2015-07-30 01:18:45 UTC
ipython-2.4.1-7.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.