Skip to content
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] Dependency resolution issues in Poetry with visualization tools #223

Open
davenquinn opened this issue Mar 5, 2025 · 2 comments
Open
Labels
bug Something isn't working

Comments

@davenquinn
Copy link

Describe your issue

Finally evaluating Loop3D at Macrostrat!

I am using a Poetry environment (Poetry version 2.1.1; Python 3.12) to install LoopStructural. Initial installation works fine. However, when I try to modify the dependency specifier to loopstructural[all] to pull in the loopstructuralvisualisation package, I get the following "Version Solving" error:

➜ poetry add 'LoopStructural[all]'
Using version ^1.6.8 for loopstructural

Updating dependencies
Resolving dependencies... (0.5s)

Because no versions of loopstructural match >1.6.8,<2.0.0
 and loopstructural[all] (1.6.8) depends on loopstructuralviusualisation (>0.1.4), loopstructural[all] (>=1.6.8,<2.0.0) requires loopstructuralviusualisation (>0.1.4).
So, because no versions of loopstructuralviusualisation match >0.1.4
 and macrostrat-structural-modeling-test depends on loopstructural[all] (^1.6.8), version solving failed.

I think this is due to Poetry somehow resolving zero-based versions incorrectly (i.e., 0.1.14 is not treated as greater than the 0.1.4 requirement. I've run into similar issues with other packages in the past.

I was able to work around this for now by specifying the dependencies manually and independently as such:

    "loopstructural (>=1.6.8,<2.0.0)",
    "loopstructuralvisualisation (>=0.1.14,<0.2.0)"

Minimal reproducing code example

`poetry add 'LoopStructural[all]` in a clean Poetry environment

Error message

Because no versions of loopstructural match >1.6.8,<2.0.0
 and loopstructural[all] (1.6.8) depends on loopstructuralviusualisation (>0.1.4), loopstructural[all] (>=1.6.8,<2.0.0) requires loopstructuralviusualisation (>0.1.4).
So, because no versions of loopstructuralviusualisation match >0.1.4
 and macrostrat-structural-modeling-test depends on loopstructural[all] (^1.6.8), version solving failed.
@davenquinn davenquinn added the bug Something isn't working label Mar 5, 2025
@davenquinn
Copy link
Author

I also had to add pyvista[all] to the dependency list — PyVista without Jupyter extensions appears to fail.

@lachlangrose
Copy link
Member

Thanks @davenquinn the requirements for loopstructuralvisualisation are incorrect causing the issue. If you want to use Jupyter with loopstructural there [Jupyter] option would work, this is missing from all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants