# CSV.jl bug reading .gz file in Julia 1.11-rc

**URL:** https://discourse.julialang.org/t/csv-jl-bug-reading-gz-file-in-julia-1-11-rc/117341
**Category:** Data
**Tags:** bug, gzip
**Created:** [July 22, 2024, 1:04pm UTC](https://discourse.julialang.org/t/csv-jl-bug-reading-gz-file-in-julia-1-11-rc/117341 "2024-07-22T13:04:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![oscarvdvelde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscarvdvelde/32/202157_2.png) [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)
#### Post date: [July 22, 2024, 1:04pm UTC](https://discourse.julialang.org/t/csv-jl-bug-reading-gz-file-in-julia-1-11-rc/117341/1 "2024-07-22T13:04:21Z")

</div>

Hello,  
I tried version 1.11.0-rc and noted a file access error reading a gzipped file with CSV.File, which does not happen in 1.10.4.

```julia
julia> data = CSV.File(raw"C:\Users\oscar\Documents\Work\Julia\test3.dat.gz")
ERROR: IOError: unlink("C:\\Users\\oscar\\AppData\\Local\\Temp\\jl_D028.tmp"): permission denied (EACCES)
Stacktrace:
 [1] uv_error
   @ .\libuv.jl:106 [inlined]
 [2] unlink(p::String)
   @ Base.Filesystem .\file.jl:1105
 [3] rm(path::String; force::Bool, recursive::Bool)
   @ Base.Filesystem .\file.jl:283
 [4] rm
   @ .\file.jl:273 [inlined]
 [5] CSV.File(ctx::CSV.Context, chunking::Bool)
   @ CSV C:\Users\oscar\.julia\packages\CSV\cwX2w\src\file.jl:344
 [6] File
   @ C:\Users\oscar\.julia\packages\CSV\cwX2w\src\file.jl:227 [inlined]
 [7] #File#32
   @ C:\Users\oscar\.julia\packages\CSV\cwX2w\src\file.jl:223 [inlined]
 [8] CSV.File(source::String)
   @ CSV C:\Users\oscar\.julia\packages\CSV\cwX2w\src\file.jl:162
 [9] top-level scope
   @ REPL[3]:1

```

I created a bug report last week where you can download the file and see version info: [CSV.File failing for gzipped file in Julia 1.11-rc · Issue #1137 · JuliaData/CSV.jl · GitHub](https://github.com/JuliaData/CSV.jl/issues/1137)

In my own applications, I tend to get EACCES errors whenever using `cd` or `rm` Julia function without giving some `sleep(0.2)` afterwards to make sure they completed.
