Error in HCAS
Hello, while running Solvemdp.jl, I encountered the following error:
_ERROR: LoadError: On worker 2: ArgumentError: Package HCAS not found in current path:
- Run
import Pkg; Pkg.add("HCAS")to install the HCAS package._
I tried to fix it as suggested, then this error pops up:
_ERROR: LoadError: The following package names could not be resolved:
- HCAS (not found in project, manifest or registry)
Please specify by known
name=uuid._
I am using julia 1.1.0 and All required packages are installed.
Thanks!
You will not be able to add the HCAS package using Pkg.add(HCAS) because it is not in the Julia registry. Instead, the package is contained within the GenerateTable/mdp/ folder (see the HCAS.jl file). The first line in SolveMDP.jl that says @everywhere push!(LOAD_PATH,"mdp") should ensure that Julia is able to find the HCAS package. Maybe it could be an issue of running the command from the wrong folder? Are you making sure to run SolveMDP.jl from the GenerateTable folder?
hello, Thank you @smkatz12! that was really helpful.
Would you please assist me with the next error?
Writing Qvalues HDF5-DIAG: Error detected in HDF5 (1.10.4) thread 0: #000: H5F.c line 444 in H5Fcreate(): unable to create file major: File accessibilty minor: Unable to open file #001: H5Fint.c line 1364 in H5F__create(): unable to open file major: File accessibilty minor: Unable to open file #002: H5Fint.c line 1557 in H5F_open(): unable to open file: time = Tue Nov 8 18:58:51 2022 , name = './Qtables/HCAS_oneSpeed_v6.h5', tent_flags = 13 major: File accessibilty minor: Unable to open file #003: H5FD.c line 734 in H5FD_open(): open failed major: Virtual File Layer minor: Unable to initialize object #004: H5FDsec2.c line 346 in H5FD_sec2_open(): unable to open file: name = './Qtables/HCAS_oneSpeed_v6.h5', errno = 2, error message = 'No such file or directory', flags = 13, o_flags = 242 major: File accessibilty minor: Unable to open file ERROR: LoadError: Error creating file ./Qtables/HCAS_oneSpeed_v6.h5 Stacktrace:
thank you!
It looks like it is trying to write the Q table to a folder that does not exist. If you do not have a folder named Qtables on your computer, it will not be able to write the HDF5 file. I suggest making a folder called Qtables or changing the name of the file that gets written on line 13 of SolveMDP.jl to write to a folder that exists.