vapoursynth / vsrepo

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

vsgenstubs stores exception #196

Closed LightArrowsEXE closed 1 year ago

LightArrowsEXE commented 1 year ago

When generating or updating the VS stubs, the following exception occurs...

Traceback (most recent call last):
  File "C:\Users\light\AppData\Local\Programs\Python\Python310\lib\site-packages\vsgenstubs4\__init__.py", line 1, in <module>
    from .init import main  # noqa: F401
ImportError: attempted relative import with no known parent package

...except it stores this inside the __init__.pyi file

image

This means stubs never load, however running vsgenstubs4 myself from the terminal seems to properly stick them in the local site-packages. However, the roaming one gets prioritised, meaning stubs never get loaded. plsfix.

Setsugennoao commented 1 year ago

Imo vsrepo shouldn't even handle any output path and the sort, just blindly open subprocess of vsgenstubs4 and that's it Doesn't even make sense to have one in roaming site-packages and another in the actual install

Setsugennoao commented 1 year ago

This is fixed upstream now.

LightArrowsEXE commented 1 year ago

This still seems to persist when using vsrepo install plugin. I can fix it manually by deleting the vapoursynth-stubs/__init__.pyi file and running vsgenstubs4 after, but that's rather annoying.