Why I am getting this import error after I installed successfully using sip-install

Suman Chatterjee sum_chat at hotmail.com
Wed May 12 04:11:52 BST 2021


Hi,
At last, I am able to create the python bindings for a library using SIP 6.0.


/usr/local/opt/qt/bin/qmake -install qinstall /var/folders/zv/zwpsw_kn4sggk8bkwyd9kslszgzkv7/T/tmpvj9ti08n/bindings/ArcGISRuntime/ArcGISRuntime.toml /Users/sum10122/pythonBindingsEnv/lib/python3.9/site-packages/PyQt5/bindings/ArcGISRuntime/ArcGISRuntime.toml

/usr/local/opt/qt/bin/qmake -install qinstall /private/var/folders/zv/zwpsw_kn4sggk8bkwyd9kslszgzkv7/T/tmpvj9ti08n/ArcGISRuntime/ArcGISRuntime.abi3.so /Users/sum10122/pythonBindingsEnv/lib/python3.9/site-packages/ArcGISRuntime.abi3.so

/Users/sum10122/pythonBindingsEnv/bin/sip-distinfo --inventory /var/folders/zv/zwpsw_kn4sggk8bkwyd9kslszgzkv7/T/tmpvj9ti08n/inventory.txt --project-root /Users/sum10122/pythonBindingsEnv/sip --prefix "" --generator sip-install --requires-dist "PyQt5-sip (>=12.8, <13)" /Users/sum10122/pythonBindingsEnv/lib/python3.9/site-packages/ArcGISRuntime-100.10.dist-info


The project has been installed.

But when trying to import the library in python it throws the error


>>> import ArcGISRuntime

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

ImportError: dlopen(/Users/sum10122/pythonBindingsEnv/lib/python3.9/site-packages/ArcGISRuntime.abi3.so, 2): Symbol not found: __ZN10QQuickItem21windowDeactivateEventEv

  Referenced from: /Users/sum10122/pythonBindingsEnv/lib/python3.9/site-packages/ArcGISRuntime.abi3.so

  Expected in: flat namespace

 in /Users/sum10122/pythonBindingsEnv/lib/python3.9/site-packages/ArcGISRuntime.abi3.so

What do I check to resolve the error??
Any help Please....

Suman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210512/034728d9/attachment.htm>


More information about the PyQt mailing list