Skip to content

Font cache building of matplotlib blocks requests made to HTTPd #6721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
selvamvinod opened this issue Jul 10, 2016 · 3 comments
Closed

Font cache building of matplotlib blocks requests made to HTTPd #6721

selvamvinod opened this issue Jul 10, 2016 · 3 comments
Milestone

Comments

@selvamvinod
Copy link

selvamvinod commented Jul 10, 2016

Platform details:
CentOS Linux release 7.2.1511 (Core)
Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/7.0.7 mod_wsgi/4.5.3 Python/3.5.2

The below script blocks and gives
warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.') with the matplotlib version I got from https://github.com/matplotlib/matplotlib
by a git clone on 9th Jul 2016.(Or may be 10th Jul?....Date same as my previous comment date)

# -*- coding: utf-8 -*-
import imp
import codecs
import os, sys,imp
import cgi
import io
import MySQLdb as mdb
import sys
from collections import OrderedDict
import sys
import unicodedata

import numpy as np
from mpl_toolkits.basemap import Basemap
#import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt

import io


def application(environ, start_response):
    map = Basemap(width=10,
                  height=20,
                  resolution='c',
                  projection='gall',
                  lon_0=0)

    map.drawcoastlines()
        ...
        ...
        ...
       img_io = io.BytesIO()
       return img_io

joslloand added a commit to ambisonictoolkit/atk-sc3 that referenced this issue Jul 15, 2016
commit for the figures for
#11

Will need to follow with an update to SCHelp describing the scales
[gain, r, theta]

NOTE: Fonts and scaling have changed as a result of an issue with
anaconda/matplotlib. Some relevant issues can be found here:

fonnesbeck/ScipySuperpack#39
matplotlib/matplotlib#5836
matplotlib/matplotlib#5640
matplotlib/matplotlib#6721
matplotlib/matplotlib#3590
joslloand added a commit to supercollider/sc3-plugins that referenced this issue Jul 16, 2016
More verbose Intro-to-the-ATK. Describe in more detail how to read
transform figures with description of sound field quality measure, rE.

Transform plots now illustrate rE rather than rV, which is more closely
tied to perception.

NOTE: Fonts and scaling have changed as a result of an issue with
anaconda/matplotlib. Some relevant issues can be found here:

fonnesbeck/ScipySuperpack#39
matplotlib/matplotlib#5836
matplotlib/matplotlib#5640
matplotlib/matplotlib#6721
matplotlib/matplotlib#3590
@tacaswell tacaswell added this to the 2.0 (style change major release) milestone Jul 18, 2016
@tacaswell
Copy link
Member

Can you reproduce this issue outside of a webserver?

Can you tell us the contents of ~/.cache/matplotlib?

@tacaswell
Copy link
Member

Closing due to lack of response.

I think the issue is that you just have to wait for the cache to finish building before the httpd process can take clients.

@tacaswell
Copy link
Member

@joslloand almost all of the issues you are pinging have to do with a warning we started issueing and should have had resulted in no changes to the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants