Skip to content

Module execution failed: function() argument 'code' must be code, not str, while try use SILERO #77

Description

@Milor123

Hello guys, I'm getting this error when I try to use Silero, I made sure to install the command with torch
what should i do?

Windows 11
Powershell
Tested in Python 3.12 and 3.13 and got the same error.
pip installed with torch

Console install and build structure:

User  AutoSubSync  ➜ (main)  ♥ 14:55  uv venv -p 3.13
Using CPython 3.13.11 interpreter at: C:\Users\User\AppData\Local\Programs\Python\Python313\python.exe
Creating virtual environment at: .venv
Activate with: .venv\Scripts\activate
User  AutoSubSync  ➜ (main)  ♥ 14:56  .venv\Scripts\activate
User   (.venv)  AutoSubSync  ➜ (main)  ♥ 14:56  uv tool install assy[torch]
Resolved 61 packages in 3.47s
      Built auditok==0.1.5
      Built srt==3.5.3
Prepared 60 packages in 12.49s
Installed 61 packages in 2.11s
 + assy==6.3                                                                                                          
 + auditok==0.1.5                                                                                                     
 + autosubsync==1.0.1                                                                                                 
 + backports-tarfile==1.2.0                                                                                           
 + certifi==2026.1.4                                                                                                  
 + cffi==2.0.0                                                                                                        
 + chardet==5.2.0                                                                                                     
 + charset-normalizer==3.4.4                                                                                          
 + colorama==0.4.6                                                                                                    
 + docutils==0.22.4                                                                                                   
 + faust-cchardet==2.1.19                                                                                             
 + ffmpeg-python==0.2.0                                                                                               
 + ffsubsync==0.4.31                                                                                                  
 + filelock==3.20.3                                                                                                   
 + fsspec==2026.1.0                                                                                                   
 + future==1.0.0                                                                                                      
 + id==1.5.0                                                                                                          
 + idna==3.11                                                                                                         
 + importlib-metadata==8.7.1                                                                                          
 + jaraco-classes==3.4.0                                                                                              
 + jaraco-context==6.1.0                                                                                              
 + jaraco-functools==4.4.0
 + jinja2==3.1.6
 + keyring==25.7.0
 + markdown-it-py==4.0.0
 + markupsafe==3.0.3
 + mdurl==0.1.2
 + more-itertools==10.8.0
 + mpmath==1.3.0
 + networkx==3.6.1
 + nh3==0.3.2
 + numpy==2.4.1
 + packaging==25.0
 + platformdirs==4.5.1
 + progress==1.6.1
 + psutil==7.2.1
 + pycparser==2.23
 + pygments==2.19.2
 + pyqt6==6.10.2
 + pyqt6-qt6==6.10.1
 + pyqt6-sip==13.11.0
 + pysoundfile==0.9.0.post1
 + pysubs2==1.8.0
 + pywin32-ctypes==0.2.3
 + readme-renderer==44.0
 + requests==2.32.5
 + requests-toolbelt==1.0.0
 + rfc3986==2.0.0
 + rich==14.2.0
 + setuptools==80.9.0
 + srt==3.5.3
 + static-ffmpeg==3.0
 + sympy==1.14.0
 + torch==2.9.1
 + torchaudio==2.9.1
 + tqdm==4.67.1
 + twine==6.2.0
 + typing-extensions==4.15.0
 + urllib3==2.6.3
 + webrtcvad-wheels==2.0.14
 + zipp==3.23.0
Installed 2 executables: assy, assy-cli
Configuration:
Mode: Normal mode
Sync tool: ffsubsync
├─ Don't fix framerate: Disabled
├─ Use golden section search: Disabled
└─ Voice activity detector: silero
Backup subtitles before overwriting: Enabled
Output subtitle encoding: Same as input subtitle
Add "tool_" prefix to subtitles: Disabled
Keep extracted subtitles: Disabled
Keep converted subtitles: Disabled
Save location: Overwrite input subtitle

Sync started:
Reference: A:\Series\Signal\Season 1\Signal (2016) - S01E01 - You're Doomed (1080p BluRay x265 Silence).mkv
Subtitle: A:\Series\Signal\Season 1\Signal (2016) - S01E01 - You're Doomed (1080p BluRay x265 Silence).srt

INFO   extracting speech segments from reference 'A:\Series\Signal\Season 1\Signal (2016) - S01E01 - You're Doomed (1080p BluRay x265 Silence).mkv'...
Module execution failed: function() argument 'code' must be code, not str

ffsubsync failed. Error code: 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions