vapoursynth / vsrepo

A simple package repository for VapourSynth
MIT License
113 stars 29 forks source link

vsrepo.py = Could not detect vapoursynth #173

Closed M70000 closed 2 years ago

M70000 commented 2 years ago

When i put something like vsrepo.py update in cmd or vsrepo.py install in cmd i receive this error Could not detect vapoursynth i have no idea of how to fix, someone please help, my vapoursynth is installed correctly.

theChaosCoder commented 2 years ago

I have the same problem since around the R57 release.


def detect_vapoursynth_installation():
    for loader in sys.meta_path:
        if loader.find_module("vapoursynth") is not None:
            break
    else:
        print("Could not detect vapoursynth")
        sys.exit(1)

Idk what happend or was changed in python but loader.find_module("vapoursynth") is always None. I also reinstalled R57 but same result. I'm using Python3.9.

vsedit works and I can import vapoursynth in python.

theChaosCoder commented 2 years ago

According to https://stackoverflow.com/a/37260391/8444552 find_module is deprecated this seems to work importlib.util.find_spec('vapoursynth')