GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Warning message prior to fc-list command by notmatthancock · Pull Request #5640 · matplotlib/matplotlib

Conversation

@notmatthancock

@notmatthancock notmatthancock commented Dec 9, 2015

Copy link
Copy Markdown
Contributor

When the font cache is first created, fc-list may take up to several minutes on some machines. No indication is given that this is being done. This adds a warning so the user is aware.

#2919

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@notmatthancock
Added warning message before fc-list command
5d3f8a7
@tacaswell tacaswell added the status: needs review label Dec 9, 2015
@mdboom mdboom added this to the Critical bugfix release (1.5.1) milestone Dec 9, 2015
@mdboom

mdboom commented Dec 9, 2015

Copy link
Copy Markdown
Member

👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mdboom

mdboom commented Dec 9, 2015

Copy link
Copy Markdown
Member

Eventually #5414 will fix this altogether, but this is fine for now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jenshnielsen

jenshnielsen commented Dec 9, 2015

Copy link
Copy Markdown
Member

👍

I would change the text to something like

"Building Matplotlib font cache by running fc-list. This could take a few minutes."

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@WeatherGod

WeatherGod commented Dec 9, 2015

Copy link
Copy Markdown
Member

Maybe "Matplotlib is building {cachename} using fc-list. This may take a moment".

I prefer "moment" over "minutes" because it is ambiguous and thus a bit future-proof. Each person's perception of a moment is shaped by the computer they are using, so it is a bit more flexible, too.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@notmatthancock
Added warning message before fc-list command
d275277
tacaswell added a commit that referenced this pull request Dec 23, 2015
@tacaswell
Merge pull request #5640 from notmatthancock/master
6e684d1
Warning message prior to fc-list command
@tacaswell
tacaswell merged commit 6e684d1 into matplotlib:master Dec 23, 2015
@tacaswell tacaswell removed the status: needs review label Dec 23, 2015
tacaswell added a commit that referenced this pull request Dec 23, 2015
@tacaswell
Merge pull request #5640 from notmatthancock/master
c4a94e5
Warning message prior to fc-list command
tacaswell added a commit that referenced this pull request Dec 23, 2015
@tacaswell
Merge pull request #5640 from notmatthancock/master
0823022
Warning message prior to fc-list command
@tacaswell

tacaswell commented Dec 23, 2015

Copy link
Copy Markdown
Member

backported to 2.x as c4a94e5 and v1.5.x as 0823022 (because I did not read the milestone carefully enough).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pelegm

pelegm commented Jan 11, 2016

Copy link
Copy Markdown

One thing I don't understand: why is it giving this warning every time I load matplotlib? Does it build the font cache every time?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mdboom

mdboom commented Jan 11, 2016

Copy link
Copy Markdown
Member

It should only be rebuilding each time if it doesn't have write permissions to ~/.matplotlib (or ~/.cache/matplotlib on Linux).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pelegm

pelegm commented Jan 11, 2016

Copy link
Copy Markdown

@mdboom, thanks for your quick reply. I am using Ubuntu, my user owns ~/.cache and ~/.cache/matplotlib, and there's indeed fontList.cache file there, but it dates to April last year. Importing matplotlib.pyplot does not seem to touch that file.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jenshnielsen

jenshnielsen commented Jan 11, 2016

Copy link
Copy Markdown
Member

Do you own that file too and have user write access to it?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pelegm

pelegm commented Jan 11, 2016

Copy link
Copy Markdown

Sure:

peleg@lati::~/.cache/matplotlib$ ls -la
total 308
drwxrwxr-x  3 peleg peleg   4096 Jan 11 18:43 .
drwx------ 50 peleg peleg   4096 Jan 11 11:08 ..
-rw-rw-r--  1 peleg peleg 161444 Apr  6  2015 fontList.cache
-rw-rw-r--  1 peleg peleg 138010 Apr 24  2015 fontList.py3k.cache
drwxrwxr-x  2 peleg peleg   4096 Apr  6  2015 tex.cache

(owner write access...)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jenshnielsen

jenshnielsen commented Jan 11, 2016

Copy link
Copy Markdown
Member

Which version are you using 1.5.x and 2.x uses a binary font cache but
on master it is changed to using a json fine see #5021

I would suggest moving those files out of the way and try again if you are using 1.5.1 or on the 2.x branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pelegm

pelegm commented Jan 11, 2016

Copy link
Copy Markdown

I am using matplotlib 1.5.1, just downloaded via pip.

I have removed the files as you suggested, and after they were created again (during the first time I've imported matplotlib.pyplot), the warning does not appear any more. Thanks for your help!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jenshnielsen jenshnielsen mentioned this pull request Jan 12, 2016
Repeated warning about fc-list #5836
Closed
@ryanfreckleton

ryanfreckleton commented Feb 1, 2016

Copy link
Copy Markdown

I run into similar behavior when opening both my system matplotlib of 1.3.1 and my installed version of 1.5.1. Apparently the older file format with matplotlib 1.3.1 always causes matplotlib 1.5.1 to rescan, but not update the file.

dunneff reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jenshnielsen jenshnielsen mentioned this pull request Apr 12, 2016
Import hangs when importing pyplot #2919
Closed
@RichardoC

RichardoC commented Apr 12, 2016

Copy link
Copy Markdown

I'm glad this warning is here as it means I know to wait for it to run. @pelegm I found that if I deleted everything in ~/.matplotlib (I'm on OSX) it generated once and I've not had the message since.

MountainRider reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

joslloand added a commit to ambisonictoolkit/atk-sc3 that referenced this pull request Jul 15, 2016
@joslloand
Update soundfield transform figures to illustrate rE
4f6d2fc
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 pull request Jul 16, 2016
@joslloand
ATK: Update Intro-to-the-ATK & imaging figures
604cea3
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
@Tthomas63 Tthomas63 mentioned this pull request Jul 3, 2018
Creating new competition gives non-meaningful error message: 'data' codalab/codalab-competitions#2320
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

v1.5.1

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@notmatthancock @mdboom @jenshnielsen @WeatherGod @tacaswell @pelegm @ryanfreckleton @RichardoC
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.