Re: PyQt 5.13.2 build error: module 'sipbui ld.api' has no attribute ‘prepare_metadata_for _build_wheel'

FX <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
> It is trying to write to the sip installation directory, to which it does not have access (in Homebrew, packages are not allowed to write to other packages’ folders).

So, I tried to work around this issue by passing the --target-dir option to a directory it is allowed to write in… which allows it to compile, but then during “make install” it still tries to write to directories it’s not allowed to. Full output is there: https://gist.github.com/fxcoudert/5bd93e1aef42e118c42feee73c673afc

I’m seeing the following attempts to write files outside of —target-dir:

> /usr/local/opt/qt/bin/qmake -install qinstall /private/tmp/tmp_yu_wgdv/__init__.py /usr/local/Cellar/pyqt/5.13.2/lib/python5.13.2/site-packages/PyQt5/__init__.py
> Error copying /private/tmp/tmp_yu_wgdv/pylupdate5 to /usr/local/Cellar/sip/5.0.0/libexec/bin/pylupdate5: Cannot create /usr/local/Cellar/sip/5.0.0/libexec/bin/pylupdate5 for output
> make: [install_scripts] Error 3 (ignored)
> /usr/local/opt/qt/bin/qmake -install qinstall -exe /private/tmp/tmp_yu_wgdv/pyrcc5 /usr/local/Cellar/sip/5.0.0/libexec/bin/pyrcc5
> Error copying /private/tmp/tmp_yu_wgdv/pyrcc5 to /usr/local/Cellar/sip/5.0.0/libexec/bin/pyrcc5: Cannot create /usr/local/Cellar/sip/5.0.0/libexec/bin/pyrcc5 for output
> make: [install_scripts] Error 3 (ignored)
> /usr/local/opt/qt/bin/qmake -install qinstall -exe /private/tmp/tmp_yu_wgdv/pyuic5 /usr/local/Cellar/sip/5.0.0/libexec/bin/pyuic5
> Error copying /private/tmp/tmp_yu_wgdv/pyuic5 to /usr/local/Cellar/sip/5.0.0/libexec/bin/pyuic5: Cannot create /usr/local/Cellar/sip/5.0.0/libexec/bin/pyuic5 for output
> make: [install_scripts] Error 3 (ignored)

Then this:

> sip-distinfo: An internal error occurred...
> Traceback (most recent call last):
>   File "/usr/local/opt/sip/bin/sip-distinfo", line 11, in <module>
>     load_entry_point('sip==5.0.0', 'console_scripts', 'sip-distinfo')()
>   File "/usr/local/Cellar/sip/5.0.0/libexec/lib/python3.7/site-packages/sipbuild/distinfo/main.py", line 71, in main
>     handle_exception(e)
>   File "/usr/local/Cellar/sip/5.0.0/libexec/lib/python3.7/site-packages/sipbuild/exceptions.py", line 81, in handle_exception
>     raise e
>   File "/usr/local/Cellar/sip/5.0.0/libexec/lib/python3.7/site-packages/sipbuild/distinfo/main.py", line 69, in main
>     requires_dists=args.requires_dists, wheel_tag=args.wheel_tag)
>   File "/usr/local/Cellar/sip/5.0.0/libexec/lib/python3.7/site-packages/sipbuild/distinfo/distinfo.py", line 59, in distinfo
>     generator=generator)
>   File "/usr/local/Cellar/sip/5.0.0/libexec/lib/python3.7/site-packages/sipbuild/distinfo/distinfo.py", line 169, in create_distinfo
>     fn_f = open(fn, 'rb')
> FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/Cellar/pyqt/5.13.2/lib/python5.13.2/site-packages/PyQt5/QtBluetooth.abi3.so’


I couldn’t find any other option so that sip-install does not try to write files in directories outside of its control. What am I missing?

Thanks,
FX
_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.