Getting bootstrapper error when running the install command for version 1.4 #57
-
I keep getting this error : "Welcome to the CS Tools Bootstrapper! When I run the new install command: "(Invoke-WebRequest FYI I have Python version 3.7.6. I also tried on 3.11.1 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Hi, this should be fixed now -- can you try again? I totally didn't replace my commitish reference target from during development. 🙃 |
Beta Was this translation helpful? Give feedback.
-
Ok that worked! But now when i try to run cs_tools --version I get : ImportError: cannot import name 'Literal' from 'typing' (C:\Users\alexw\AppData\Local\Programs\Python\Python37\lib\typing.py) |
Beta Was this translation helpful? Give feedback.
When you install a new version of python on Windows, it gets added to the front of your
PATH
variable by default. Which means when you typepython
, the OS will go searching down the list of directories there. Python311 was sitting in front of Python37.Whenever you create a virtual environment in python, all that's happening is it bootstraps a new directory and symlinks/references the then-system version of python.
So essentially what's happening is CS Tools is looking at the old directory and trying to call
python
, which resolves topython3.11
instead. Nuking the virtual environment, or replacing all the …