Skip to content

Commit 5986f16

Browse files
docs ci
1 parent 32d9a3d commit 5986f16

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
env:
5454
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
56+
JULIA_CONDAPKG_OPENSSL_VERSION: "ignore"
5657
- run: |
5758
julia --project=docs -e '
5859
using Documenter: DocMeta, doctest

CondaPkg.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
channels = ["conda-forge"]
2-
31
[deps]
4-
# h5py = ""
5-
# pillow = ">=9.1, <10"
6-
# pyarrow = "==6.0.0"
72
datasets = ">=3.0, <4"
83
numpy = ">=2.0, <3"
94
pillow = ""

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ Dict{String, Vector} with 2 entries:
4949
"label" => [5, 0]
5050
"image" => ReinterpretArray{Gray{N0f8}, 2, UInt8, Matrix{UInt8}, false}[[0.0 0.0 … 0.0 0.0; 0.0 0.0 … 0.0 0.0; … ; 0…
5151
```
52+
53+
## Troubleshooting
54+
55+
- If having problems in resolving the CondaPkg environment, try to set `ENV["JULIA_CONDAPKG_OPENSSL_VERSION"] = true`before loading the package. See more details [here](https://github.com/JuliaPy/CondaPkg.jl?tab=readme-ov-file#preferences)

docs/Project.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
[deps]
2+
CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab"
3+
DLPack = "53c2dc0f-f7d5-43fd-8906-6c0220547083"
24
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
35
HuggingFaceDatasets = "d94b9a45-fdf5-4270-b024-5cbb9ef7117d"
6+
ImageCore = "a09fc81d-aa75-5fe9-8630-4744c3626534"
7+
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
8+
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"

src/HuggingFaceDatasets.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ include("load_dataset.jl")
3737
export load_dataset
3838

3939
function __init__()
40+
ENV["JULIA_CONDAPKG_OPENSSL_VERSION"] = "ignore"
4041
# Since it is illegal in PythonCall to import a python module in a module, we need to do this here.
41-
# https://cjdoris.github.io/PythonCall.jl/dev/pythoncall-reference/#PythonCall.pycopy!
42+
# https://juliapy.github.io/PythonCall.jl/dev/pythoncall-reference/#PythonCall.Core.pycopy!
4243
PythonCall.pycopy!(datasets, pyimport("datasets"))
4344
PythonCall.pycopy!(PIL, pyimport("PIL"))
4445
pyimport("PIL.PngImagePlugin")

0 commit comments

Comments
 (0)