Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

measure/data is missing after installation from Git #153

Open
stoyanovgeorge opened this issue Feb 12, 2021 · 1 comment
Open

measure/data is missing after installation from Git #153

stoyanovgeorge opened this issue Feb 12, 2021 · 1 comment

Comments

@stoyanovgeorge
Copy link

stoyanovgeorge commented Feb 12, 2021

I have installed the scikit-video from Github following your instructions and then I have tried to measure the NIQE of a video, but I got an error, that the niqe_image_params.mat is missing and when I have checked it appears that the whole data/ dir is missing so I had to copy it manually from cloned directory to the /usr/lib/<python_version>/site-packages/<scikit_video_version>/skvideo/measure/data directory. I guess you have forgotten to copy this particular directory in the setup.py.

By the way, if I install scikit-video with pip in python-3.9 I am getting the scipy.misc error about imresize, so maybe it is a good idea to update the pip version with the fix from pull request #122 and #123

@stg7
Copy link
Contributor

stg7 commented May 4, 2022

this error is also affecting the example videos, (installation was done freshly from the git version to avoid the imresize)

>>> import skvideo.datasets
>>> import skvideo.io
>>> videodata = skvideo.io.vread(skvideo.datasets.bigbuckbunny())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/PATH/venv/lib/python3.8/site-packages/skvideo/io/io.py", line 144, in vread
    reader = FFmpegReader(fname, inputdict=inputdict, outputdict=outputdict, verbosity=verbosity)
  File "/PATH/venv/lib/python3.8/site-packages/skvideo/io/ffmpeg.py", line 44, in __init__
    super(FFmpegReader,self).__init__(*args, **kwargs)
  File "/PATH/venv/lib/python3.8/site-packages/skvideo/io/abstract.py", line 69, in __init__
    self.size = os.path.getsize(filename)
  File "/usr/lib/python3.8/genericpath.py", line 50, in getsize
    return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: '/PATH/venv/lib/python3.8/site-packages/skvideo/datasets/data/bigbuckbunny.mp4'
>>> 

and the solution is already provided in pull request #156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants