Error installing Plone 6 with cookieplone

Hello,
When I try to install Plone 6 with the new installer, cookieplone, following the instructions in Install Plone with Cookieplone – Admin guide — Plone Documentation v6.0, I get the following error:

Successfully installed argcomplete-3.5.1 cachetools-5.5.0 cfgv-3.4.0 chardet-5.2.0 click-8.1.7 colorama-0.4.6 distlib-0.3.9 filelock-3.16.1 identify-2.6.2 mxdev-4.0.3 nodeenv-1.9.1 packaging-24.2 pip-24.3.1 pipx-1.7.1 platformdirs-4.3.6 pluggy-1.5.0 pre-commit-4.0.1 pyproject-api-1.8.0 pyyaml-6.0.2 tox-4.23.2 userpath-1.9.2 uv-0.5.1 virtualenv-20.27.1 wheel-0.45.0
+ '[' -d /home/plone/plone6/new/6.0.13/intranet/backend/.git ']'
++ tput setaf 1
++ tput sgr0
+ echo ' Not installing pre-commit'
 Not installing pre-commit
+ dirname /home/plone/plone6/new/6.0.13/intranet/backend/Makefile
++ tput setaf 2
++ tput sgr0
+ echo '==> Create instance configuration'
==> Create instance configuration
+ /home/plone/plone6/new/6.0.13/intranet/backend/.venv/bin/pipx run cookiecutter -f --no-input --config-file instance.yaml gh:plone/cookiecutter-zope-instance
Warning: initial user's password is insecure, it should be at least 10 characters long!

+ dirname /home/plone/plone6/new/6.0.13/intranet/backend/Makefile
+ dirname /home/plone/plone6/new/6.0.13/intranet/backend/Makefile
++ tput setaf 2
++ tput sgr0
+ echo '==> Setup Build'
==> Setup Build
+ /home/plone/plone6/new/6.0.13/intranet/backend/.venv/bin/mxdev -c mx.ini
###############################################################################
# Load configuration
Can not parse override: 
###############################################################################
# Read infiles
Read [r]: requirements.txt
Read [c]: constraints.txt
Read [c]: https://dist.plone.org/release/6.0.13/constraints.txt
###############################################################################
# No sources configured!
###############################################################################
# Write outfiles
Write [c]: constraints-mxdev.txt
Write [r]: requirements-mxdev.txt
🎂 You are now ready for: pip install -r requirements-mxdev.txt
   (path to pip may vary dependent on your installation method)
+ /home/plone/plone6/new/6.0.13/intranet/backend/.venv/bin/uv pip install -r requirements-mxdev.txt
error: Build backend failed to determine requirements with `build_editable()` (exit status: 1)

[stderr]
error in intranet setup command: Distribution contains no modules or packages for namespace package ''
make: *** [Makefile:69: build-dev] Error 2

I use python 3.11.9 in pyenv, nvm 0.40.1, node v20.18.0

With cookiecutter-plone-starter, Plone 6.0.13 can be installed successfully as usual.

Unfortunately, I haven't found any reference to such a problem here in the forum.

What is the problem here?

Perhaps another small hint that I noticed in the documentation: nvm install --lts but this installs version v22.11.0, which is not accepted by cookieplone.

2 Likes

Hello @tfili,

Could you please tell me which version of cookieplone and cookiplone-templates do you have?

pipx run cookieplone --version
and look at the footer of the backend\README file for the cookieplone-templates version.

Here is the output :

pipx run cookieplone --version
Cookieplone 0.8.0 from /home/plone/.cache/pipx/ba5e146da2ee207/lib/python3.11/site-packages/cookieplone (Cookiecutter 2.6.0, Python 3.11.9 (main, Nov 11 2024, 11:11:38) [GCC 13.2.0])

Made with ❤ by the Plone Community

@tfili What did you choose as the "Python Package Name"? Currently it only works if you use a package name with a namespace, e.g. collective.something

This error looks like it might be related to using a package name without a namespace.

This will be fixed soon but the fix hasn't been released yet.

@davisagli

Thank you very much, with collective.intranet as the Python package name it worked.

Ah I hope a complete workable doc will be update asap.

If I could perhaps express a wish regarding the documentation.
I would find it very helpful if there were instructions on how to set up a development environment using namespaces, especially for newcomers who don't want to publish their first attempts on github straight away. Perhaps on your own gitlab. Including a recommendation on what to put in an add-on and what not, so that later when upgrading the Plone version you only have to integrate your own add-ons in the main instance.

Just now I have try to follow

and result is

╭────────────────────────────────── Plone Project ──────────────────────────────────╮
│ │
│ Creating a new Plone Project │
│ │
│ Sanity check results: │
│ │
│ - Python: ✓ │
│ - Node: Node version is not supported: Got v22.11.0 │
│ - git: ✓ │
│ - Docker (optional): Docker not found. │
│ │
╰───────────────────────────────────────────────────────────────────────────────────╯
Pre-Prompt Hook script failed

Yes, as I wrote above, nvm install --lts installs version 22.11.0 which is not supported by cookieplone. Install the 20 LTS with nvm install 20.12.2 or nvm install --lts/iron

1 Like

Thanks for your kindly reminder, it you not told me... I will never find this in the official document... it's not when I first use plone 2 suppose to be...

Many thanks.

Can someone add this to the official document?

Within the past day we fixed the 2 main issues discussed above:

  1. The cookieplone templates now support Python packages with no namespace or more than one namespace. (See Support Python packages with no namespace or multiple namespaces by davisagli · Pull Request #86 · plone/cookieplone-templates · GitHub)
  2. We released cookieplone 0.8.1 which now validates support for Node 22 correctly. (See Update validation for Volto and Node versions by davisagli · Pull Request #49 · plone/cookieplone · GitHub)
5 Likes