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

List:       pykde
Subject:    Re: cannot make the python build-demo.py work
From:       Suman Chatterjee <sumanchatterjee () esri ! com>
Date:       2021-03-20 5:08:36
Message-ID: BYAPR05MB3959B2CF7373F376A59061EACB679 () BYAPR05MB3959 ! namprd05 ! prod ! outlook ! com
[Download RAW message or body]

Hi,
I was able to make a build for mac OS. But struggling to make one for Android.
This the bash script:

export ANDROID_NDK_ROOT=/Users/XXX/testPyQt/Android/sdk/android-ndk-r21e
export ANDROID_NDK_PLATFORM=android-28
export ANDROID_SDK_ROOT=/Users/XXX/testPyQt/Android/sdk
python build-demo.py --target android-64  --qmake \
/Users/XXXX/Qt5_15/5.15.1/android/bin


(env) xxx2:demo XXX$  sh bash_build.sh

Verifying host architecture 'macos-64'...

Verifying target architecture 'android-64'...

Verifying OpenSSL v1.1.1g...

Verifying Python v3.7.8...

Verifying PyQt v5.15.0...

Verifying PyQt3D v5.15.0...

Verifying PyQtChart v5.15.0...

Verifying PyQtDataVisualization v5.15.0...

Verifying PyQtPurchasing v5.15.0...

Verifying QScintilla v2.11.5...

Verifying Qt v5.15.0...

pyqtdeploy-sysroot: execution of '/Users/XXX/Qt5_15/5.15.1/android/bin' failed: \
[Errno 13] Permission denied: '/Users/xxx/Qt5_15/5.15.1/android/bin

The folders all have the permission. It is not working even with sudo

Let me know how I can resolve the issue??

From: Suman Chatterjee <sumanchatterjee@esri.com>
Date: Friday, March 19, 2021 at 3:15 PM
To: pyqt@riverbankcomputing.com <pyqt@riverbankcomputing.com>
Subject: FW: cannot make the python build-demo.py work


From: Suman Chatterjee <sumanchatterjee@esri.com>
Sent: Friday, March 19, 2021 3:14 PM
To: Phil Thompson <phil@riverbankcomputing.com>
Subject: Re: cannot make the python build-demo.py work

Thank You so much for the info!! I was able to progress a little from that point \
after installing python outside the environment. But now I am stuck at
(pyqtenv) C:\Users\xxx\Documents\pyqtdemo\pyqtdeploy-3.1.1\demo>python build-demo.py
Verifying host architecture 'win-64'...
Verifying target architecture 'win-64'...
Verifying OpenSSL v1.1.1g...
Verifying Python v3.7.8...
Verifying PyQt v5.15.0...
Verifying PyQt3D v5.15.0...
Verifying PyQtChart v5.15.0...
Verifying PyQtDataVisualization v5.15.0...
Verifying PyQtPurchasing v5.15.0...
Verifying QScintilla v2.11.5...
Verifying Qt v5.15.0...
Verifying SIP v12.8.1...
Verifying zlib v1.2.11...
OpenSSL: installing component...
zlib: installing component...
Qt: installing component...
pyqtdeploy-sysroot: Qt: unable to unpack qt-everywhere-src-5.15.0.tar.xz.


I am able to unpack it manually though. Is there any configuration that I can change \
                to point to the unpacked folder
From: Phil Thompson <phil@riverbankcomputing.com<mailto:phil@riverbankcomputing.com>>
Date: Friday, March 19, 2021 at 3:08 PM
To: Suman Chatterjee <sumanchatterjee@esri.com<mailto:sumanchatterjee@esri.com>>
Cc: pyqt@riverbankcomputing.com<mailto:pyqt@riverbankcomputing.com> \
                <pyqt@riverbankcomputing.com<mailto:pyqt@riverbankcomputing.com>>
Subject: Re: cannot make the python build-demo.py work
On 19/03/2021 18:58, Suman Chatterjee wrote:
> I am trying to explore if I can at all make an Android build using
> PyQtDeploy for a PyQt project. But I do not seem to get it working.
> Here are the steps I did in my Windows machine :
> 
> 
> 1.  Installed Qt 5.15.0
> 2.  Create a new Python environment using Conda and activated the
> environment
> 3.  Installed python version 3.7.2
> 4.  Installed PyQtDeploy 3.1.1
> 5.  Installed Perl and added to path
> 6.  Installed Visual Studio 2019
> 7.  Downloaded and extracted the demo files for PyQtDeploy
> 
> Then when I run
> 
> Python build-demo.py I get the following
> 
> (pyqtenv)
> C:\Users\sumXXX\Documents\pyqtdemo\pyqtdeploy-3.1.1\demo>python
> build-demo.py
> Verifying host architecture 'win-32'...
> Verifying target architecture 'win-32'...
> Verifying OpenSSL v1.1.1g...
> Verifying Python v3.7.8...
> pyqtdeploy-sysroot: Python: unable to find an installation of Python
> v3.7-32.
> 
> What I am missing. I tried installing different Python versions but
> nothing works....
> 
> Can anyone guide me in what to do to resolve the error

The demo will default to building 32 bits if your MSVC is not configured
(vcvars.bat).

I should also warn you that I've never used Windows as an Android build
host.

Phil


[Attachment #3 (text/html)]

<html xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Menlo;
	panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
span.EmailStyle21
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
p.p1, li.p1, div.p1
	{mso-style-name:p1;
	margin:0in;
	font-size:8.5pt;
	font-family:Menlo;
	color:black;}
span.s1
	{mso-style-name:s1;}
span.apple-converted-space
	{mso-style-name:apple-converted-space;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi, <o:p></o:p></p>
<p class="MsoNormal">I was able to make a build for mac OS. But struggling to make \
one for Android. <o:p></o:p></p>
<p class="MsoNormal">This the bash script:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">export \
ANDROID_NDK_ROOT=/Users/XXX/testPyQt/Android/sdk/android-ndk-r21e<o:p></o:p></p> <p \
class="MsoNormal">export ANDROID_NDK_PLATFORM=android-28<o:p></o:p></p> <p \
class="MsoNormal">export \
ANDROID_SDK_ROOT=/Users/XXX/testPyQt/Android/sdk<o:p></o:p></p> <p \
class="MsoNormal">python build-demo.py --target android-64&nbsp; --qmake \
/Users/XXXX/Qt5_15/5.15.1/android/bin<o:p></o:p></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> <p class="p1"><span class="s1">(env) \
xxx2:demo XXX$</span><span class="apple-converted-space">&nbsp; </span><span \
class="s1">sh bash_build.sh</span><o:p></o:p></p> <p class="p1"><span \
class="s1">Verifying host architecture 'macos-64'...</span><o:p></o:p></p> <p \
class="p1"><span class="s1">Verifying target architecture \
'android-64'...</span><o:p></o:p></p> <p class="p1"><span class="s1">Verifying \
OpenSSL v1.1.1g...</span><o:p></o:p></p> <p class="p1"><span class="s1">Verifying \
Python v3.7.8...</span><o:p></o:p></p> <p class="p1"><span class="s1">Verifying PyQt \
v5.15.0...</span><o:p></o:p></p> <p class="p1"><span class="s1">Verifying PyQt3D \
v5.15.0...</span><o:p></o:p></p> <p class="p1"><span class="s1">Verifying PyQtChart \
v5.15.0...</span><o:p></o:p></p> <p class="p1"><span class="s1">Verifying \
PyQtDataVisualization v5.15.0...</span><o:p></o:p></p> <p class="p1"><span \
class="s1">Verifying PyQtPurchasing v5.15.0...</span><o:p></o:p></p> <p \
class="p1"><span class="s1">Verifying QScintilla v2.11.5...</span><o:p></o:p></p> <p \
class="p1"><span class="s1">Verifying Qt v5.15.0...</span><o:p></o:p></p> <p \
class="p1"><span class="s1">pyqtdeploy-sysroot: execution of \
'/Users/XXX/Qt5_15/5.15.1/android/bin' failed: [Errno 13] Permission denied: \
'/Users/xxx/Qt5_15/5.15.1/android/bin</span><o:p></o:p></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> <p class="MsoNormal">The folders all have the \
permission. It is not working even with sudo<o:p></o:p></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> <p class="MsoNormal">Let me know how I can \
resolve the issue??<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span \
style="font-size:12.0pt;color:black">From: </span></b><span \
style="font-size:12.0pt;color:black">Suman Chatterjee \
&lt;sumanchatterjee@esri.com&gt;<br> <b>Date: </b>Friday, March 19, 2021 at 3:15 \
PM<br> <b>To: </b>pyqt@riverbankcomputing.com &lt;pyqt@riverbankcomputing.com&gt;<br>
<b>Subject: </b>FW: cannot make the python build-demo.py work<o:p></o:p></span></p>
</div>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Suman Chatterjee &lt;sumanchatterjee@esri.com&gt; \
<br> <b>Sent:</b> Friday, March 19, 2021 3:14 PM<br>
<b>To:</b> Phil Thompson &lt;phil@riverbankcomputing.com&gt;<br>
<b>Subject:</b> Re: cannot make the python build-demo.py work<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">Thank You so much for the info!! I was able to progress a little \
from that point after installing python outside the environment.<o:p></o:p></p> <p \
class="MsoNormal">But now I am stuck at <o:p></o:p></p> <p \
class="MsoNormal">(pyqtenv) \
C:\Users\xxx\Documents\pyqtdemo\pyqtdeploy-3.1.1\demo&gt;python \
build-demo.py<o:p></o:p></p> <p class="MsoNormal">Verifying host architecture \
'win-64'...<o:p></o:p></p> <p class="MsoNormal">Verifying target architecture \
'win-64'...<o:p></o:p></p> <p class="MsoNormal">Verifying OpenSSL \
v1.1.1g...<o:p></o:p></p> <p class="MsoNormal">Verifying Python \
v3.7.8...<o:p></o:p></p> <p class="MsoNormal">Verifying PyQt \
v5.15.0...<o:p></o:p></p> <p class="MsoNormal">Verifying PyQt3D \
v5.15.0...<o:p></o:p></p> <p class="MsoNormal">Verifying PyQtChart \
v5.15.0...<o:p></o:p></p> <p class="MsoNormal">Verifying PyQtDataVisualization \
v5.15.0...<o:p></o:p></p> <p class="MsoNormal">Verifying PyQtPurchasing \
v5.15.0...<o:p></o:p></p> <p class="MsoNormal">Verifying QScintilla \
v2.11.5...<o:p></o:p></p> <p class="MsoNormal">Verifying Qt v5.15.0...<o:p></o:p></p>
<p class="MsoNormal">Verifying SIP v12.8.1...<o:p></o:p></p>
<p class="MsoNormal">Verifying zlib v1.2.11...<o:p></o:p></p>
<p class="MsoNormal">OpenSSL: installing component...<o:p></o:p></p>
<p class="MsoNormal">zlib: installing component...<o:p></o:p></p>
<p class="MsoNormal">Qt: installing component...<o:p></o:p></p>
<p class="MsoNormal">pyqtdeploy-sysroot: Qt: unable to unpack \
qt-everywhere-src-5.15.0.tar.xz.<o:p></o:p></p> <p \
class="MsoNormal">&nbsp;<o:p></o:p></p> <p class="MsoNormal">&nbsp;<o:p></o:p></p>
<p class="MsoNormal">I am able to unpack it manually though. Is there any \
configuration that I can change to point to the unpacked folder<o:p></o:p></p> <div \
style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"> <p \
class="MsoNormal" style="margin-bottom:12.0pt"><b><span \
style="font-size:12.0pt;color:black">From: </span></b><span \
style="font-size:12.0pt;color:black">Phil Thompson &lt;<a \
href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>&gt;<br> \
<b>Date: </b>Friday, March 19, 2021 at 3:08 PM<br> <b>To: </b>Suman Chatterjee &lt;<a \
href="mailto:sumanchatterjee@esri.com">sumanchatterjee@esri.com</a>&gt;<br> <b>Cc: \
</b><a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a> \
&lt;<a href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a>&gt;<br>
 <b>Subject: </b>Re: cannot make the python build-demo.py work</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">On 19/03/2021 18:58, Suman Chatterjee wrote:<br>
&gt; I am trying to explore if I can at all make an Android build using<br>
&gt; PyQtDeploy for a PyQt project. But I do not seem to get it working.<br>
&gt; Here are the steps I did in my Windows machine :<br>
&gt; <br>
&gt; <br>
&gt;&nbsp;&nbsp; 1.&nbsp; Installed Qt 5.15.0<br>
&gt;&nbsp;&nbsp; 2.&nbsp; Create a new Python environment using Conda and activated \
the <br> &gt; environment<br>
&gt;&nbsp;&nbsp; 3.&nbsp; Installed python version 3.7.2<br>
&gt;&nbsp;&nbsp; 4.&nbsp; Installed PyQtDeploy 3.1.1<br>
&gt;&nbsp;&nbsp; 5.&nbsp; Installed Perl and added to path<br>
&gt;&nbsp;&nbsp; 6.&nbsp; Installed Visual Studio 2019<br>
&gt;&nbsp;&nbsp; 7.&nbsp; Downloaded and extracted the demo files for PyQtDeploy<br>
&gt; <br>
&gt; Then when I run<br>
&gt; <br>
&gt; Python build-demo.py I get the following<br>
&gt; <br>
&gt; (pyqtenv)<br>
&gt; C:\Users\sumXXX\Documents\pyqtdemo\pyqtdeploy-3.1.1\demo&gt;python<br>
&gt; build-demo.py<br>
&gt; Verifying host architecture 'win-32'...<br>
&gt; Verifying target architecture 'win-32'...<br>
&gt; Verifying OpenSSL v1.1.1g...<br>
&gt; Verifying Python v3.7.8...<br>
&gt; pyqtdeploy-sysroot: Python: unable to find an installation of Python <br>
&gt; v3.7-32.<br>
&gt; <br>
&gt; What I am missing. I tried installing different Python versions but<br>
&gt; nothing works....<br>
&gt; <br>
&gt; Can anyone guide me in what to do to resolve the error<br>
<br>
The demo will default to building 32 bits if your MSVC is not configured <br>
(vcvars.bat).<br>
<br>
I should also warn you that I've never used Windows as an Android build <br>
host.<br>
<br>
Phil<o:p></o:p></p>
</div>
</div>
</body>
</html>



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

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