Jutho / TensorOperations.jl

Julia package for tensor contractions and related operations
https://jutho.github.io/TensorOperations.jl/stable/
Other
438 stars 55 forks source link

install newest version? #180

Closed guochu closed 2 weeks ago

guochu commented 2 weeks ago

I found that I can not install TensorOperations above version 4.0, the newest version I can install is 3.2.4, is there any reason?

lkdvos commented 2 weeks ago

Can you attach the output of the package status? Most likely there is some package that is restricting the compat, my best guess would be CUDA and or cuTENSOR. We are working on releasing a new version that fixes this, but it might still take a while. Depending on your context, if it really is the CUDA compat, you could attempt to manually add Tensoroperations at the latest version too.

guochu commented 2 weeks ago

Dear Lucas: I attached the output. I found that for other packages such as VectorInterface, TensorKit, I can also only install some old version.

" (@v1.10) pkg> add TensorOperations@4.1.1 Resolving package versions... ERROR: Unsatisfiable requirements detected for package TensorOperations [6aa20fa7]: TensorOperations [6aa20fa7] log: ├─possible versions are: 0.6.1-3.2.4 or uninstalled └─restricted to versions 4.1.1 by an explicit requirement — no versions left "

lkdvos commented 2 weeks ago

It seems to say that you have an explicit requirement set somewhere to fix the version of TensorOperations. Do you have a Project.toml file somewhere that specifies this perhaps? Otherwise, can you show me the output of the following:

import Pkg;
Pkg.status()
guochu commented 2 weeks ago

I suspected this to be the reason, therefore I installed a fresh julia, with absolutely no custom package install. So the output of Pkg.status() is an empty project. I also asked one collegue to install TensorOperations v4.1.1, and he founds the same problem as me, with a different version of julia

lkdvos commented 2 weeks ago

I have to admit that I am struggling to reproduce this. I will just add some things I am currently considering below, I am absolutely not sure if any of these will solve the problem or give more information, but I don't really know what is going on. Did you happen to have a similar issue with other packages? Is it possible that you have somehow lost connection to the julia registry, such that you cannot get the latest version of packages? Otherwise, does pkg> add TensorOperations#master work? You could try to clone the repository locally and add it like that, and see if that does work? Is it possible that you have some packages in an overarching shared environment? Does the problem persist if you try with a temporary environment? (https://pkgdocs.julialang.org/v1/environments/#Temporary-environments)

guochu commented 2 weeks ago

I tried again just now and everything became normal again. I suddenly can install the newest versions of TensorOperations and TensorKit. I donot know what happed two days ago..., but the problem seems to be automatically solved. Thanks for your prompt reply!

lkdvos commented 2 weeks ago

No problem! As long as it remains solved I am happy :) Can I close this issue?

guochu commented 2 weeks ago

Sure, thanks again!