Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Issues with Poetry and version 9.14.3 #31

Open
rsp34 opened this issue Aug 2, 2023 · 0 comments
Open

Installation Issues with Poetry and version 9.14.3 #31

rsp34 opened this issue Aug 2, 2023 · 0 comments

Comments

@rsp34
Copy link

rsp34 commented Aug 2, 2023

Hi, I tried to install the latest version of the MATLAB engine but got this error:

Warning: Found deprecated key 'default' or 'secondary' in pyproject.toml configuration for source yasa. Please provide the key 'priority' instead. Accepted values are: 'default', 'primary', 'secondary', 'supplemental', 'explicit'.

Updating dependencies
Resolving dependencies...

Package operations: 1 install, 0 updates, 0 removals

  • Installing matlabengine (9.14.3)

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel

  running bdist_wheel
  running build
  running build_py
  _get_engine_ver_major_minor returned: ('9', '14')
  _get_engine_ver_major_minor returned: ('9', '14')
  Traceback (most recent call last):
    File "C:\Users\Ryan.Potter\.local\pipx\venvs\poetry\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
      main()
    File "C:\Users\Ryan.Potter\.local\pipx\venvs\poetry\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\Ryan.Potter\.local\pipx\venvs\poetry\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\build_meta.py", line 416, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\build_meta.py", line 401, in _build_with_temp_dir
      self.run_setup()
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 414, in <module>
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\__init__.py", line 107, in setup
      return distutils.core.setup(**attrs)
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
      return run_commands(dist)
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
      dist.run_commands()
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\dist.py", line 1234, in run_command
      super().run_command(command)
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\wheel\bdist_wheel.py", line 346, in run
      self.run_command("build")
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\dist.py", line 1234, in run_command
      super().run_command(command)
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
      self.run_command(cmd_name)
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\dist.py", line 1234, in run_command
      super().run_command(command)
    File "C:\Users\RYAN~1.POT\AppData\Local\Temp\tmpccoanq8a\.venv\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
      cmd_obj.run()
    File "<string>", line 380, in run
    File "<string>", line 216, in get_matlab_root_from_windows_reg
    File "<string>", line 259, in _find_matlab_key_from_windows_registry
  RuntimeError: No compatible MATLAB installation found in Windows Registry. This release of MATLAB Engine API for Python is compatible with version 9.14. The found versions were 9.13.


  at ~\.local\pipx\venvs\poetry\Lib\site-packages\poetry\installation\chef.py:147 in _prepare
      143│ 
      144│                 error = ChefBuildError("\n\n".join(message_parts))
      145│
      146│             if error is not None:
    → 147│                 raise error from None
      148│
      149│             return path
      150│
      151│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with matlabengine (9.14.3) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "matlabengine (==9.14.3)"'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant