Last active
April 11, 2019 18:41
-
-
Save valeth/b828af97cfbbfb237aa08240da486a88 to your computer and use it in GitHub Desktop.
Symbol lookup error in python script when loaded from OBS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
With import commented out: | |
[music_info.py] ['', | |
[music_info.py] '/usr/lib/python37.zip', | |
[music_info.py] '/usr/lib/python3.7', | |
[music_info.py] '/usr/lib/python3.7/lib-dynload', | |
[music_info.py] '/home/valeth/.local/lib/python3.7/site-packages', | |
[music_info.py] '/usr/lib/python3.7/site-packages', | |
[music_info.py] '/usr/lib/obs-scripting', | |
[music_info.py] '/home/valeth/Workspace/Scratch/music_info/'] | |
[music_info.py] '3.7.3 (default, Mar 26 2019, 21:43:19) \n[GCC 8.2.1 20181127]' | |
Trace: | |
[music_info.py] Traceback (most recent call last): | |
[music_info.py] File "/usr/lib/python3.7/imp.py", line 314, in reload | |
[music_info.py] return importlib.reload(module) | |
[music_info.py] File "/usr/lib/python3.7/importlib/__init__.py", line 169, in reload | |
[music_info.py] _bootstrap._exec(spec, module) | |
[music_info.py] File "<frozen importlib._bootstrap>", line 630, in _exec | |
[music_info.py] File "<frozen importlib._bootstrap_external>", line 728, in exec_module | |
[music_info.py] File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed | |
[music_info.py] File "/home/valeth/Workspace/Scratch/music_info/music_info.py", line 4, in <module> | |
[music_info.py] import sources | |
[music_info.py] File "/home/valeth/Workspace/Scratch/music_info/sources/__init__.py", line 2, in <module> | |
[music_info.py] from .mpris import MPRISPlayer | |
[music_info.py] File "/home/valeth/Workspace/Scratch/music_info/sources/mpris.py", line 2, in <module> | |
[music_info.py] import pydbus as dbus | |
[music_info.py] File "/usr/lib/python3.7/site-packages/pydbus/__init__.py", line 1, in <module> | |
[music_info.py] from .bus import SystemBus, SessionBus, connect | |
[music_info.py] File "/usr/lib/python3.7/site-packages/pydbus/bus.py", line 1, in <module> | |
[music_info.py] from gi.repository import Gio | |
[music_info.py] File "/usr/lib/python3.7/site-packages/gi/__init__.py", line 42, in <module> | |
[music_info.py] from . import _gi | |
[music_info.py] ImportError: /usr/lib/python3.7/site-packages/gi/_gi.cpython-37m-x86_64-linux-gnu.so: undefined symbol: PyUnicode_FromFormat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment