Skip to content
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

TypeError #577

Closed
lukhihardik11 opened this issue Aug 8, 2020 · 4 comments
Closed

TypeError #577

lukhihardik11 opened this issue Aug 8, 2020 · 4 comments

Comments

@lukhihardik11
Copy link

Every time I start the print I get this error.
I checked my script which is ok.
plugin_octolapse (11).log

Traceback (most recent call last):
File "/home/hardiklukhi/OctoPrint/venv/lib/python3.8/site-packages/octoprint_octolapse/init.py", line 2423, in on_print_start
timelapse_settings = self.get_timelapse_settings()
File "/home/hardiklukhi/OctoPrint/venv/lib/python3.8/site-packages/octoprint_octolapse/init.py", line 2652, in get_timelapse_settings
if not os.path.isfile(ffmpeg_path):
File "/usr/lib/python3.8/genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

@FormerLurker
Copy link
Owner

FormerLurker commented Aug 18, 2020

Interesting. Try going into the OctoPrint webcam setting (NOT octolapse) and see if the FFMPEG path is entered. If it is not, enter it in, then verify using the button that the path is correct. Finally save your changes and restart OctoPrint and see if it starts working.

In any case I'll need to add a null check and an error message for this issue. I've never seen the path be null before, but there are so many different installations out there it doesn't surprise me :)

@lukhihardik11
Copy link
Author

lukhihardik11 commented Aug 18, 2020 via email

@FormerLurker
Copy link
Owner

FFMPEG is used to convert the snapshots into a video, and is required. I will considering altering the requirements check so that it is skipped if rendering is disabled. For now, install ffmpeg if necessary and enter the ffmpeg/avconv path into this setting (OctoPrint setting, not Octolapse):

image

Let me know if this workaround solves your problem for the moment.

FormerLurker added a commit that referenced this issue Nov 17, 2020
@FormerLurker
Copy link
Owner

This should be fixed in V0.4.1, which just dropped. Might take a while to show up in the plugin manager. Reopen a new issue if you continue to have problems. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants