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

Trouble adding torchreg by any means #143

Closed
Dale-Black opened this issue Aug 16, 2024 · 3 comments
Closed

Trouble adding torchreg by any means #143

Dale-Black opened this issue Aug 16, 2024 · 3 comments

Comments

@Dale-Black
Copy link

I have tried adding the python package torchreg but it fails in every attempt.

begin
	using CondaPkg
	CondaPkg.add_pip("torchreg", version = "@https://github.com/codingfisch/torchreg")
end

Which shows

    CondaPkg Found dependencies: C:\Users\jntruon5\AppData\Local\Temp\jl_vGcx8V\CondaPkg.toml
    CondaPkg Resolving changes
             + pip
             + torchreg
             + torchreg (pip)
    CondaPkg Creating environment
             │ C:\Users\jntruon5\.julia\artifacts\cba433181fa6470b206db49415f1b7593a9d25ff\bin\micromamba.exe
             │ -r C:\Users\jntruon5\.julia\scratchspaces\0b3b1443-0f03-428d-bdfb-f27f9c1191ea\root
             │ create
             │ -y
             │ -p C:\Users\jntruon5\AppData\Local\Temp\jl_vGcx8V\.CondaPkg\env
             │ --override-channels
             │ --no-channel-priority
             │ pip[version='>=22.0.0']
             │ torchreg[version='*',build='yes']
             └ -c conda-forge
conda-forge/win-64                                          Using cache
conda-forge/noarch                                          Using cache
error    libmamba Could not solve for environment specs
    The following package could not be installed
    └─ torchreg * yes does not exist (perhaps a typo or a missing channel).
critical libmamba Could not solve for environment specs

Or

begin
	using CondaPkg
	CondaPkg.add("torchreg")
end

which shows the same error

    CondaPkg Found dependencies: C:\Users\jntruon5\AppData\Local\Temp\jl_vGcx8V\CondaPkg.toml
    CondaPkg Resolving changes
             + pip
             + torchreg
             + torchreg (pip)
    CondaPkg Creating environment
             │ C:\Users\jntruon5\.julia\artifacts\cba433181fa6470b206db49415f1b7593a9d25ff\bin\micromamba.exe
             │ -r C:\Users\jntruon5\.julia\scratchspaces\0b3b1443-0f03-428d-bdfb-f27f9c1191ea\root
             │ create
             │ -y
             │ -p C:\Users\jntruon5\AppData\Local\Temp\jl_vGcx8V\.CondaPkg\env
             │ --override-channels
             │ --no-channel-priority
             │ pip[version='>=22.0.0']
             │ torchreg[version='*']
             └ -c conda-forge
conda-forge/win-64                                          Using cache
conda-forge/noarch                                          Using cache
error    libmamba Could not solve for environment specs
    The following package could not be installed
    └─ torchreg *  does not exist (perhaps a typo or a missing channel).
critical libmamba Could not solve for environment specs

As an aside, I am getting the exact same type of errors for the python package antspyx

Do you see anything I am doing wrong?

@tylerjthomas9
Copy link
Contributor

tylerjthomas9 commented Aug 20, 2024

I think you need to remove torchreg from your conda deps. Both error messages are when resolving the conda environment, which happens before installing pip packages. Also, I had to modify the version for add_pip with torchreg. The following commands worked for me when using a fresh environment.

using CondaPkg
CondaPkg.add("python", version="=3.12", resolve=false)
CondaPkg.add_pip("torchreg", version = "@git+https://github.com/codingfisch/torchreg.git")

@Dale-Black
Copy link
Author

Fantastic, that seems to work for me as well. Not sure why, but still great

@tylerjthomas9
Copy link
Contributor

Fantastic, that seems to work for me as well. Not sure why, but still great

I think that torchreg was still in your CondaPkg.toml file under the conda deps, so it would fail to resolve the conda environment. CondaPkg.jl wouldn't get to the pip installs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants