Sep-05-2018, 05:47 PM
Then write the full path to
myvideogrep.py
instead of myvideogrep.py
ModuleNotFoundError: No module named '__main__.vtt'; '__main__' is not a package
|
Sep-05-2018, 05:47 PM
Then write the full path to
myvideogrep.py instead of myvideogrep.py
I saved this in C:\Python37,
C:\Users\YL>python myvideogrep.py -i "C:\A" --search 'Not you' -o "C:\test.mp4" (null): can't open file 'myvideogrep.py': [Errno 2] No such file or directory ![]()
Sep-05-2018, 06:02 PM
(This post was last modified: Sep-05-2018, 06:03 PM by Gribouillis.)
Then use full path
python C:\Python37\myvideogrep.py -i "C:\A" --search 'Not you' -o "C:\test.mp4"
Sep-05-2018, 06:27 PM
(Sep-05-2018, 06:02 PM)Gribouillis Wrote: Then use full path Finally works for this, but I have tried.C:\Users\YL>python C:\Python37\myvideogrep.py -i "C:\A" --search 'Not you' -o "C:\test.mp4" usage: myvideogrep.py [-h] --input [INPUTFILE [INPUTFILE ...]] [--search SEARCH] [--search-type {re,pos,hyper,fragment,franken,word}] [--use-transcript] [--use-vtt] [--max-clips MAXCLIPS] [--output OUTPUTFILE] [--export-clips] [--demo] [--randomize] [--youtube YOUTUBE] [--padding PADDING] [--resyncsubs SYNC] [--transcribe] [--ngrams NGRAMS] myvideogrep.py: error: unrecognized arguments: you'So I used different file to test out but new problem just arouse, I am getting same error like this. https://github.com/antiboredom/videogrep/issues/48 C:\Users\YL>python C:\Python37\myvideogrep.py -i "G:\I" -s 'All' -st word -o test.mp4 [!] No subtitle files were found. Traceback (most recent call last): File "C:\Python37\myvideogrep.py", line 3, in <module> videogrep.main() File "C:\Python37\lib\site-packages\videogrep\videogrep.py", line 528, in main videogrep(args.inputfile, args.outputfile, args.search, args.searchtype, args.maxclips, args.padding, args.demo, args.randomize, args.sync, args.use_transcript, args.use_vtt, args.export_clips) File "C:\Python37\lib\site-packages\videogrep\videogrep.py", line 456, in videogrep composition = compose_from_srts(srts, search, searchtype) File "C:\Python37\lib\site-packages\videogrep\videogrep.py", line 317, in compose_from_srts for srt in srts: TypeError: 'bool' object is not iterableI don't know how Albertkaruna solved this issue as he closed that issue. Now I need to learn more about it.
Sep-05-2018, 07:22 PM
I use Windows command line once in a great while but perhaps "Not you" would work better than 'Not you'. The command line is not Python.
Sep-06-2018, 12:06 AM
C:\Python37>python C:\Python37\myvideogrep.py -i "C:\A" --search "Not you" -o "C:\test.mp4"python C:\Python37\myvideogrep.py -i "C:\A" --search "Not you" -o "C:\test.mp4" usage: myvideogrep.py [-h] --input [INPUTFILE [INPUTFILE ...]] [--search SEARCH] [--search-type {re,pos,hyper,fragment,franken,word}] [--use-transcript] [--use-vtt] [--max-clips MAXCLIPS] [--output OUTPUTFILE] [--export-clips] [--demo] [--randomize] [--youtube YOUTUBE] [--padding PADDING] [--resyncsubs SYNC] [--transcribe] [--ngrams NGRAMS] myvideogrep.py: error: unrecognized arguments: C:\Python37\myvideogrep.py C:\Python37>python C:\Python37\myvideogrep.py -i "G:\I" -s "All" -st word -o test.mp4 [!] No subtitle files were found. Traceback (most recent call last): File "C:\Python37\myvideogrep.py", line 3, in <module> videogrep.main() File "C:\Python37\lib\site-packages\videogrep\videogrep.py", line 528, in main videogrep(args.inputfile, args.outputfile, args.search, args.searchtype, args.maxclips, args.padding, args.demo, args.randomize, args.sync, args.use_transcript, args.use_vtt, args.export_clips) File "C:\Python37\lib\site-packages\videogrep\videogrep.py", line 456, in videogrep composition = compose_from_srts(srts, search, searchtype) File "C:\Python37\lib\site-packages\videogrep\videogrep.py", line 317, in compose_from_srts for srt in srts: TypeError: 'bool' object is not iterableReally annoying and mysterious!
Sep-06-2018, 04:56 AM
Quote:You can send a bug report,Ok, I sent it. Quote:use another program There is no alternative program like Videogrep currently. Some programs are outdated, so I don't test them. Quote:or fork the program and develop it by your own means.Just started learning Python, don't know how long to fork/develop this! This is why I posted here to fix this issue by someone as original author muted my issues. or maybe I tried linux one more time.
Sep-11-2018, 11:08 AM
I have tested High Sierra MacOSX on Virtualbox, and downloaded apps, and not run via Terminal, works flawlessly.
But same file was not works on Windows10/Ubuntu linux with 64bit python 3.7. Any expert fix this, really weird problem on other os! (Sep-11-2018, 11:08 AM)MM2018 Wrote: Any expert fix this, really weird problem on other os!The problem is that author has never tested it or make an effort to make it work on Windows. In setup.py there is: setup(name='videogrep', ... scripts = ['bin/videogrep'],This will not make a executable command line .exe for Windows.It could have been done with entry_points in setup.py.This will make executable for all OS,also it will make a .exe videogrep.exe in folder Python../Scripts for Windows.Eg: setup( ... entry_points = { 'console_scripts': [ 'foo = package.module:videogrep', ], } )Click author Armin explain it here. If i have time i can maybe look into into source code, and see if it possibly to use entry_points ,so videogrep will make a videogrep.exe for Windows.You can make and Issues on Repo about this,the problem can be that author is no longer active or will not test for Windows. |
|