matthewdowney / excel-clj

Write Excel docs & PDFs with Clojure data, from higher level abstractions (tree, table) or via a manual grid specification.
Eclipse Public License 1.0
149 stars 9 forks source link

i'm using wsl #2

Closed PlumpMath closed 4 years ago

PlumpMath commented 4 years ago

hi thanks. I try first example. problem below~

(let [;; A workbook is any [key value] seq of [sheet-name, sheet-grid]. ;; Convert the table to a grid with the table function. workbook {"My Generated Sheet" (excel/table table-data)}] (excel/quick-open workbook)) Fontconfig error: Cannot load default config file

(process:28549): Gtk-WARNING : 08:45:29.014: Locale not supported by C library. Using the fallback 'C' locale. Execution error (IOException) at sun.awt.X11.XDesktopPeer/launch (XDesktopPeer.java:124). Failed to show URI:file:/tmp/generated-sheet16968759586452060480.xlsx**

Thanks! good day~*

matthewdowney commented 4 years ago

Hi there, it looks like Java is having trouble working with your OS to open the file.

matthewdowney commented 4 years ago

Are you able to use the JVM to open files on your version of Linux?

PlumpMath commented 4 years ago

마지막 원하는 기능 언급한 포인트는... x의존은 이런것이다.

캡처

vcXsrv 를 실행해야만 jar모듈이 초기화 import 됩니다.

캡처
luposlip commented 4 years ago

This issue can probably be mitigated by adding the following environment variable:

ENV JAVA_OPTS=-Djava.awt.headless=true

In Docker (with JDK8 and newer) it seems to be caused by the dependency to rhizome - can you remove that dependency @matthewdowney ?

luposlip commented 4 years ago

If you don't want to slim down your library @matthewdowney, I've made a fork here (because I have the same issue): https://github.com/luposlip/excel-clj

matthewdowney commented 4 years ago

You're right, this dependency was not essential & was responsible for headaches. Latest release has it omitted.

P.S. sorry for the late response — pull requests always welcome!