[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Need some help with pyqtdelpoy, some assistance would be appreciated
From: Kwadwo Yeboah <kjyeboah21012 () gmail ! com>
Date: 2023-10-22 20:54:04
Message-ID: CAA4ANUbEj-sNaGVjb==Ti0eiYW5QKtGcyV6Z9DE5ucpKDCQ=sg () mail ! gmail ! com
[Download RAW message or body]
System Info:
OS: Ubuntu Server with Xubuntu desktop using lightdm running in VirtualBox
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
Pyqtdeploy == 3.3.0
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.
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
sysroot-android-64/lib/python3.11/site-packages/pyglet.
1. Is it possible to use other packages?
2. Also can there be support for adding ctypes to the standard library
package?
Workaround:
1. Placing pyglet in the Application Package Directory.
2. Using a shared object generated with nuitka, added with qmake variable
ANDROID_EXTRA_LIBS -- then load library the python module using ctypes.
from ctypes import cdll
mylib = cdll.LoadLibrary('./pyglet.so')
Thanks
[Attachment #3 (text/html)]
<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>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic