-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
Insufficient ruamel.yaml dependencies on older systems #831
Comments
I think the version check will have to go in |
So there's no way to check for this in |
There is, it just wouldn't be terribly useful since the same error would show up if a user installs an old version of |
I don't see a reason not to check in SConstruct, though. That would be consistent with what we do for almost every other dependency. I don't think we should do checks in the individual converter scripts. |
What if a user installs the package from the PPA and installs I guess one option is to not support the PPA on 16.04, and only support building from source, if we don't want to add the check to the scripts. I think the second problem is much less likely. I would note that we check the NumPy version in these scripts though. I'm not opposed too adding the check to Sconstruct, but I don't think that's enough. |
The Ubuntu package, and any other package for a packaging system that allows dependencies to be expressed, should specify an appropriate minimum version of ruamel.yaml, whatever that is (I don't think we've worked it out beyond what Ingmar's determined that that it lies somewhere between 0.10.23 and 0.16.10). I think this is somewhat independent of what checks the SCons build system does. We may not be able to provide Ubuntu packages for 16.04, unless we also include an updated version of ruamel.yaml in the PPA. |
fwiw ... |
At least the Windows installer doesn't allow this to be expressed. We have data for this now! About 30% of the people who responded to the survey used the Windows installer. Those people are also likely to have used I guess the question I have is, what's the harm of doing it in the scripts? Just that it has to go in 3 places? It would be equivalent of doing it in |
Coming back to this, I think it would be better to wait for user reports of errors before doing anything. The only platform that we currently support where this is somewhat likely to be a problem (IMO) is Ubuntu 16.04, which goes out of support next year, and even then it's only a problem if you're using the system Python with |
For many build systems, it is customary to check for minimum versions of dependencies during compilation (at least this was the original intent of this issue report). It obviously won't apply for pre-packaged installs, but it should be straight-forward to check when using |
Do we have any idea what the actual minimum version is? Does it matter if we get to the exact minimum version? I just tried to look, and I couldn't find it in 20 minutes or so. As far back as I can see, the If we can arbitrarily pick 0.15.94 (since we know that works and its from April 2019, so fairly old), then that's easy enough to check for in SConstruct. |
We don’t, but 0.15.94 sounds reasonable. On a related note, would it make sense to create a |
Maybe I'm missing something, but how would that work? Cantera can't currently be installed using pip. |
That is true, but it's likely also true that
Nevermind. I think there are probably use cases where people want to install without admin rights, so this may not be workable. |
I don't think we should assume that |
@bryanwweber ... fair point about FWIW, this would be the procedure: Create
and run:
PS: I used PPS: What I had in mind was to put |
@bryanwweber ... np - whatever you do is fine ... although the |
System information
Expected behavior
scons test
works out of the box, after successfulscons build
Actual behavior
Test fails
To Reproduce
Steps to reproduce the behavior:
apt-get update
ruamel-yaml
viaapt-get install python3-ruamel.yaml
(which has version '0.10.23')Additional context
The alternate
pip3 install ruamel-yaml
works (version '0.16.10') ...To resolve, a minimum version for
ruamel.yaml
appears to be necessary.The text was updated successfully, but these errors were encountered: