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

ERROR: [generic] None: Unable to download webpage: (caused by URLError('unknown url type: c')) #106

Open
akamg opened this issue Jul 17, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@akamg
Copy link

akamg commented Jul 17, 2023

To Reproduce
Generate videohash of a video directly from its path
url1 = "C:\Users\PCNAME\Documents\myapp\static_media\vid1.mp4"
videohash1 = VideoHash(url=url1)

url2 = "C:\Users\PCNAME\Documents\myapp\static_media\vid2.mp4"
videohash2 = VideoHash(url=url2)

Expected behavior
please I want to Generate videohash of these videos directly from their path.
videohash1.is_similar(videohash2)
False

Screenshots
If applicable, add screenshots to help explain your problem.

Please complete the following information:

  • Operating system:win8
  • Python Version:3.9
  • VideoHash version:3.0.1

Additional context
Add any other context about the problem here.

@akamg akamg added the bug Something isn't working label Jul 17, 2023
@akamg akamg changed the title BUG REPORT ERROR: [generic] None: Unable to download webpage: (caused by URLError('unknown url type: c')) Jul 17, 2023
@Demmenie
Copy link

Demmenie commented Jul 3, 2024

You're trying to feed a path string to the url parameter. Try using the path parameter instead. Like this:

path1 = "C:\Users\PCNAME\Documents\myapp\static_media\vid1.mp4"
videohash1 = VideoHash(path=path1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants