Python Forum
ModuleNotFoundError: No module named '__main__.vtt'; '__main__' is not a package
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ModuleNotFoundError: No module named '__main__.vtt'; '__main__' is not a package
#14
(Sep-05-2018, 06:02 PM)Gribouillis Wrote: Then use full path python C:\Python37\myvideogrep.py -i "C:\A" --search 'Not you' -o "C:\test.mp4"
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 iterable
I don't know how Albertkaruna solved this issue as he closed that issue.
Now I need to learn more about it.
Reply


Messages In This Thread
RE: ModuleNotFoundError: No module named '__main__.vtt'; '__main__' is not a package - by MM2018 - Sep-05-2018, 06:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  no module named 'docx' when importing docx MaartenRo 1 1,186 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 24,589 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 3,070 Oct-29-2023, 11:33 PM
Last Post: Serg
  __name__ and __main__ in functions Mark17 3 880 Oct-12-2023, 01:55 AM
Last Post: deanhystad
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,679 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,759 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,535 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 1,172 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
  Help with pyinstaller "No module named" korenron 9 10,083 Jun-15-2023, 12:20 PM
Last Post: snippsat
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 1,112 May-15-2023, 02:38 PM
Last Post: tonynapoli2309

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020