modpack-installer icon indicating copy to clipboard operation
modpack-installer copied to clipboard

Issue with modpack installation.

Open Alicazation opened this issue 2 years ago • 2 comments

After running python install.py Better+MC+[FABRIC]+1.20.1+v19.zip It failed with:

Traceback (most recent call last):
  File "install.py", line 33, in <module>
    from distutils import copy_tree
ImportError: cannot import name 'copy_tree'

I run ubuntu 16.04 and have python 3.6. I also have Oracle Java 17 console and shell.

Alicazation avatar Nov 04 '23 07:11 Alicazation

Resolved: Updated to Python 3.8. I read install.py and in line 26/27 it says this shutil.copytree doesn't accept dirs_exist_ok until 3.8 which is fairly modern (I think some LTS distros still use 3.6) fall back to distutils copy_tree (the old solution) if needed

Alicazation avatar Nov 04 '23 07:11 Alicazation

Oh... I did add some logic to use distutils on Python versions below 3.8, and it turns out I never tested it.

Thanks for the report!

cdbbnnyCode avatar Nov 04 '23 08:11 cdbbnnyCode

Should be fixed in ac47ae2.

cdbbnnyCode avatar Apr 15 '24 19:04 cdbbnnyCode