-
Notifications
You must be signed in to change notification settings - Fork 32
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
Load Error with getfieldspecs #128
Comments
This is example is broken for me too, although the error I get is different than @francispoulin:
|
It's a bit perplexing, because presumably the example is run to generate the documentation. I'm not sure what's happening. |
@francispoulin your error may arise because you are trying to run the example with a different version of Try navigating to
and then
|
Oh my. Ok, it's on users to keep this updated. |
@francispoulin I think the issue is unfortunately partly due to the fact that we don't provide a Let me know if these steps solve it for you:
This sequence of steps worked for me. |
I'll streamline the process! |
@glwagner, did you follow what the Perhaps we should update that also + add some basic instructions in the Docs. |
Thanks for all the feedback. First, I did go to examples and try julia --project and then the inclue but that gave the same error. Second, I verified I was on master and pulled. No changes. The updating worked fine and including command does work without any error. And the annimation works great! Unfortunately, I can't view ti using vlc but mplayer works fine in ubuntu. Also, when I try the first commands in the script, which failed before, they work fine now. Do I gather that the problem was that my package was not update date? If I was supposed to udpate something, sorry for not trying that before. I will keep this open in case you two feel like something needs to be modified. But if you like I'm happy to close it. |
Maybe I should have said that the following command, which didn't work before, does work now.
|
Could you print the output of using Pkg; Pkg.status() |
Sure thing:
|
The problem was the the BarotropicQG module was importing an old, now deprecated, function from FourierFlows.jl package (named
you installed the latest released version of GeophysicalFlows and it wasn't working. When you followed @glwagner steps you installed the version on master... |
An "easy" fix for now is to do
until I make a new release. Sorry for that :) |
Ah, I guess adding what you suggest above is a good fix for now. When I know it's been fixed I will add the regular version without #master. |
I tried removing the old package and then adding the master version and both have an Error.
|
Seems you have activated the repo's project now. I guess you started julia with
So in that case, the GeophysicalFlows will be the version in the local repo you cloned. Boy... it's not as easy as I would have thought for people to run the examples :( |
(Perhaps, some of the confusions that I may have created about "activated project" can be alleviated via julia's docs...) |
Thanks for the link @navidcy . That was helpful. I'm used to using virtual environments in python, and I guess I created one without realizing it. Good to know. I left Julia, re-entered and saw that I was in the (@v1.5) so I guess I am in a "normal" environment now, not virtual. I then managed to rm GeophysicalFlows, even though I might not have had to, and then added GeophysicalFlows#master, as suggested. That worked. Then, I coudl import GeophysicalFlows.BarotropicQG, without a problem That was a bit of a steap learning curve but I am glad to have learned it and hope not to make that mistake again. But will certainly make others. |
I'll try to add some more clarifications in the docs and I may ping you to give me your opinion whether they are clearer :) |
I am happy to help and please ask. I am a novice now so a good target audience. |
v0.8.1 was released and that should have dealt with this issue; I'm closing it in favour of #132 |
I tried to run the barotropic QG example and unfortunately got an error in the first importing step.
Is this a known problem? I'm using julia 1.5.2, in case that helps.
https://fourierflows.github.io/GeophysicalFlowsDocumentation/dev/generated/barotropicqg_betadecay/
The text was updated successfully, but these errors were encountered: