In [1]: from PyQt6.QtWebEngineWidgets import QWebEngineView
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 from PyQt6.QtWebEngineWidgets import QWebEngineView
ImportError: dlopen(/nix/store/w24q90w781jxvff39jjmz5dikdki111q-python3-3.12.5-env/lib/python3.12/site-packages/PyQt6/QtWebEngineWidgets.abi3.so, 0x0002): Library not loaded: @rpath/QtWebEngineWidgets.framework/Versions/A/QtWebEngineWidgets
Referenced from: <F9BA94A8-7757-3733-870C-E667C5A1EAC6> /nix/store/hg5374m8dyl0a90l274z2fdijarq62w5-python3.12-pyqt6-webengine-6.7.0/lib/python3.12/site-packages/PyQt6/QtWebEngineWidgets.abi3.so
Reason: tried: '/nix/store/hg5374m8dyl0a90l274z2fdijarq62w5-python3.12-pyqt6-webengine-6.7.0/lib/python3.12/site-packages/PyQt6/Qt6/lib/QtWebEngineWidgets.framework/Versions/A/QtWebEngineWidgets' (no such file), '/nix/store/hg5374m8dyl0a90l274z2fdijarq62w5-python3.12-pyqt6-webengine-6.7.0/lib/python3.12/site-packages/PyQt6/Qt6/lib/QtWebEngineWidgets.framework/Versions/A/QtWebEngineWidgets' (no such file)
$ ./result/bin/python
Python 3.12.5 (main, Aug 6 2024, 19:08:49) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt6.QtWebEngineWidgets import QWebEngineView
>>>
error: builder for '/nix/store/l16iy5jv0cs7x9qk6203fq3i6y3fpy34-python3.12-pyqt6-webengine-6.7.0.drv' failed with exit code 1;
last 25 log lines:
> checking for references to /private/tmp/nix-build-python3.12-pyqt6-webengine-6.7.0.drv-0/ in /nix/store/5xjwq66jklvh1xm5f80vkm0wh00sv65k-python3.12-pyqt6-webengine-6.7.0...
> patching script interpreter paths in /nix/store/5xjwq66jklvh1xm5f80vkm0wh00sv65k-python3.12-pyqt6-webengine-6.7.0
> stripping (with command strip and flags -S) in /nix/store/5xjwq66jklvh1xm5f80vkm0wh00sv65k-python3.12-pyqt6-webengine-6.7.0/lib
> checking for references to /private/tmp/nix-build-python3.12-pyqt6-webengine-6.7.0.drv-0/ in /nix/store/mydm84hna59y2i0m5hg4kjq4447cnv5x-python3.12-pyqt6-webengine-6.7.0-dist...
> patching script interpreter paths in /nix/store/mydm84hna59y2i0m5hg4kjq4447cnv5x-python3.12-pyqt6-webengine-6.7.0-dist
> Executing pythonRemoveTestsDir
> Finished executing pythonRemoveTestsDir
> Traceback (most recent call last):
> File "/nix/store/5jah78jkphn4phk6msqf50kan5w0myn0-auto-patchelf.py", line 432, in <module>
> with open_elf(interpreter_path) as interpreter:
> File "/nix/store/9pj4rzx5pbynkkxq1srzwjhywmcfxws3-python3-3.12.5/lib/python3.12/contextlib.py", line 137, in __enter__
> return next(self.gen)
> ^^^^^^^^^^^^^^
> File "/nix/store/5jah78jkphn4phk6msqf50kan5w0myn0-auto-patchelf.py", line 27, in open_elf
> yield ELFFile(stream)
> ^^^^^^^^^^^^^^^
> File "/nix/store/38qv2rwsh1wqka1p0jqzb016z37ykvxa-python3-3.12.5-env/lib/python3.12/site-packages/elftools/elf/elffile.py", line 84, in __init__
> self._identify_file()
> File "/nix/store/38qv2rwsh1wqka1p0jqzb016z37ykvxa-python3-3.12.5-env/lib/python3.12/site-packages/elftools/elf/elffile.py", line 570, in _identify_file
> elf_assert(magic == b'\x7fELF', 'Magic number does not match')
> File "/nix/store/38qv2rwsh1wqka1p0jqzb016z37ykvxa-python3-3.12.5-env/lib/python3.12/site-packages/elftools/common/utils.py", line 80, in elf_assert
> _assert_with_exception(cond, msg, ELFError)
> File "/nix/store/38qv2rwsh1wqka1p0jqzb016z37ykvxa-python3-3.12.5-env/lib/python3.12/site-packages/elftools/common/utils.py", line 143, in _assert_with_exception
> raise exception_type(msg)
> elftools.common.exceptions.ELFError: Magic number does not match
For full logs, run 'nix-store -l /nix/store/l16iy5jv0cs7x9qk6203fq3i6y3fpy34-python3.12-pyqt6-webengine-6.7.0.drv'.
$ ./result/bin/python
Python 3.12.5 (main, Aug 6 2024, 19:08:49) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt6.QtWebEngineWidgets import QWebEngineView
>>>
$ ls /nix/store/479bw3w6bniibh382azgmzkwvhvb8wqw-python3-3.12.5-env/lib/python3.12/site-packages/PyQt6/Qt6/lib
libQt6WebEngineCore.so.6 libQt6WebEngineQuickDelegatesQml.so.6 libQt6WebEngineQuick.so.6 libQt6WebEngineWidgets.so.6
./result/bin/python
Python 3.12.5 (main, Aug 6 2024, 19:08:49) [GCC 13.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt6.QtWebEngineWidgets import QWebEngineView
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: libQt6PrintSupport.so.6: cannot open shared object file: No such file or directory
>>>
Python 3.12.5 (main, Aug 6 2024, 19:08:49) [Clang 16.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt6.QtWebEngineWidgets import QWebEngineView
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/nix/store/hn8ziqgpjfkbblq6ns66hl61kcn5nz23-python3-3.12.5-env/lib/python3.12/site-packages/PyQt6/QtWebEngineWidgets.abi3.so, 0x0002): Library not loaded: @rpath/QtWebEngineWidgets.framework/Versions/A/QtWebEngineWidgets
Referenced from: <F9BA94A8-7757-3733-870C-E667C5A1EAC6> /nix/store/7li4kdm4925wvamdm0gmmj567g0g9c3m-python3.12-PyQt6_WebEngine-6.7.0/lib/python3.12/site-packages/PyQt6/QtWebEngineWidgets.abi3.so
Reason: tried: '/nix/store/7li4kdm4925wvamdm0gmmj567g0g9c3m-python3.12-PyQt6_WebEngine-6.7.0/lib/python3.12/site-packages/PyQt6/Qt6/lib/QtWebEngineWidgets.framework/Versions/A/QtWebEngineWidgets' (no such file), '/nix/store/7li4kdm4925wvamdm0gmmj567g0g9c3m-python3.12-PyQt6_WebEngine-6.7.0/lib/python3.12/site-packages/PyQt6/Qt6/lib/QtWebEngineWidgets.framework/Versions/A/QtWebEngineWidgets' (no such file)
>>>