Skip to content
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

Fontconfig problem #27

Open
pmatos opened this issue Nov 14, 2018 · 5 comments
Open

Fontconfig problem #27

pmatos opened this issue Nov 14, 2018 · 5 comments
Labels

Comments

@pmatos
Copy link
Collaborator

pmatos commented Nov 14, 2018

I am getting a fontconfig problem in plot:

# racket
Welcome to Racket v7.1.
> (require plot/no-gui)
> (plot-file (function (lambda (x) (sin (* 4 x))) -1 1) #:x-min -1.5 #:x-max 1.5 #:y-min -1.5 #:y-max 1.5 "foo.png")
Fontconfig warning: "/etc/fonts/fonts.conf", line 100: unknown element "blank"
@pmatos
Copy link
Collaborator Author

pmatos commented Nov 14, 2018

This is with jackfirth/racket:7.1

@jackfirth
Copy link
Collaborator

jackfirth commented Nov 16, 2018

I'm seeing a few similar bug reports scattered across various projects, including one as recently as eight days ago. I suspect there's some upstream issue with the fontconfig library in the buildpack-deps images we're using as base images. In the meantime, would you be willing to add a line to the test.sh script that runs the plot-file code you've shared? A failing test would be a useful starting point.

@pmatos
Copy link
Collaborator Author

pmatos commented Feb 21, 2019

Jack, sorry, only just noticed that I didn't add the line you requested to test.sh . However it's not as easy as adding a line. We need to run:

raco pkg install --auto plot
racket -e '(require plot/no-gui) (plot-file (function (lambda (x) x)) #:x-min 0 #:x-max 1 #:y-min 0 #:y-max 1 "foo.png")'

I am not really very knowledgeable of docker. Do you know how to run both of these command inside a docker container? I imagined you could have a script with them, somehow copy them into the container, and then run it using the normal docker run command.

@jackfirth
Copy link
Collaborator

I haven't tried it, but according to this stackoverflow answer the way to do this is to docker run the shell and hand the shell a single command that uses the semicolon operator to join together the two commands you want to run. Example: docker run image /bin/bash -c "cd /path/to/somewhere; python a.py"

@jackfirth
Copy link
Collaborator

Update: I still see this error in the minimal images, but in the full distribution images work fine. I've tested with jackfirth/racket:7.1-full and jackfirth/racket:7.4-full and both successfully write the plot to a file.

@jackfirth jackfirth added the bug label Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants