ModuleNotFoundError: No module found 'mxdev'

Hello community,
If I am using the python version 3.10 .Running make install command suggests me to install the necessary python version <=3.12.

+ dirname /mnt/h/projects/project-title/Makefile
+ echo 'Install Backend & Frontend'
Install Backend & Frontend
+ make backend-install
make[1]: Entering directory '/mnt/h/projects/project-title'
+ dirname /mnt/h/projects/project-title/Makefile
+ make -C ./backend/ install
make[2]: Entering directory '/mnt/h/projects/project-title/backend'
+ which uv
+ dirname /mnt/h/projects/project-title/backend/Makefile
+ dirname /mnt/h/projects/project-title/backend/Makefile
+ dirname /mnt/h/projects/project-title/backend/Makefile
+ dirname /mnt/h/projects/project-title/backend/Makefile
+ dirname /mnt/h/projects/project-title/backend/Makefile
+ dirname /mnt/h/projects/project-title/backend/Makefile
+ dirname /mnt/h/projects/project-title/backend/Makefile
+ dirname /mnt/h/projects/project-title/backend/Makefile
+ dirname /mnt/h/projects/project-title/backend/Makefile
+ dirname /mnt/h/projects/project-title/backend/Makefile
+ dirname /mnt/h/projects/project-title/backend/Makefile
+ dirname /mnt/h/projects/project-title/backend/Makefile
+ cat /mnt/h/projects/project-title/backend/version.txt
++ tput setaf 2
++ tput sgr0
+ echo '==> Generate constraints file'
==> Generate constraints file
+ echo '-c https://dist.plone.org/release/6.1.1/constraints.txt'
+ uvx mxdev -c mx.ini
###############################################################################
# Load configuration
Can not parse override:
###############################################################################
# Read infiles
Read [r]: requirements.txt
Read [c]: https://dist.plone.org/release/6.1.1/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)
+ dirname /mnt/h/projects/project-title/backend/Makefile
++ tput setaf 2
++ tput sgr0
+ echo '==> Install environment'
==> Install environment
+ uv venv /mnt/h/projects/project-title/backend/.venv
Using CPython 3.10.12 interpreter at: /usr/bin/python3
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate
+ uv pip install -r requirements-mxdev.txt
  × No solution found when resolving dependencies:
  ╰─▶ Because only project-title[test]==1.0.0a0 is available and the current Python version (3.10.12) does not satisfy Python>=3.12, we can conclude that
      all versions of project-title[test] cannot be used.
      And because you require project-title[test], we can conclude that your requirements are unsatisfiable.
make[2]: *** [Makefile:55: /mnt/h/projects/project-title/backend/.venv] Error 1
make[2]: Leaving directory '/mnt/h/projects/project-title/backend'
make[1]: *** [Makefile:61: backend-install] Error 2
make[1]: Leaving directory '/mnt/h/projects/project-title'
make: *** [Makefile:90: install] Error 2

Once I have installed the python version 3.12.9 and performed the same command make install , It states me missing packages distutils which are deprecated in python 3.12. I copied the folders from python 3.10. After doing all those process I am getting the below error while running the make install command.

+ uvx mxdev -c mx.ini
Traceback (most recent call last):
  File "/home/isharish2004/.cache/uv/archive-v0/z--v4lms5Jv2CEbdraZZ5/bin/mxdev", line 6, in <module>
    from mxdev.main import main
ModuleNotFoundError: No module named 'mxdev'
make[2]: *** [Makefile:50: requirements-mxdev.txt] Error 1
make[2]: Leaving directory '/mnt/h/projects/project-title/backend'
make[1]: *** [Makefile:61: backend-install] Error 2
make[1]: Leaving directory '/mnt/h/projects/project-title'
make: *** [Makefile:90: install] Error 2

Hope this was fixed earlier https://community.plone.org/t/error-while-running-make-install-command/19114
Help me resolve the problem. Thanks in advance.

You need to provide more information, specifically the context in which you ran make install, a link to the instructions you followed, and any other relevant information to reproduce the issue.

please specify more info like which installation method you are using , OS , other environment settings
have you tried using venv for these version conflicts?

1 Like

I have installed (wsl) GNU/Linux 5.10.16.3 of Ubuntu 22.04.5 LTS distribution. I am trying to download the project using the cookieplone. here is the link for it which the I have followed.

Dowloaded the necessary modules for the plone.
uv version - uv 0.6.10
uvx version - uv-tool-uvx 0.6.10
pip version - pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.11)
node version - v22.14.0

cd /mnt/h/projects/volto/backend
python3.11 -m venv venv
source venv/bin/activate
pip install mxdev
mxdev -c mxdev.ini -v

The above command used for manually install the requirements from mxdev.ini
I have tried using venv @boss6825 . I got the below error

###############################################################################
# Load configuration
Traceback (most recent call last):
  File "/mnt/h/projects/volto/backend/venv/bin/mxdev", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/mnt/h/projects/volto/backend/venv/lib/python3.11/site-packages/mxdev/main.py", line 63, in main
    configuration = Configuration(
                    ^^^^^^^^^^^^^^
  File "/mnt/h/projects/volto/backend/venv/lib/python3.11/site-packages/mxdev/config.py", line 33, in __init__
    data = read_with_included(mxini)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/h/projects/volto/backend/venv/lib/python3.11/site-packages/mxdev/including.py", line 78, in read_with_included
    resolved = resolve_dependencies(file_or_url, tmpdir)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/h/projects/volto/backend/venv/lib/python3.11/site-packages/mxdev/including.py", line 47, in resolve_dependencies
    raise FileNotFoundError(file)
FileNotFoundError: mxdev.ini

Ana tried installing mxdev manually but failed.

Hope I have provided the necessary information about the context @stevepiercy

None of these steps are in the linked documentation. Why did you run them? I think you should start again from the beginning.

ok, I have done the installation process successfully

The problem is python 3.12 is not installed properly. I have completely uninstalled and reinstalled python 3.12 and its binaries.

After the reinstallation the make install was successfull.

Thanks for the support!!

The problem is python 3.12 is not installed properly. I have completely uninstalled and reinstalled python 3.12 and its binaries.

After the reinstallation the make install was successfull.

Thanks for the support @stevepiercy @boss6825

1 Like

uv installs the required Python version for you. You should not have to install Python at all. I don't know why you did that.

yep, but some modules are not installed properly. I came back to know them later. so I have reinstalled manually !!!

Which modules? If you have to do manual installation of any Python or Python module, either you're doing it wrong or there is a bug in Cookieplone. If the former, then you're "off-roading it" and no one can support you when you run into issues.

The problem is with the mxdev was not installed properly in my python3.12.
There is no issue with the cookieplone. I hope my internet was poor during the installation.