Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Milestone
@selvamvinod

Description

@selvamvinod

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 fromhttps://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 impimport codecsimport os, sys,impimport cgiimport ioimport MySQLdb as mdbimport sysfrom collections import OrderedDictimport sysimport unicodedataimport numpy as npfrom mpl_toolkits.basemap import Basemap#import matplotlib.pyplot as pltimport matplotlib as mplmpl.use('Agg')import matplotlib.pyplot as pltimport iodef 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp