Monitor install error

1,003 views
Skip to first unread message

stophe...@gmail.com

unread,
Jun 15, 2022, 9:27:07 PM6/15/22
to MPF Users
Hi All,

Doing a Monitor install and getting the following error after dependancies are built:

  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
 
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      Traceback (most recent call last):
        File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 156, in prepare_metadata_for_build_wheel
          hook = backend.prepare_metadata_for_build_wheel
      AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
     
      During handling of the above exception, another exception occurred:
     
      Traceback (most recent call last):
        File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 160, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
        File "/tmp/pip-build-env-32yor9fz/overlay/lib/python3.9/site-packages/sipbuild/api.py", line 51, in build_wheel
          project = AbstractProject.bootstrap('pep517')
        File "/tmp/pip-build-env-32yor9fz/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py", line 83, in bootstrap
          project.setup(pyproject, tool, tool_description)
        File "/tmp/pip-build-env-32yor9fz/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 479, in setup
          self.apply_user_defaults(tool)
        File "project.py", line 62, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "/tmp/pip-build-env-32yor9fz/overlay/lib/python3.9/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
          super().apply_user_defaults(tool)
        File "/tmp/pip-build-env-32yor9fz/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 225, in apply_user_defaults
          self.builder.apply_user_defaults(tool)
        File "/tmp/pip-build-env-32yor9fz/overlay/lib/python3.9/site-packages/pyqtbuild/builder.py", line 66, in apply_user_defaults
          raise PyProjectOptionException('qmake',
      sipbuild.pyproject.PyProjectOptionException
      [end of output]
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Any ideas?

Kemen

Avery Tummons

unread,
Jun 15, 2022, 10:15:33 PM6/15/22
to mpf-...@googlegroups.com
Not sure about monitor. But MPF doesn’t run on python 3.9. I would try to downgrade to 3.8 and try again. It builds packages for 3.6 - 3.8. So probably can’t find a 3.9 package and thus can’t install.

Sent from my iPhone

On Jun 15, 2022, at 8:27 PM, stophe...@gmail.com <stophe...@gmail.com> wrote:

Hi All,
--
You received this message because you are subscribed to the Google Groups "MPF Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpf-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpf-users/dd38b3a6-421c-480a-8fbb-66a510809056n%40googlegroups.com.

Cédric MARTIN

unread,
Jun 16, 2022, 3:11:55 AM6/16/22
to MPF Users
F.Y.I with minor changes I managed to get mpf running on Python 3.10 (still took me a while to dig into the code).
3.10 is the default version shipped with my O.S (Archlinux) and I tried using pyenv (https://github.com/pyenv/pyenv) which allow multiple version of python at same time but I wasn't successfull.

Since I am not using mpf-mc I didn't dig into making it working (same for the monitor)

Anthony van Winkle

unread,
Jun 16, 2022, 11:57:04 AM6/16/22
to MPF Users
I've been running MPF, MC, and Monitor on Python 3.9.6 for a while, using a virtual environment, as well as on 3.8.12 using PyPy (but not MC). The jump to 3.10 is more difficult because of substantial changes, but our goal is to track MPF support with the default Debian.

To the OP, a search of the error you found returns this stack overflow article: https://stackoverflow.com/questions/65447314/attributeerror-module-sipbuild-api-has-no-attribute-prepare-metadata-for-bui which indicates an issue with PyQt5 and possible steps to resolve. Hopefully that can get you moving forward!

stophe...@gmail.com

unread,
Jun 27, 2022, 2:04:10 AM6/27/22
to MPF Users
Hi All,

I got this working eventually.

The instructions in the stackoverflow  link worked to get rid of the error. So install the qt5 dependancies with:

sudo apt-get install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools

Next hurdle was the newest version of python installs  a pyqt5-5.15.2 version and mpf-monitor wants 5.14.2 and it has a conflict, (the install is a == not a >) so you need to uninstall the 5.15.2 version before installing mpf-monitor. And because this is installed as a sip-build its not the easiest to remove.

Hope this helps anyone in the future.

Keep on flippin!

Kemen

Reply all
Reply to author
Forward
0 new messages