Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support py3.12 #1256

Closed
chenrui333 opened this issue Oct 16, 2023 · 1 comment · Fixed by #1263
Closed

Support py3.12 #1256

chenrui333 opened this issue Oct 16, 2023 · 1 comment · Fixed by #1263

Comments

@chenrui333
Copy link
Contributor

Issue / Suggestion

Trying to build the latest release against py3.12, but ran into some runtime failure as below

Expected "/opt/homebrew/Cellar/mps-youtube/0.2.8_13/libexec/lib/python3.12/site-packages/pafy/channel.py:201: SyntaxWarning: invalid escape sequence '\\/'\n  chanR = re.compile('.+channel\\/([^\\/]+)$')\n/opt/homebrew/Cellar/mps-youtube/0.2.8_13/libexec/lib/python3.12/site-packages/pafy/channel.py:202: SyntaxWarning: invalid escape sequence '\\/'\n  userR = re.compile('.+user\\/([^\\/]+)$')\n/opt/homebrew/Cellar/mps-youtube/0.2.8_13/libexec/lib/python3.12/site-packages/mps_youtube/util.py:463: SyntaxWarning: invalid escape sequence '\\s'\n  m = re.search('MPlayer SVN[\\s-]r([0-9]+)', o, re.MULTILINE|re.IGNORECASE)\n/opt/homebrew/Cellar/mps-youtube/0.2.8_13/libexec/lib/python3.12/site-packages/mps_youtube/util.py:480: SyntaxWarning: invalid escape sequence '\\('\n  t = re.sub(\"[\\(\\[].*?[\\)\\]]\", \"\", song_title.lower())\ndyld[4187]: Library not loaded: @loader_path/../../../../opt/vapoursynth/lib/libvapoursynth-script.0.dylib\n  Referenced from: <D89FCA70-1280-3648-94EF-D9FD6105E7CE> /opt/homebrew/Cellar/mpv/0.36.0/bin/mpv\n  Reason: tried: '/opt/homebrew/Cellar/mpv/0.36.0/bin/../../../../opt/vapoursynth/lib/libvapoursynth-script.0.dylib' (no such file), '/usr/local/lib/libvapoursynth-script.0.dylib' (no such file), '/usr/lib/libvapoursynth-script.0.dylib' (no such file, not in dyld cache)\nTraceback (most recent call last):\n  File \"/opt/homebrew/Cellar/mps-youtube/0.2.8_13/bin/mpsyt\", line 5, in <module>\n    from mps_youtube import main\n  File \"/opt/homebrew/Cellar/mps-youtube/0.2.8_13/libexec/lib/python3.12/site-packages/mps_youtube/__init__.py\", line 8, in <module>\n    init.init()\n  File \"/opt/homebrew/Cellar/mps-youtube/0.2.8_13/libexec/lib/python3.12/site-packages/mps_youtube/init.py\", line 47, in init\n    config.PLAYER.set(mpv)\n  File \"/opt/homebrew/Cellar/mps-youtube/0.2.8_13/libexec/lib/python3.12/site-packages/mps_youtube/config.py\", line 144, in set\n    checked = self.check_fn(value)\n              ^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/mps-youtube/0.2.8_13/libexec/lib/python3.12/site-packages/mps_youtube/config.py\", line 253, in check_player\n    util.load_player_info(player)\n  File \"/opt/homebrew/Cellar/mps-youtube/0.2.8_13/libexec/lib/python3.12/site-packages/mps_youtube/util.py\", line 408, in load_player_info\n    g.mpv_version = _get_mpv_version(player)\n                    ^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/mps-youtube/0.2.8_13/libexec/lib/python3.12/site-packages/mps_youtube/util.py\", line 446, in _get_mpv_version\n    o = subprocess.check_output([exename, \"--version\"]).decode()\n        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/[email protected]/3.12.0/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py\", line 466, in check_output\n    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/opt/homebrew/Cellar/[email protected]/3.12.0/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py\", line 571, in run\n    raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command '['mpv', '--version']' died with <Signals.SIGABRT: 6>.\n" to be empty.

build logs, https://gist.github.com/chenrui333/88a573b788a58ce8660adffe34c041d8
relates to Homebrew/homebrew-core#151128

@feoh
Copy link

feoh commented Nov 2, 2023

Could this issue be homebrew related?

You might try installing and building yewtube in a virtual environment with 3.12 and see if you encounter the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants