Resource icon

OBS Python Additional Replay Buffer 0.1

ibz38

New Member
Hello, I'm using this script for a long time and it works perfectly fine but I tried to get it for a friend and he keeps getting the "ModuleNotFoundError". No matter what we do, I checked everything, pip, moviepy, importlib.resources, ffmpeg etc, EVERYTHING. And it's all the same version as mine and all the folders look the same, but mine works and his doesn't. Any help?
image_2025-04-19_033629081.png
 

KittieCatKay

New Member
Hello, I'm using this script for a long time and it works perfectly fine but I tried to get it for a friend and he keeps getting the "ModuleNotFoundError". No matter what we do, I checked everything, pip, moviepy, importlib.resources, ffmpeg etc, EVERYTHING. And it's all the same version as mine and all the folders look the same, but mine works and his doesn't. Any help?View attachment 112905
As the error says, Python cannot find the module called "importlib.resources." Make sure you have it. I attached my copy just in case you need it. Alternatively, you can download it here, then extract the folder (it's a subfolder in a subfolder in the zip) and put that in your Python site-packages directory instead. However, shouldn't they be installed already? I have only tested this on this version of Python.

1745036331951.png
1745036320793.png


If your files are already there, it could be a path issue. It seems to call for "importlib.resources" while the folder is called "importlib_resources" - you could try renaming it and see if that fixes it.

If that also doesn't work, my last idea would be to type "environment variables" into your Windows search, navigate to Environment Variables at the bottom right corner, click on Path, then edit, then new -> put your Python install there. That should ensure that whatever module is being called is found. Let me know if any of these fixes solved your problem.
instructions.jpg
 

Attachments

  • importlib_resources.zip
    71.9 KB · Views: 4

Suslik V

Active Member
@ibz38 this error message:
File "... Python36\lib\site-packages\imageio_ffmpeg\_utils.py", line 6, in <module> import importlib.resources
means that you have installed "imageio_ffmpeg" module v0.5.0 or newer (today it is likely v0.6.0 for Python v3.9 and newer). You likely need older version of the "imageio_ffmpeg" module.

The script ("AdditionalReplays_0_3_8_beta_2024_12_06.zip" from this post: https://obsproject.com/forum/threads/additional-replay-buffer.106619/post-666928 ) should work fine with the Python v3.6.8, moviepy==1.0.3, imageio==2.15.0, imageio-ffmpeg==0.4.9.

When you recently installed Python v3.6.8 (standard, not embeded version, and no other modules installed yet) then you may try to install required modules manually. In command line required commands may look like this:
Code:
pip install --upgrade-strategy only-if-needed imageio-ffmpeg==0.4.9
pip install --upgrade-strategy only-if-needed imageio==2.15.0
pip install --upgrade-strategy only-if-needed moviepy==1.0.3
Edit: the sequence of installation of the modules is important too, because not all modules in the Python explicitly request dependent versions, and modules installed later may unintentionally upgrade already installed modules.
 
Last edited:
Top