-
Notifications
You must be signed in to change notification settings - Fork 3
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
ui.jl Producing Errors on Julia Version 1.6.1 (UPDATED: and Julia 1.4.1) #4
Comments
The text copied and pasted for anyone who is loathe to download a random file (though it is a little difficult to read and format):
|
Hi @Daiio Dont worry about the warnings, the error is the problem. Did you activate the project before you used Im also wondering out of interest what you would like to do with the model. One problem with it is that it's complicated. And more complicated with the interface involved, but I needed the interface to be able to explore the dynamics, because it's so complicated... But its probably not very friendly for someone new to Julia. The DynamicEnergyBudgets.jl package this runs is more polished and less complicated, but doesnt have the interface. I've built simpler ways to do all of this now, the tools really were not available at the time. But I havent had time to work on DEB. I could implement it one day if people were interested. |
I did try running I wasn't positive if this was the correct package for me yet, I wanted to play around with it to find out. I am trying to find an appropriate package for running mechanistic niche modeling of a closed microbial ecosystem within a plant's root system. I had read the paper associated with this package and thought that maybe it could work for what I was trying to figure out. I am definitely open to suggestions about other packages to try instead though! Previously my team has used Lotka-Volterra Predator Prey models to infer symbiont microbes (between any given two microbes), but I was exploring the idea of using mechanistic niche modeling to infer symbiont microbes (between given microbes and the plant itself) within the system instead. At the very least, I would want to utilize the model to identify which microbes can exist under the same conditions as each other and the plant in a closed microecosystem (hydroponics space travel system). The main difference between my goals and with the model and other researchers, is that the ecosystem does not exist yet, and would theoretically be constructed based on the conditions with the most favorable outputs for as many of the target species as are compatible. If you have any suggestions on packages or better models to reach that goal, I would be happy to hear them! Thank you for your help. |
Ok interesting, I think maybe I've written the order wrong... its actually activate then instantiate! Post the error if that doesn't work. This code does a lot of things and is a good demonstration of DEB/Julia for this kind of thing, but isn't very user friendly. But I don't know of any other packages unfortunately! |
I switched to my Linux laptop and tried again. This time, it gave the error: |
After several days of debugging, I have sorted out the dependency issues on my machine. I ended up having to download Conda as well as Node.js in order to get some of the packages functioning. However, I have hit a major road block with this when I run
My guess is that WebIO, a dependency of Knockout, is in a rocky state based on the types of issues on the GitHub page and is in turn creating issues with Knockout. That would be my best guess, but I could be wrong. For reference I am using Visual Studio Code on Linux to run this program. Does anyone have any suggestions for this issue? Alternatively, is there a better version of WebIO or Knockout to be using (assuming they are related to the problem)? I have tried 0.8.15 and 0.8.14 for WebIO and 0.2.4 for Knockout thus far. |
I know this probably wont help much, but with Julia you should not have to deal with any of these lower level dependencies manually. For comparison, I have never installed anything you mention even once. It should just work when you install the packages. When I get time I will look at updating the Project.toml here and making sure it just works, but unfortunately I'm in the middle of moving countries so I can't put any time to this for a while. Sorry about the time this has wasted for you. |
It may also be down to the version of Julia. I guess it may break on newer versions. This was probably updated for 1.3 or 1.4, and may not work on 1.6. |
Don't feel bad about not being able to immediately give support, I completely understand the nature of having multiple projects (and life events) ongoing. I consider any timely help with troubleshooting a gift and not a requirement. Thank you for putting this together and sharing it in the first place! I am in the process of trying with Julia 1.4.1 and will give you an update and let you know if it works to help with any future troubleshooting or issues from other potential users. |
I still had issues with running the program using Julia 1.4.1 with the following error (once again via Visual Studio Code on Linux):
|
@rafaqz is there a version of Photosynthesis.jl that is still compatible with DynamicEnergyBudgets.jl or DEBplant.jl? I've been trying to go through the Photosynthesis.jl version history, but didn't understand when and how major restructuring happened. The DEBplant Manifest.toml links to the current version that does not define FvCBEnergyBalance. It would be awesome, if we could get a working version of DynamicEnergyBudgets.jl possibly with an older Julia version. Would you have time to take a look? I find it hard to understand all dependencies, as some of the structures, e.g. FieldMetadata.jl seem to be outdated as well. [[Photosynthesis]] |
There is always a version, because the full history of every package is available in git The paper had a zenodo record attached. It probably needs julia 1.3. But it should point to all the old versions on github that work together: But I will also endevour to get this updated too. I had to write a lot of tools from scratch for this project, and now have written much better and more tools for building the internals of these models and for data handling - Rasters.jl/ModelParameters.jl and others - and those are what I currently use. These older packages that inspired the new registered ones haven't been updated because I'm stretched pretty thin, and I'm my own PhD which doesn't use these pacakges at all. |
Also, to clarify, this repository is just the scripts to produce the paper and the analysis I did for it. This is not a package! Photosynthesis.jl and DynamicEnergyBudgets.jl are the packages, and they both still work fine! They also need updating, but they would be moving away from compatibility with these scripts, not towards it. |
I will be more able to help if we focus on using the packages these scripts use - they're much simpler and more structured than these scripts. |
Thanks a lot for the link to the zenodo record and clarification! I got the user interface to work with Julia Version 1.3.1 and making minor changes to ui.jl, namely JLD2's readdir() function, and renaming the environments variable (ll.26-27) to environment. The build for DynamicEnergyBudgets.jl with later versions (somehow connected to OrdinaryDiffEq and Julia 1.5) still fail for me, but all I need is a working version of the model at this point. |
Ah ok. Glad you got it working. For getting DynamicEnerguBudgets.jl working lets make issues over there. It should be a minor fix. |
I am running Julia 1.6.1 on Windows via Windows Powershell and when I tried to utilize the
ui.jl
script as per the Read Me document, I received several warnings and a Load Error. I attached a .txt document that was copied and pasted from my session that shows the outputs of runninginclude("ui.jl")
As a disclaimer, I am a new Julia (and GitHub) user so it is possible any errors may be from my end, however I believe at least some of these issues originate from the code (perhaps the newest Julia version creates some incompatibilities).
Thank you in advance for anyone that has any ideas on solutions, I am really interested in the applications of this package!
Julia_UI_Script_Error.txt
The text was updated successfully, but these errors were encountered: