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

TemporalBrains dataset not working #238

Open
CarloLucibello opened this issue Jul 24, 2024 · 5 comments
Open

TemporalBrains dataset not working #238

CarloLucibello opened this issue Jul 24, 2024 · 5 comments

Comments

@CarloLucibello
Copy link
Member

cc @aurorarossi

julia> using MLDatasets

julia> TemporalBrains()
ERROR: SystemError: opening file "/Users/carlo/.julia/scratchspaces/124859b0-ceae-595e-8997-d05f6a7a8dfe/datadeps/TemporalBrains/LabelledTBN/labels.txt": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:176
  [2] systemerror
    @ ./error.jl:175 [inlined]
  [3] open(fname::String; lock::Bool, read::Bool, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
    @ Base ./iostream.jl:293
  [4] open
    @ ./iostream.jl:275 [inlined]
  [5] open(fname::String, mode::String; lock::Bool)
    @ Base ./iostream.jl:356
  [6] open
    @ ./iostream.jl:355 [inlined]
  [7] create_tbdataset(dir::String, thre::Float64)
    @ MLDatasets ~/.julia/packages/MLDatasets/rObys/src/datasets/graphs/temporalbrains.jl:30
  [8] TemporalBrains(; threshold_value::Float64, dir::Nothing)
    @ MLDatasets ~/.julia/packages/MLDatasets/rObys/src/datasets/graphs/temporalbrains.jl:75
  [9] TemporalBrains()
    @ MLDatasets ~/.julia/packages/MLDatasets/rObys/src/datasets/graphs/temporalbrains.jl:72
 [10] top-level scope
    @ REPL[4]:1
@aurorarossi
Copy link
Contributor

I tried and it works on my computer. I think the problem might not be specific to these datasets. Could you please try with a different one?
I notice that the dataset is not downloaded in the .julia/datadeps folder, but in the ./julia/scratchspaces folder.

@CarloLucibello
Copy link
Member Author

Weird. I'm on julia v1.10.4. I tried to install just MLDatasets in a temporary environment and it still doesn't work. MNIST works instead.

@aurorarossi
Copy link
Contributor

I tried it on 3 different machines (with Linux) also using the temporary env and it works. Are you working on Mac?

@CarloLucibello
Copy link
Member Author

yes. Now I removed all the scratchspaces and then it worked. Maybe I previously had an interrupted download.

@CarloLucibello
Copy link
Member Author

If a file is not found we should retry the download instead of erroring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants