elebumm / RedditVideoMakerBot

Create Reddit Videos with just✨ one command ✨
GNU General Public License v3.0
6.65k stars 1.86k forks source link

[Bug]: PermissionError: [Errno 13] Permission denied: #1690

Closed Beggining2Code closed 1 year ago

Beggining2Code commented 1 year ago

Describe the bug

This is the error I receive when I get to the part in the program that says "Finding a spot in the backgrounds audio to chop..."

Sorry, something went wrong with this version! Try again, and feel free to report this issue at GitHub or the Discord community.                                                                         
Version: 3.2                                                                                                                                                                                              Error: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/ffmpeg'                                                                            
 Config: {'allow_nsfw': True, 'theme': 'dark', 'times_to_run': 1, 'opacity': 0.9, 'storymode': False, 'storymodemethod': 1, 'storymode_max_length': 1000, 'resolution_w': 1080, 'resolution_h': 1920,     
 'zoom': 1.0, 'background': {'background_video': 'minecraft', 'background_audio': 'lofi', 'background_audio_volume': 0.15, 'enable_extra_audio': False, 'background_thumbnail': False,                    
 'background_thumbnail_font_family': 'arial', 'background_thumbnail_font_size': 96, 'background_thumbnail_font_color': '255,255,255'}, 'tts': {'voice_choice': 'streamlabspolly', 'random_voice': True,   
 'elevenlabs_voice_name': 'Adam', 'elevenlabs_api_key': 'REDACTED', 'aws_polly_voice': 'Matthew', 'streamlabs_polly_voice': 'Matthew', 'tiktok_voice': 'en_us_001', 'tiktok_sessionid': 'REDACTED',       
 'python_voice': '1', 'py_voice_num': '2', 'no_emojis': False}}                                                                                                                                           

Traceback (most recent call last):
  File "/Users/pythontesting/Desktop/RedditVideoMakerBot-3.2/main.py", line 134, in <module>
    raise err
  File "/Users/pythontesting/Desktop/RedditVideoMakerBot-3.2/main.py", line 116, in <module>
    run_many(config["settings"]["times_to_run"])
  File "/Users/pythontesting/Desktop/RedditVideoMakerBot-3.2/main.py", line 71, in run_many
    main()
  File "/Users/pythontesting/Desktop/RedditVideoMakerBot-3.2/main.py", line 62, in main
    chop_background(bg_config, length, reddit_object)
  File "/Users/pythontesting/Desktop/RedditVideoMakerBot-3.2/video_creation/background.py", line 142, in chop_background
    background_audio = AudioFileClip(f"assets/backgrounds/audio/{audio_choice}")
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/moviepy/audio/io/AudioFileClip.py", line 70, in __init__
    self.reader = FFMPEG_AudioReader(filename, fps=fps, nbytes=nbytes,
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/moviepy/audio/io/readers.py", line 51, in __init__
    infos = ffmpeg_parse_infos(filename)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/moviepy/video/io/ffmpeg_reader.py", line 257, in ffmpeg_parse_infos
    proc = sp.Popen(cmd, **popen_params)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1847, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/ffmpeg'

Reproduction Steps

Ran sudo python3 main.py in order to start the program.

Expected behavior

Runs the program successfully

Screenshots

Screenshot 2023-06-05 at 8 39 41 PM

Screenshot of the error message

System Information

Operating System : M1 Mac, Ventura 13.3.1 Python version : Python3.10.9 Moviepy version: 1.0.3 App version / Branch : latest

Checklist

Additional Context

No response

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.

github-actions[bot] commented 1 year ago

Issue closed due to being stale. Please reopen if issue persists in latest version.