-
Notifications
You must be signed in to change notification settings - Fork 99
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
Silent failure when no webcam selected #29
Labels
Comments
Nice catch. I'll add a check to the initialize section (Start timelapse).
…On Feb 23, 2018 11:39 AM, "Wesley Heung" ***@***.***> wrote:
When running without *OctoPrint* or *OctoLapse* webcam configured
(properly), you may get some of the following errors:
2018-02-23 12:08:54,313 Traceback (most recent call last):
File "/home/wesley/workspace/OctoPrint/src/octoprint/plugins/Octolapse/octoprint_octolapse/__init__.py", line 299, in CopyOctoprintDefaultSettings
o = urlparse(snapshotUrl)
File "/usr/lib/python2.7/urlparse.py", line 143, in urlparse
tuple = urlsplit(url, scheme, allow_fragments)
File "/usr/lib/python2.7/urlparse.py", line 182, in urlsplit
i = url.find(':')
AttributeError: 'NoneType' object has no attribute 'find'
2018-02-23 12:22:57,992 Printer event received:PrinterStateChanged.
2018-02-23 12:22:57,993 Printer event received:PrintStarted.
2018-02-23 12:22:57,993 State Change:PrintStarted.
2018-02-23 12:22:57,994 Traceback (most recent call last):
File "/home/wesley/workspace/OctoPrint/src/octoprint/plugins/Octolapse/octoprint_octolapse/__init__.py", line 437, in on_event
self.OnPrintStart(origin)
File "/home/wesley/workspace/OctoPrint/src/octoprint/plugins/Octolapse/octoprint_octolapse/__init__.py", line 481, in OnPrintStart
result = self.StartTimelapse()
File "/home/wesley/workspace/OctoPrint/src/octoprint/plugins/Octolapse/octoprint_octolapse/__init__.py", line 507, in StartTimelapse
if(not os.path.isfile(ffmpegPath)):
File "/home/wesley/workspace/OctoPrint/octoprint_venv/lib/python2.7/genericpath.py", line 37, in isfile
st = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, NoneType found
Nothing is displayed on screen at all, so you should probably display some
sort of warning...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#29>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/Af0UuN3isH4xiH9llfQoaXl4N6lcB1u4ks5tXvfWgaJpZM4SROoH>
.
|
This was referenced Feb 28, 2018
Create a 'settings check' when a print starts to alert users of problems with Octolapse settings
#46
Closed
Rolling this into issue #46 since it will be solved by that enhancement. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running without OctoPrint or OctoLapse webcam configured (properly), you may get some of the following errors:
Nothing is displayed on screen at all, so you should probably display some sort of warning...
The text was updated successfully, but these errors were encountered: