Bug 1170270

Summary: ipython notebook 404 GET glyphicons-halflings.png
Product: [Fedora] Fedora Reporter: Sergio Pascual <sergio.pasra>
Component: ipythonAssignee: Thomas Spura <tomspur>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: 7andrew, me, michel, misc, mrunge, neteler, orion, python-sig, shahms, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-02 05:25:11 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:

Description Sergio Pascual 2014-12-03 16:25:28 UTC
Description of problem:
Every time I run ipython notebook I get this message

WARNING:tornado.access:404 GET /static/img/glyphicons-halflings.png (::1) 0.69ms referer=http://localhost:8888/static/style/style.min.css?v=84c99f116b473c651c7ab2702ce5cd33

Seems that it tries to load glyphicons-halflings.png and fails

Version-Release number of selected component (if applicable):
python-ipython 2,3,0-1.fc21
python-ipython-notebook 2,3,0-1.fc21

How reproducible:
Always

Steps to Reproduce:
1. Run ipython notebook in a console
2. Look at the console messages
3.

Actual results:
File glyphicons-halflings.png is not loaded

Expected results:
File glyphicons-halflings.png is loaded

Additional info:

Comment 1 Michael S. 2015-05-08 20:13:28 UTC
So it seems it try to find it in usr/lib/python2.7/site-packages/IPython/html/static/img/glyphicons-halflings.png , or /usr/share/javascript/img/glyphicons-halflings.png or ~/.ipython/profile_default/static/img/glyphicons-halflings.png

I found that file in a lot of package, but none being a obvious match for the source. It is likely just cut and paste from bootstrap around.

Comment 2 Orion Poplawski 2015-05-08 22:08:33 UTC
Can you reproduce this with 2.4.1 from updates-testing?  I can't.

What I found:
2.4.1 seems to refer to img/glyphicons-halflings.png in /usr/lib/python2.7/site-packages/IPython/html/static/style/style.min.css.  When I install ipython 2.4.1 via pip, that reference is there as well, but it also does not install glyphicons-halflings.png.

Comment 3 Michael S. 2015-05-09 00:09:33 UTC
Yeah, i can reproduce with the package in update-testing on F22. ( 2.4.1-1 ).

Comment 4 Orion Poplawski 2015-05-09 03:59:57 UTC
I can see it now.  Does this appear to cause any issues?  Unless it does, I don't think I'm going to try to fix it.

Comment 5 Michael S. 2015-05-09 16:32:16 UTC
This affect the UI on http://127.0.0.1:8888/tree , the icon is used to show the type of file. So not having it make it less obvious to see what is a directory and what is a notebook and what is not. Or maybe that's the icon of a house, who is used to go back to the home page, who cannot be displayed on my notebook for the moment ( didn't try the new version in update-testing yet )

Compare https://ipython.org/ipython-doc/dev/_images/treeview.png with what is running now.

Comment 6 Orion Poplawski 2015-05-09 20:18:54 UTC
That is actually the result of an incomplete patch to use font-awesome 4.  This was a pretty major change and I'm tempted to just drop the patches in fedora and use the bundled font-awesome.  Before I do that though I've got some additional patches to try.

Comment 7 Fedora Update System 2015-05-10 16:06:43 UTC
ipython-2.4.1-5.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/FEDORA-2015-7900/ipython-2.4.1-5.fc21

Comment 8 Fedora Update System 2015-05-12 20:46:03 UTC
Package ipython-2.4.1-5.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-5.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-5.fc21
then log in and leave karma (feedback).

Comment 9 Pete Travis 2015-05-12 21:26:54 UTC
(In reply to Michael Scherer from comment #1)
> So it seems it try to find it in
> usr/lib/python2.7/site-packages/IPython/html/static/img/glyphicons-halflings.
> png , or /usr/share/javascript/img/glyphicons-halflings.png or
> ~/.ipython/profile_default/static/img/glyphicons-halflings.png
> 
> I found that file in a lot of package, but none being a obvious match for
> the source. It is likely just cut and paste from bootstrap around.

I have a glyphicons-halflings-fonts package, RFE tickets welcome.

Comment 10 Orion Poplawski 2015-05-13 13:27:39 UTC
*** Bug 1221016 has been marked as a duplicate of this bug. ***

Comment 11 markusN 2015-07-07 09:54:54 UTC
An (ugly) workaround is to copy over/link the missing files:

mkdir /usr/lib/python2.7/site-packages/IPython/html/static/img

# get glyphicons-halflings.png from somewhere
cp glyphicons-halflings.png /usr/lib/python2.7/site-packages/IPython/html/static/img/

ln -s /usr/share/fonts/fontawesome /usr/lib/python2.7/site-packages/IPython/html/static/fonts

No more error messages.

Perhaps static/fonts/ and static/img/ need to be added to the RPM?

My system
kernel: 4.0.5-200.fc21.x86_64
rpms:   python-ipython-notebook-2.4.1-1.fc21.noarch
        fontawesome-fonts-web-4.1.0-2.fc21.noarch

Comment 12 Orion Poplawski 2015-07-14 01:04:16 UTC
Here's the thing - I don't see glyphicons-halflings.png anywhere in upstream.  When I run a pip installed ipython notebook, it doesn't try to load it.  So something else seems to be wrong that then triggers it to try to load that.  I haven't figured that out yet.  Latest update should fix the font-awesome path loads at least.

Comment 13 Fedora Update System 2015-07-14 15:28:08 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 14 Fedora End Of Life 2015-11-04 16:02:11 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 15 Fedora End Of Life 2015-12-02 05:25:16 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.