-
Notifications
You must be signed in to change notification settings - Fork 18
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
[BUG] poetry version solving fails with floris and flasc #200
Comments
It looks like these lines in the semantic versioning of the FLORIS and FLASC requirements, respectively, are what are causing the issue: We can likely move the FLASC dependency up to |
Thanks for looking at this! I am also trying to add pandas-stubs to my project but that also has a problem, this time because numpy is v1. If it's possible to open FLORIS and FLASC to numpy v2 that would help. I can raise a separate issue for that if you prefer.
|
@aclerc I opened a pull request to address the coloredlogs issue (#202), @misi9170 maybe we can do a patch release once this is in to include the fix in main? On numpy v2 this is a little trickier, over on FLORIS (NREL/floris#939) when I made a similar bump to coloredlogs, I went through and made the changes for numpy v2 as well, but there was some pushback because it's still relatively new. I think we'll want to move to v2, both FLORIS and FLASC, but maybe need to wait just a little bit for it to be adapted more widely in our dependencies. Still, I'm open to argument we should do this now. Maybe @misi9170 or @rafmudaf you have a feeling on this one? |
Hi @aclerc , #202 should have resolved the poetry issue and then @misi9170 has pushed a patch release containing the fix (https://github.com/NREL/flasc/releases/tag/v2.0.1) Regarding numpy v2, we've been discussing here and the consensus for now is to wait a little while for numpy v2 to be more widely adopted. Out of curiousity I was looking at the pandas github to see what approach they were taking. It seems like they were making sure the code was able to run with v2 (I had previously done this for FLORIS and remember it was not too difficult). But I think there requirement is still numpy < 2. Maybe that is a nice balance until more packages move over? @rafmudaf @aclerc @misi9170 does that sound right to you? |
@paulf81 , are you suggesting that we switch from |
I think the two lines are basically the same, I was just saying that while I understood pandas was 2.0 ready, they requiring < 2, which is maybe the approach we take (~=1.20 translates to something like >=1.2 & <2) |
Ah sorry, my mistake; I agree that it's nice to stick to supporting a single major version and that moving to supporting v2 seems a bit premature at this stage, so I'd prefer to stick with numpy 1.x |
@aclerc wanted to check if good to close this one now? |
yes I tried |
Is there an existing issue for this?
Current Behavior
I use
poetry
to define Python environments. I am making a new internal project calledwakesteer-design
and would like to use both FLORIS and FLASC. When I try adding one it works, but when I try addingflasc
after I already addedfloris
I get an error:I don't think this is a major problem because I can just add flasc and use floris since floris is a dependency of flasc.
Expected Behavior
I can set up a new poetry environment and run
poetry add floris
and thenpoetry add flasc
and it works.Steps To Reproduce
poetry new test-package
poetry add floris
poetry add flasc
Environment
- OS: Windows 10
Anything else?
No response
The text was updated successfully, but these errors were encountered: