yausername / youtubedl-android

youtube-dl for android
GNU General Public License v3.0
934 stars 172 forks source link

[Errno 2] No usable temporary directory found in ['/data/data/com.termux/files/usr/tmp', '/'] #262

Open zaednasr opened 6 months ago

zaednasr commented 6 months ago

This is a strange error because it only appears on a few devices. Sometimes if they reinstall the app, it might work for them or sometimes it doesn't. Not sure what could cause this or why does it even mention termux in the first place?

JunkFood02 commented 6 months ago

https://github.com/JunkFood02/Seal/issues/1161

JunkFood02 commented 6 months ago

why does it even mention termux in the first place?

We built the python and ffmpeg executable in a termux environment(docker image) for better dependency management and cross compilation for difference arch. It could be the home directory for the environment variables when the libraries got compiled I think

zaednasr commented 3 months ago

@JunkFood02 some new information. If the user tries to write subtitles it pushes out this error but otherwise it downloads fine.

GfEW commented 3 months ago

@zaednasr

@JunkFood02 some new information. If the user tries to write subtitles it pushes out this error but otherwise it downloads fine.

I've done extensive research to help tracking down JunkFood02/Seal#1161 (see there) and would like to check your obversation for reproducibility on my end.

If you're using yt-dlp via CLI (e. g. termux) or custom commands in Seal:

If you're using yt-dlp via Seal-GUI:

zaednasr commented 3 months ago

@zaednasr

@JunkFood02 some new information. If the user tries to write subtitles it pushes out this error but otherwise it downloads fine.

I've done extensive research to help tracking down JunkFood02/Seal#1161 (see there) and would like to check your obversation for reproducibility on my end.

If you're using yt-dlp via CLI (e. g. termux) or custom commands in Seal:

  • Would you mind to provide your exact yt-dlp commandline here?
  • Should you employ a two-step process, first fetching the list of available formats, then the actual downloads, both yt-dlp command lines would be great to know.

If you're using yt-dlp via Seal-GUI:

  • If you can find out the two involved yt-dlp command lines, see above.
  • Otherwise, this adds yet another use case to JunkFood02/Seal#1337.

Its device based. Sometimes even the same configuration yields a success. I believe all of this has to do with the termux docker container. If we could just raw dog the libraries without the middle man this could go away.

My app YTDLnis, lets you see the command used for a download in the download card by tapping the extra commands button, or by tapping the command button in the download history details card.