shyam999/Hot-Food

Failed to lock Pipfile.lock!

Opened this issue · 0 comments

Im trying to install the env using Python 3.12.6 and pipenv, version 2024.1.0 but keep receiving the error

(venv) c:\python_test_env\ecoomerce\v3\Hot-Food>pipenv install -r requirements.txt Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning. Creating a Pipfile for this project... Requirements file provided! Importing into Pipfile... Pipfile.lock not found, creating... Locking [packages] dependencies... Building requirements... Resolving dependencies... Locking Failed! [ =] Locking packages...False <console width=120 ColorSystem.TRUECOLOR> Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "c:\python_test_env\ecoomerce\v3\venv\Scripts\pipenv.exe\__main__.py", line 7, in <module> # when invoked as python -m pip <command> ^^^^^ File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\vendor\click\core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\cli\options.py", line 52, in main return super().main(*args, **kwargs, windows_expand_args=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\vendor\click\core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\vendor\click\core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\vendor\click\core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\vendor\click\core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\vendor\click\decorators.py", line 92, in new_func return ctx.invoke(f, obj, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\vendor\click\core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\cli\command.py", line 207, in install do_install( File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\routines\install.py", line 93, in do_install do_init( File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\routines\install.py", line 649, in do_init do_lock( File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\routines\lock.py", line 67, in do_lock venv_resolve_deps( File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\utils\resolver.py", line 859, in venv_resolve_deps c = resolve(cmd, st, project=project) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\python_test_env\ecoomerce\v3\venv\Lib\site-packages\pipenv\utils\resolver.py", line 723, in resolve raise RuntimeError("Failed to lock Pipfile.lock!") RuntimeError: Failed to lock Pipfile.lock!

noticed that I do have my virtual env enable
could please give me some thoughts?
thanks