Run the activate script(D:\virtual_py3\Scripts\activate.bat) to activate virtualenv. Then run pip install vapoursynth-portable to install vapoursynth.
Run python vsrepo.py update
Run python vsrepo.py install lsmas dfttest. Then an error occurred:
Traceback (most recent call last):
File "D:\virtual_py3\vsrepo\vsrepo.py", line 176, in <module>
package_json_path = os.path.join(file_dirname, 'vspackages3.json') if args.portable else os.path.join(*pluginparent, 'vsrepo', 'vspackages3.json')
^^^^^^^^^^^^
NameError: name 'pluginparent' is not defined
We can find the file portable.vs in the site-packages dir: D:\virtual_py3\Lib\site-packages\portable.vs
According to the logic of the code, the statement elif is_sitepackage_install_portable(): will be entered. But the variable pluginparent is not set here. So, the following code will throw an error NameError: name 'pluginparent' is not defined.
package_json_path = os.path.join(file_dirname, 'vspackages3.json') if args.portable or is_sitepackage_install_portable() else os.path.join(*pluginparent, 'vsrepo', 'vspackages3.json')
Reproduce the issue in Win10:
D:\virtual_py3
)D:\virtual_py3\Scripts\activate.bat
) to activate virtualenv. Then runpip install vapoursynth-portable
to install vapoursynth.python vsrepo.py update
python vsrepo.py install lsmas dfttest
. Then an error occurred:We can find the file
portable.vs
in the site-packages dir:D:\virtual_py3\Lib\site-packages\portable.vs
According to the logic of the code, the statement
elif is_sitepackage_install_portable():
will be entered. But the variablepluginparent
is not set here. So, the following code will throw an errorNameError: name 'pluginparent' is not defined
.