<div dir="ltr"><div>System Info:</div><div>OS: Ubuntu Server with Xubuntu desktop using lightdm running in VirtualBox<br></div><div>Distributor ID: Ubuntu<br>Description: Ubuntu 22.04.3 LTS<br>Release: 22.04<br>Codename: jammy<br></div><div>Pyqtdeploy == 3.3.0</div><div><br></div><div>I need audio for my app. I'm having trouble importing packages other than the standard packages. Building the sysroot and building the demo is fine for linux-64 and android-64, with the original package list.<br></div><div>The problem is that I cannot seem to import pyglet (the module I need in order to play audio, (absolute imports found with findimports module from pypi). I searched the site-packages of the sysroot and the package is present at <br></div><div>sysroot-android-64/lib/python3.11/site-packages/pyglet.</div><div>1. Is it possible to use other packages?</div><div>2.
Also can there be support for adding ctypes to the standard library package?<br></div><div><br></div><div>
Workaround: <br></div><div>
1. Placing pyglet in the Application Package Directory.
</div><div>2. Using a shared object generated with nuitka, added with qmake variable ANDROID_EXTRA_LIBS -- then load library the python module using ctypes.</div><div><code><span>from</span> ctypes <span>import</span> cdll</code><pre><code>mylib = cdll.LoadLibrary(<span>'./pyglet.so'</span>)</code></pre>
</div><div><br></div><div>Thanks<br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>