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
#21
Thanks for reply! Yes, making windows .exe setup would be really cool idea!
Now I assume why it works only for MacOSX. By the way I checked issue section on github, some windows users said it worked.
https://github.com/antiboredom/videogrep/issues/29
I have tested latest Ubuntu linux, but same problem happened like Windows.
I checked some months ago, miguel user has same problem, so he find alternative.
I hope you can take a look into this.
https://python-forum.io/Thread-How-to-co...=videogrep
This script works on windows, sometime it buggy not work like videogrep(I have tested), https://github.com/kelciour/playphrase,
but kelciour did not included editing option like videogrep.
Reply
#22
I don't understand why you are using python myvideogrep.py

Quote:Videogrep is a command line tool that searches through dialog in video files

Quote:How to use it!

The most basic use:

videogrep --input path/to/video_or_folder --search 'search phrase'
Reply
#23
(Sep-11-2018, 03:47 PM)Axel_Erfurt Wrote: I don't understand why you are using python myvideogrep.py
Because he try to run it Windows,then that's the only way.
If you read my post,i explain why it not work as command line tool on Windows.
Reply
#24
(Sep-11-2018, 03:47 PM)Axel_Erfurt Wrote: I don't understand why you are using python myvideogrep.py

Quote:Videogrep is a command line tool that searches through dialog in video files

Quote:How to use it!

The most basic use:

videogrep --input path/to/video_or_folder --search 'search phrase'
Did you read from first post, you may get it easily.
Reply
#25
(Sep-11-2018, 12:47 PM)snippsat Wrote: 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.

will you tell me where to put entry_points, thanks.
Reply
#26
may be wait for antibordom untill he will setup for windows.
Reply
#27
I think it works only with MacOSX!
Tested on latest ubuntu using virtualbox!
I am getting same error like windows
yl@yl-VirtualBox:~$ videogrep -i /media -s "Rule" -st word -o test.mp4
[!] No subtitle files were found.
Traceback (most recent call last):
  File "/home/yl/.local/bin/videogrep", line 5, in <module>
    videogrep.main()
  File "/home/yl/.local/lib/python2.7/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 "/home/yl/.local/lib/python2.7/site-packages/videogrep/videogrep.py", line 456, in videogrep
    composition = compose_from_srts(srts, search, searchtype)
  File "/home/yl/.local/lib/python2.7/site-packages/videogrep/videogrep.py", line 317, in compose_from_srts
    for srt in srts:
TypeError: 'bool' object is not iterable
yl@yl-VirtualBox:~$ 
I tried on different file(added .srt file same folder), same error!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  no module named 'docx' when importing docx MaartenRo 1 705 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Problem with pymodbus - ModuleNotFoundError: No module named 'pymodbus.client.sync' stsxbel 2 22,931 Nov-02-2023, 08:20 AM
Last Post: South_east
  ModuleNotFoundError: No module named 'requests' Serg 18 2,156 Oct-29-2023, 11:33 PM
Last Post: Serg
  __name__ and __main__ in functions Mark17 3 678 Oct-12-2023, 01:55 AM
Last Post: deanhystad
  Resolving ImportError: No module named gdb (Python in C++) mandaxyz 3 1,308 Oct-04-2023, 02:43 PM
Last Post: mandaxyz
  ModuleNotFoundError: No module named 'PyPDF2' Benitta2525 1 1,388 Aug-07-2023, 05:32 AM
Last Post: DPaul
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 2 1,221 Jul-10-2023, 03:37 AM
Last Post: Wimpy_Wellington
  How to fix this error: ModuleNotFoundError: No module named 'notears' yaoyao22 2 960 Jul-09-2023, 11:24 AM
Last Post: yaoyao22
  Help with pyinstaller "No module named" korenron 9 8,187 Jun-15-2023, 12:20 PM
Last Post: snippsat
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 932 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