[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Why I am getting this import error after I installed  successfully using sip-install
From:       Suman Chatterjee <sum_chat () hotmail ! com>
Date:       2021-05-12 3:11:52
Message-ID: PU4P216MB1056D1F6BF124E1056A18C20E5529 () PU4P216MB1056 ! KORP216 ! PROD ! OUTLOOK ! COM
[Download RAW message or body]

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


[Attachment #3 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> At last, I am able to create the python bindings for a library using \
SIP 6.0.</div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: \
12pt; color: rgb(0, 0, 0);"> &nbsp;</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px \
Menlo;color:#000000"><span \
style="font-variant-ligatures:no-common-ligatures">/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</span></p>
 <p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#000000"><span \
style="font-variant-ligatures:no-common-ligatures">/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</span></p>
 <p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#000000"><span \
style="font-variant-ligatures:no-common-ligatures">/Users/sum10122/pythonBindingsEnv/bin/sip-distinfo \
--inventory /var/folders/zv/zwpsw_kn4sggk8bkwyd9kslszgzkv7/T/tmpvj9ti08n/inventory.txt
                
 --project-root /Users/sum10122/pythonBindingsEnv/sip --prefix &quot;&quot; \
--generator sip-install --requires-dist &quot;PyQt5-sip (&gt;=12.8, &lt;13)&quot; \
/Users/sum10122/pythonBindingsEnv/lib/python3.9/site-packages/ArcGISRuntime-100.10.dist-info</span></p>
 <p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#000000"><span \
style="font-variant-ligatures:no-common-ligatures"><br> </span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px Menlo;color:#000000"><span \
style="font-variant-ligatures:no-common-ligatures">The project has been \
installed.</span></p> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> But when trying to import the library in python it throws the \
error</div> <div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px \
Menlo;color:#000000"><span \
style="font-variant-ligatures:no-common-ligatures">&gt;&gt;&gt; import \
ArcGISRuntime</span></p> <p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px \
Menlo;color:#000000"><span \
style="font-variant-ligatures:no-common-ligatures">Traceback (most recent call \
last):</span></p> <p style="margin:0.0px 0.0px 0.0px 0.0px;font:11.0px \
Menlo;color:#000000"><span style="font-variant-ligatures:no-common-ligatures"><span \
class="Apple-converted-space">&nbsp; </span>File &quot;&lt;stdin&gt;&quot;, line 1, \
in &lt;module&gt;</span></p> <p style="margin: 0px; font-style: normal; \
font-variant-caps: normal; font-stretch: normal; font-size: 11px; line-height: \
normal; font-family: Menlo; color: rgb(0, 0, 0);"> <span \
style="font-variant-ligatures: no-common-ligatures;"><b>ImportError: \
dlopen(/Users/sum10122/pythonBindingsEnv/lib/python3.9/site-packages/ArcGISRuntime.abi3.so, \
2): Symbol not found: __ZN10QQuickItem21windowDeactivateEventEv</b></span></p> <p \
style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: \
normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, \
0);"> <span style="font-variant-ligatures:no-common-ligatures"><b><span \
class="Apple-converted-space">&nbsp; </span>Referenced from: \
/Users/sum10122/pythonBindingsEnv/lib/python3.9/site-packages/ArcGISRuntime.abi3.so</b></span></p>
 <p style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: \
normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 0, \
0);"> <span style="font-variant-ligatures:no-common-ligatures"><b><span \
class="Apple-converted-space">&nbsp; </span>Expected in: flat \
namespace</b></span></p> <p style="margin: 0px; font-style: normal; \
font-variant-caps: normal; font-stretch: normal; font-size: 11px; line-height: \
normal; font-family: Menlo; color: rgb(0, 0, 0);"> <span \
style="font-variant-ligatures: no-common-ligatures;"><b><span \
class="Apple-converted-space">&nbsp;</span>in \
/Users/sum10122/pythonBindingsEnv/lib/python3.9/site-packages/ArcGISRuntime.abi3.so</b></span></p>
 <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> What do I check to resolve the error??</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> Any help Please....</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> Suman</div>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic