[INFO] Installing environment for https://github.com/timothycrosley/isort.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('C:\\Users\\tbland\\.cache\\pre-commit\\repoetiij17o\\py_env-default\\Scripts\\python.EXE', '-mpip', 'install', '.', 'toml')
return code: 1
stdout:
Processing c:\users\tbland\.cache\pre-commit\repoetiij17o
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
stderr:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
error: subprocess-exited-with-error
pip subprocess to install build dependencies did not run successfully.
exit code: 1
[9 lines of output]
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/poetry-core/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/poetry-core/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/poetry-core/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/poetry-core/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/poetry-core/
Could not fetch URL https://pypi.org/simple/poetry-core/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/poetry-core/ (Caused by SSLError("Can't connect to HTTPS
URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement poetry-core>=1.0.0 (from versions: none)
ERROR: No matching distribution found for poetry-core>=1.0.0
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
pip subprocess to install build dependencies did not run successfully.
exit code: 1
See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Check the log at C:\Users\tbland\.cache\pre-commit\pre-commit.log
It's worth noting that everything works fine if I try this on my mac with the same python version, so it seems to be a windows specific problem
UPDATE:
I have the above issue with python3.8 and 3.9. I can get the pre-commit hooks to work with python3.11, but as MUSE itself doesn't support this version, this isn't a viable solution
After installing the pre-commit hooks with python3.11, they now work if I switch back to 3.9 since they're globally cached on my system. However, it's entirely possible a new user will come across a similar problem
It's likely that this will fix itself as we further develop MUSE (e.g. may be fixed by #267), so I'm not going to put any specific effort into fixing this for now, but will leave the issue up as a reminder to check back on this in the future
Expected behavior
Pre-commit hooks should install, run and pass
Context
Please, complete the following to better understand the system you are using to run MUSE.
Operative system (eg. Windows 10): Windows 10
MUSE version (eg. 1.0.1): dev branch
Installation method (eg. pipx, pip, development mode): dev mode
Python version (you can get this running python --version): 3.9.18 (also tried with 3.8.19)
Describe the bug
I'm having issues running the pre-commit hooks on my windows machine.
To Reproduce
I run the following steps:
And get the following error at the final step:
It's worth noting that everything works fine if I try this on my mac with the same python version, so it seems to be a windows specific problem
UPDATE:
Expected behavior
Pre-commit hooks should install, run and pass
Context
Please, complete the following to better understand the system you are using to run MUSE.
python --version
): 3.9.18 (also tried with 3.8.19)