You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think since there's no local checkout of the source, Julia creates a "project" directory inside TMP and runs the tests there. This is the relevant part of the code:
Maybe copy creates the files with permissions that are not readable by the user? Can it fail silently? These are the two circumstances I could think of.
Package Version
0.10.2
Julia Version
1.11
Reproduction steps
Login to a Windows user account that does not have admin privileges.
Create a new directory and change into it:
PS > mkdir mytest
PS > cd mytest
Start Julia, add Tulipa, and run the tests:
PS > julia --project=.
julia> ]
pkg> add TulipaEnergyModel
pkg> test TulipaEnergyModel
Relevant log output
is_seasonal asset without entry in partitions file should use :uniform,1: Error During Test at C:\Users\nadmin\.julia\packages\TulipaEnergyModel\EgSyT\test\test-io.jl:122
Got exception outside of a @test
SystemError: opening file "C:\\Users\\nadmin\\AppData\\Local\\Temp\\jl_ECJTdG\\assets-timeframe-partitions.csv": Permission denied
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::Nothing, write::Nothing, create::Nothing, truncate::Bool, append::Nothing)
@ Base .\iostream.jl:295
[4] open
@ .\iostream.jl:277 [inlined]
[5] open(fname::String, mode::String; lock::Bool)
@ Base .\iostream.jl:358
[6] open(fname::String, mode::String)
@ Base .\iostream.jl:357
[7] open(::var"#17#19"{Vector{String}}, ::String, ::Vararg{String}; kwargs::@Kwargs{})
@ Base .\io.jl:408
[8] open(::Function, ::String, ::String)
@ Base .\io.jl:407
[9] macro expansion
@ C:\Users\nadmin\.julia\packages\TulipaEnergyModel\EgSyT\test\test-io.jl:132 [inlined]
[10] macro expansion
@ C:\Users\nadmin\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\Test.jl:1704 [inlined]
[11] top-level scope
@ C:\Users\nadmin\.julia\packages\TulipaEnergyModel\EgSyT\test\test-io.jl:124
[12] include
@ .\sysimg.jl:38 [inlined]
[13] macro expansion
@ C:\Users\nadmin\.julia\packages\TulipaEnergyModel\EgSyT\test\runtests.jl:38 [inlined]
[14] macro expansion
@ C:\Users\nadmin\.julia\juliaup\julia-1.11.2+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\Test.jl:1704 [inlined]
[15] top-level scope
@ C:\Users\nadmin\.julia\packages\TulipaEnergyModel\EgSyT\test\runtests.jl:38
[16] include(fname::String)
@ Main .\sysimg.jl:38
[17] top-level scope
@ none:6
[18] eval
@ .\boot.jl:430 [inlined]
[19] exec_options(opts::Base.JLOptions)
@ Base .\client.jl:296
[20] _start()
@ Base .\client.jl:531
Operating System
Windows
The text was updated successfully, but these errors were encountered:
Description
If you follow the instructions from the https://tulipaenergy.github.io/TulipaEnergyModel.jl/dev/10-how-to-use/#(Optional)-Running-automatic-tests, the tests fail on Windows when the user does not have local admin privileges.
I think since there's no local checkout of the source, Julia creates a "project" directory inside
TMP
and runs the tests there. This is the relevant part of the code:TulipaEnergyModel.jl/test/test-io.jl
Lines 122 to 136 in 0488653
Maybe copy creates the files with permissions that are not readable by the user? Can it fail silently? These are the two circumstances I could think of.
Package Version
0.10.2
Julia Version
1.11
Reproduction steps
Relevant log output
Operating System
Windows
The text was updated successfully, but these errors were encountered: