Matlab python package. ModuleNotFoundError: No module named 'wheel'
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi installing python packaged matlab function results in this error when running to create a wheel starting of pip version 24.
This works fine for pip 23, can anyone help solve this?
pip wheel --no-cache-dir --use-pep517 "wwd-celloutput-r2023a @ file:///home/sander/dev/calculators/model/matlab/WWD_calculator_package"
× Building wheel for wwd-celloutput-r2023a (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
bdist_wheel requires the 'wheel' module, which can be installed via pip.
Traceback (most recent call last):
File "/home/sander/.cache/pypoetry/virtualenvs/calculators-4b8SRMwI-py3.10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/sander/.cache/pypoetry/virtualenvs/calculators-4b8SRMwI-py3.10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/sander/.cache/pypoetry/virtualenvs/calculators-4b8SRMwI-py3.10/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-540icr8g/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 415, in build_wheel
return self._build_with_temp_dir(
File "/tmp/pip-build-env-540icr8g/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 397, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-540icr8g/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 497, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-540icr8g/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 313, in run_setup
exec(code, locals())
File "<string>", line 23, in <module>
ModuleNotFoundError: No module named 'wheel'
[end of output]
0 comentarios
Respuestas (3)
Umar
el 30 de Jun. de 2024
Hi Sander,
The error message indicates that the 'wheel' module is missing, causing the build process to fail. To resolve this, you need to install the 'wheel' module using pip. You can do this by running the following command in your terminal:
pip install wheel
Once the 'wheel' module is installed, retry building the wheel for your Python package in MATLAB. This should resolve the 'No module named wheel' error and allow you to create the wheel successfully.
1 comentario
Umar
el 1 de Jul. de 2024
Hi Sander,
The only other option at this point that I can think about would be reinstalling the affected packages within the virtual environment. This can be achieved by running the following command in the terminal:
pip install --force-reinstall -r requirements.txt
By forcing a reinstallation of the packages, you can ensure that they are compatible with the updated pip version, potentially resolving the wheel module issue.
Hope this helps out resolve your problem.
Umar
el 1 de Jul. de 2024
Hi Sander,
As of Matlab 2023b and 2024a, there have not been any significant changes in the packaging of Python that would directly impact the use of Poetry or pip 24. While it is important to note that Matlab typically integrates with Python through the Python Engine API, which allows for seamless interaction between Matlab and Python environments.
Given that your deployment pipeline is encountering issues related to Poetry and pip 24, it may be beneficial to consider updating your dependencies or configurations within your virtual environment to ensure compatibility. Additionally, troubleshooting specific conflicts between Poetry and pip 24 could help resolve the issue you are facing.
Let me know if I can assist further.
0 comentarios
Ver también
Categorías
Más información sobre Python Package Integration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!