Creating a Pipfile for this project...
Installing wagtail>=5.1,<5.2...
Resolving wagtail>=5.1,<5.2...
Added wagtail to Pipfile's [packages] ...
✔ Installation Succeeded
Installing mysqlclient>=2.2,<2.3...
Resolving mysqlclient>=2.2,<2.3...
Added mysqlclient to Pipfile's [packages] ...
✔ Installation Succeeded
Installing python-dotenv>=1.0,<1.1...
Resolving python-dotenv>=1.0,<1.1...
Added python-dotenv to Pipfile's [packages] ...
✔ Installation Succeeded
Installing django>=4.2,<5.0...
Resolving django>=4.2,<5.0...
Added django to Pipfile's [packages] ...
✔ Installation Succeeded
Pipfile.lock not found, creating...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!
⠹ Locking packages...False
<console width=80 ColorSystem.EIGHT_BIT>
Traceback (most recent call last):
File "/Users/leotreasure/wagtailfresh/env/bin/pipenv", line 8, in <module>
sys.exit(cli())
~~~^^
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/vendor/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/cli/options.py", line 52, in main
return super().main(*args, **kwargs, windows_expand_args=False)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/vendor/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/vendor/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/vendor/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/vendor/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/vendor/click/decorators.py", line 92, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/vendor/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/cli/command.py", line 207, in install
do_install(
~~~~~~~~~~^
state.project,
^^^^^^^^^^^^^^
...<14 lines>...
skip_lock=state.installstate.skip_lock,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/routines/install.py", line 234, in do_install
raise e
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/routines/install.py", line 209, in do_install
do_init(
~~~~~~~^
project,
^^^^^^^^
...<7 lines>...
skip_lock=skip_lock,
^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/routines/install.py", line 649, in do_init
do_lock(
~~~~~~~^
project,
^^^^^^^^
...<4 lines>...
categories=categories,
^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/routines/lock.py", line 67, in do_lock
venv_resolve_deps(
~~~~~~~~~~~~~~~~~^
packages,
^^^^^^^^^
...<10 lines>...
extra_pip_args=extra_pip_args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/utils/resolver.py", line 859, in venv_resolve_deps
c = resolve(cmd, st, project=project)
File "/Users/leotreasure/wagtailfresh/env/lib/python3.13/site-packages/pipenv/utils/resolver.py", line 723, in resolve
raise RuntimeError("Failed to lock Pipfile.lock!")
RuntimeError: Failed to lock Pipfile.lock!
Hi! I'm trying to follow this:
https://www.nickmoreton.co.uk/articles/deploy-wagtail-cms-to-pythonanywhere/initial-repo-and-starting-a-new-wagtail-project/
I create a venv and activate it, run the command in a empty git repository.:
pipenv install "wagtail>=5.1,<5.2" "mysqlclient>=2.2,<2.3" "python-dotenv>=1.0,<1.1" "django>=4.2,<5.0"