Closed
Description
I have setup my development environment as described here: Setting up a Development Environment. This is working so far and I could make changes and tests were running fine. However, when I want to make a commit I get the following error:
Commit Logs
08:24:09.076: [nltk] git -c core.quotepath=false -c log.showSignature=false add --ignore-errors -A -f -- nltk/stem/snowball.py nltk/translate/ibm5.py nltk/tokenize/casual.py
08:24:09.471: [nltk] git -c core.quotepath=false -c log.showSignature=false commit -F C:\Users\madnex\AppData\Local\Temp\git-commit-msg-.txt --
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('C:\\Users\\madnex\\.cache\\pre-commit\\repoxdo4288b\\py_env-default\\Scripts\\python.EXE', '-mpip', 'install', '.')
return code: 1
expected return code: 0
stdout: (none)
stderr:
Traceback (most recent call last):
File "C:\Users\madnex\Anaconda3\envs\nltk\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\madnex\Anaconda3\envs\nltk\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\madnex\.cache\pre-commit\repoxdo4288b\py_env-default\lib\site-packages\pip\__main__.py", line 29, in
from pip._internal.cli.main import main as _main
File "C:\Users\madnex\.cache\pre-commit\repoxdo4288b\py_env-default\lib\site-packages\pip\_internal\cli\main.py", line 9, in
from pip._internal.cli.autocompletion import autocomplete
File "C:\Users\madnex\.cache\pre-commit\repoxdo4288b\py_env-default\lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in
from pip._internal.cli.main_parser import create_main_parser
File "C:\Users\madnex\.cache\pre-commit\repoxdo4288b\py_env-default\lib\site-packages\pip\_internal\cli\main_parser.py", line 8, in
from pip._internal.cli import cmdoptions
File "C:\Users\madnex\.cache\pre-commit\repoxdo4288b\py_env-default\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 24, in
from pip._internal.cli.parser import ConfigOptionParser
File "C:\Users\madnex\.cache\pre-commit\repoxdo4288b\py_env-default\lib\site-packages\pip\_internal\cli\parser.py", line 12, in
from pip._internal.configuration import Configuration, ConfigurationError
File "C:\Users\madnex\.cache\pre-commit\repoxdo4288b\py_env-default\lib\site-packages\pip\_internal\configuration.py", line 24, in
from pip._internal.utils import appdirs
File "C:\Users\madnex\.cache\pre-commit\repoxdo4288b\py_env-default\lib\site-packages\pip\_internal\utils\appdirs.py", line 13, in
from pip._vendor import platformdirs as _appdirs
File "C:\Users\madnex\.cache\pre-commit\repoxdo4288b\py_env-default\lib\site-packages\pip\_vendor\platformdirs\__init__.py", line 42, in
PlatformDirs = _set_platform_dir_class() #: Currently active platform
File "C:\Users\madnex\.cache\pre-commit\repoxdo4288b\py_env-default\lib\site-packages\pip\_vendor\platformdirs\__init__.py", line 21, in _set_platform_dir_class
from pip._vendor.platformdirs.windows import Windows as Result
File "C:\Users\madnex\.cache\pre-commit\repoxdo4288b\py_env-default\lib\site-packages\pip\_vendor\platformdirs\windows.py", line 3, in
import ctypes
File "C:\Users\madnex\Anaconda3\envs\nltk\lib\ctypes\__init__.py", line 8, in
from _ctypes import Union, Structure, Array
ImportError: DLL load failed while importing _ctypes: The specified module could not be found.
Check the log at C:\Users\madnex\.cache\pre-commit\pre-commit.log
I am using a conda environment with python 3.10.4 on a Windows 10 machine. So far I couldn't find any helpful info for this issue on the web. Any help would be appreciated :)
Metadata
Assignees
Labels
No labels