Solved 3 errors got in Colaboratory#15
Open
RomRoc wants to merge 4 commits intoOSSDC:masterfrom
RomRoc:master
Open
Solved 3 errors got in Colaboratory#15RomRoc wants to merge 4 commits intoOSSDC:masterfrom RomRoc:master
RomRoc wants to merge 4 commits intoOSSDC:masterfrom
RomRoc:master
Conversation
ERROR 1:
ModuleNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/pafy/pafy.py in <module>()
47 try:
---> 48 import youtube_dl
49 backend = "youtube-dl"
ModuleNotFoundError: No module named 'youtube_dl'
In
----> 1 import time, pafy
============================================================
ERROR 2:
TypeError Traceback (most recent call last)
<ipython-input-16-92d99807c83c> in <module>()
60 results = model.detect([image], verbose=1)
61 #print("# %s - %s - %0.4f seconds ---" % (frameCnt,rclasses.astype('|S3'), (nowMicro - start_time).total_seconds()))
---> 62 draw_str(image, (20, 20), "FPS = %3.2f, %0.4f sec, Track points = %5d, Frame = %6d" % (fpsValue,(nowMicro - start_time).total_seconds(),len(tracks), frameCnt))
63 start_time = nowMicro
64
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'float'
============================================
ERROR 3:
NameError Traceback (most recent call last)
<ipython-input-15-92d99807c83c> in <module>()
69
70 if showImage:
---> 71 if count % 2: #increase or decrease this to clear after more or less frames
72 # Display the frame until new frame is available
73 clear_output(wait=True)
NameError: name 'count' is not defined
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ERROR 1:
ModuleNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/pafy/pafy.py in ()
47 try:
---> 48 import youtube_dl
49 backend = "youtube-dl"
ModuleNotFoundError: No module named 'youtube_dl'
In
----> 1 import time, pafy
ERROR 2:
TypeError Traceback (most recent call last)
in ()
60 results = model.detect([image], verbose=1)
61 #print("# %s - %s - %0.4f seconds ---" % (frameCnt,rclasses.astype('|S3'), (nowMicro - start_time).total_seconds()))
---> 62 draw_str(image, (20, 20), "FPS = %3.2f, %0.4f sec, Track points = %5d, Frame = %6d" % (fpsValue,(nowMicro - start_time).total_seconds(),len(tracks), frameCnt))
63 start_time = nowMicro
64
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'float'
============================================
ERROR 3:
NameError Traceback (most recent call last)
in ()
69
70 if showImage:
---> 71 if count % 2: #increase or decrease this to clear after more or less frames
72 # Display the frame until new frame is available
73 clear_output(wait=True)
NameError: name 'count' is not defined