Closed hjli528 closed 2 years ago
Hi Hongjiang,
It seems like something went wrong when installing your packages. PETLION
is compatible with SciMLBase
v1.x.x and RecursiveArrayTools
v2.x.x with no explicit dependence on ArrayInterface
. I would try updating your packages (import Pkg;Pkg.("update")
) or just reinstalling PETLION and seeing what happens. You could also try Pkg.precompile()
.
I've been meaning to fix the long file name problem for awhile now. I will push out a change later today that uses SHA encryption to shorten the name plus adding an info.txt
file for version control. For now, you can use PETLION.options[:SAVE_SYMBOLIC_FUNCTIONS] = false
which prevents reading/writing to disk.
See #87
It was indeed something wrong with my IDE, atom. I had a similar issue with one of my other Julia environments and with Chris's help, I was able to resolve that. The issue was, as I quoted from Chris
What happened was the package that was held back wasn't one in the project but as part of the IDE. Most people use VS Code instead these days to avoid this.
Hi there, sorry to bother you again. I created a new environment and installed PETLION as instructed. After precompiling, I got the following information
I started Julia and tested the examples, and after "using PETLION", I got the following errors
However, I was able to download the repository as a zip file, activate the enviroment, instantiate all the packages, and use PETLION with no problem. I then compared the differences in manifest.toml in both installations and found out that with "pkg.add("PETLION")", the following versions of above 3 packages were intalled:
with downloading the repo and activating the existing environment created by you, the following versions were installed:
At this point, I understand the error might be caused by version incompatibilities, so a kinda silly question is, how should I resolve this?
Another question is, after I execute "p = Params(LCO)", a new folder is created under "saved_models" but the folder name is very long so if I put the repo under an already deep directory the model will fail to be created because it exceeds the Windows path length limit. Is there a way to change the name of the saved model so it is shorter?
Thanks,
Hongjiang