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

Crash when destination file system isn't available #70

Open
MikePryadko opened this issue Dec 28, 2021 · 1 comment
Open

Crash when destination file system isn't available #70

MikePryadko opened this issue Dec 28, 2021 · 1 comment

Comments

@MikePryadko
Copy link

MikePryadko commented Dec 28, 2021

image

system: Ubuntu 20.04.3 (xubuntu)
kazam: 1.5.4-0ubuntu7 [origin: LP-PPA-sylvain-pineau-kazam]
error (from crash report):

 Traceback (most recent call last):
   File "/usr/lib/python3.8/shutil.py", line 791, in move
     os.rename(src, real_dst)
 FileNotFoundError: [Errno 2] No such file or directory: '/home/mike/Videos/kazam_azj9bgif.movie' -> '/media/ext_hdd/video/kazam__00000.mp4'
 
 During handling of the above exception, another exception occurred:
 
 Traceback (most recent call last):
   File "/usr/lib/python3/dist-packages/kazam/app.py", line 738, in cb_flush_done
     shutil.move(self.tempfile, fname)
   File "/usr/lib/python3.8/shutil.py", line 811, in move
     copy_function(src, real_dst)
   File "/usr/lib/python3.8/shutil.py", line 435, in copy2
     copyfile(src, dst, follow_symlinks=follow_symlinks)
   File "/usr/lib/python3.8/shutil.py", line 264, in copyfile
     with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
 FileNotFoundError: [Errno 2] No such file or directory: '/media/ext_hdd/video/kazam__00000.mp4'

what is

specified in kazam's settings output directory was not mounted (i.e. /media/ is empty)

what should be

if output file can't be written kazam should interatively ask for new file path+name

___thank you in advance___
niknah added a commit to niknah/kazam that referenced this issue Dec 28, 2021
@niknah
Copy link

niknah commented Dec 29, 2021

Thanks for the suggestion, you can try the commit above.

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