mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
hack to avoid numpy issue on windows caused by soundcard package
This commit is contained in:
parent
ef188eb2d5
commit
f1e685986d
1 changed files with 5 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ import LXMF
|
|||
import LXST
|
||||
import RNS
|
||||
import RNS.vendor.umsgpack as msgpack
|
||||
import numpy
|
||||
from LXMF import LXMRouter
|
||||
from LXST import Telephone
|
||||
from LXST.Primitives.Telephony import Profiles
|
||||
|
|
@ -35,6 +36,10 @@ from src.backend.interface_editor import InterfaceEditor
|
|||
from src.backend.lxmf_message_fields import LxmfImageField, LxmfFileAttachmentsField, LxmfFileAttachment, LxmfAudioField
|
||||
from src.backend.sideband_commands import SidebandCommands
|
||||
|
||||
# hack to avoid below error on windows from soundcard/mediafoundation.py in self._record_chunk()
|
||||
# ValueError: The binary mode of fromstring is removed, use frombuffer instead
|
||||
numpy.fromstring = numpy.frombuffer
|
||||
|
||||
|
||||
# NOTE: this is required to be able to pack our app with cxfreeze as an exe, otherwise it can't access bundled assets
|
||||
# this returns a file path based on if we are running meshchat.py directly, or if we have packed it as an exe with cxfreeze
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue