Skip to content

Commit

Permalink
[Vu+GB BluetoothSetup]
Browse files Browse the repository at this point in the history
* remove deprecated imp modul
  • Loading branch information
jbleyel committed Jan 29, 2024
1 parent 7ca7573 commit 9927528
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 60 deletions.
34 changes: 1 addition & 33 deletions GigaBlueBluetoothSetup/src/gbbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,7 @@
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_import_helper():
import importlib
pkg = __name__.rpartition('.')[0]
mname = '.'.join((pkg, '_gbbt')).lstrip('.')
try:
return importlib.import_module(mname)
except ImportError:
return importlib.import_module('_gbbt')
_gbbt = swig_import_helper()
del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_gbbt', [dirname(__file__)])
except ImportError:
import _gbbt
return _gbbt
try:
_mod = imp.load_module('_gbbt', fp, pathname, description)
finally:
if fp is not None:
fp.close()
return _mod
_gbbt = swig_import_helper()
del swig_import_helper
else:
import _gbbt
del _swig_python_version_info
from . import _gbbt

try:
_swig_property = property
Expand Down
28 changes: 1 addition & 27 deletions VuBluetoothSetup/src/vubt.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,7 @@
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.


from sys import version_info
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_vubt', [dirname(__file__)])
except ImportError:
import _vubt
return _vubt
if fp is not None:
try:
_mod = imp.load_module('_vubt', fp, pathname, description)
finally:
fp.close()
return _mod
_vubt = swig_import_helper()
del swig_import_helper
else:
import _vubt
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
from . import _vubt


def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
Expand Down

3 comments on commit 9927528

@BliNeR-KeY
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbleyel _gbbt.so in GigaBlueBluetoothSetup have no support for py3.12.1

22:17:44.6566 [PluginComponent] Error: Plugin 'SystemPlugins/BluetoothSetup' failed to load! (libpython3.8.so.1.0: cannot open shared object file: No such file or directory) 22:17:44.6587 Traceback (most recent call last): 22:17:44.6593 File "/usr/lib/enigma2/python/Components/PluginComponent.py", line 59, in readPluginList 22:17:44.6595 File "/usr/lib/enigma2/python/Tools/Import.py", line 2, in my_import 22:17:44.6596 File "/usr/lib/enigma2/python/Plugins/SystemPlugins/BluetoothSetup/plugin.py", line 3, in <module> 22:17:44.6597 File "/usr/lib/enigma2/python/Plugins/SystemPlugins/BluetoothSetup/bt_setup.py", line 14, in <module> 22:17:44.6598 File "/usr/lib/enigma2/python/Plugins/SystemPlugins/BluetoothSetup/bt.py", line 35, in <module> 22:17:44.6599 File "/usr/lib/enigma2/python/Plugins/SystemPlugins/BluetoothSetup/gbbt.py", line 7, in <module> 22:17:44.6600 ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

if someone fix this
pls active (gbbluetooth) in https://github.com/oe-alliance/oe-alliance-core/blob/5.3/meta-brands/meta-gigablue/conf/machine/gb7252.conf#L20

i have forwarded libpython3.12.1.so.1.0 in libpython3.8.so.1.0 plugin work as well
i have no bcm usb bt . and hisilicon usb bt no works i think again issue in gb-bluetooth-util need to be updated.

i need to buy a bcm usb to confirm if it works.

@jbleyel
Copy link
Contributor Author

@jbleyel jbleyel commented on 9927528 Feb 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The python symlink will not fix this because the _gbbt.so is build with an older glib.

ImportError: _gbbt.so: undefined symbol: _ZSt4cerr

@BliNeR-KeY
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think gigablue only have the source code to fix it

Please sign in to comment.