plotman icon indicating copy to clipboard operation
plotman copied to clipboard

Install fails when upgrading to chia 1.3, Debian 11, Python 3.9

Open gavinmonson opened this issue 3 years ago • 6 comments

I get the following error trying to install plotman on chia 1.3. If I roll back to chia 1.2.11 I don't get the error.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. chia-blockchain 1.3.0 requires packaging==21.0, but you have packaging 20.9 which is incompatible. chia-blockchain 1.3.0 requires typing-extensions==4.0.1, but you have typing-extensions 3.10.0.2 which is incompatible.

gavinmonson avatar Mar 12 '22 21:03 gavinmonson

Sorry for the trouble and thanks for bumping me on this. I'm adding a test where we install plotman with Chia in CI https://github.com/ericaltendorf/plotman/pull/953. Once that gets merged to development you can go ahead and install that using the regular installation instructions but with @development instead of @main.

altendky avatar Mar 12 '22 23:03 altendky

Just merged that. Let me know if you are able to get it working or not.

altendky avatar Mar 13 '22 02:03 altendky

If I run this it works

pip install --force-reinstall packaging==21.0 typing-extensions==4.0.1 git+https://github.com/ericaltendorf/plotman@development

If I run this I get the same error.

pip install --force-reinstall git+https://github.com/ericaltendorf/plotman@development

If I run with the forced packages on the main branch.

pip install --force-reinstall packaging==21.0 typing-extensions==4.0.1 git+https://github.com/ericaltendorf/plotman@main

I get an additional error ERROR: Cannot install packaging==21.0 and plotman==0.5.3 because these package versions have conflicting dependencies.

So on the development branch it will now accept the right packages if you force it. But it still tries to load the wrong ones by default.

gavinmonson avatar Mar 13 '22 12:03 gavinmonson

I see the next layer of the issue, thanks. I'll correct the testing to be more accurate and try to figure out a solution. There are a couple basic issues. pip doesn't do a great job of keeping consistency dependencies across multiple install calls. The --force-reinstall was added to the plotman readme to force updating of plotman but has the side effect of force reinstalling all of its dependencies. For the moment I think if you just don't use the --force-reinstall it will be ok assuming you don't already have plotman installed.

altendky avatar Mar 13 '22 13:03 altendky

just wanted to say that I'm updating from chia 1.2.11 to 1.3.3. Not too sure which plotman version i was using previously, but I have to use :

pip install --force-reinstall packaging==21.0 typing-extensions==4.0.1 git+https://github.com/ericaltendorf/plotman@development

the other cli, including the one from the wiki install doesn't work.

fireboy0526 avatar Apr 17 '22 09:04 fireboy0526

Upgraded to ubuntu 22.04/python 3.10. You can again get it to install by overriding pip. New addition is pyyaml is at 6.0 now.

pip install --force-reinstall packaging==21.0 typing-extensions==4.0.1 --ignore-installed pyyaml git+https://github.com/ericaltendorf/plotman@development

gavinmonson avatar May 20 '22 21:05 gavinmonson