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

INTERNAL ERROR: cannot create temporary directory! #202

Open
KlaimGames opened this issue Mar 15, 2023 · 8 comments
Open

INTERNAL ERROR: cannot create temporary directory! #202

KlaimGames opened this issue Mar 15, 2023 · 8 comments

Comments

@KlaimGames
Copy link

KlaimGames commented Mar 15, 2023

Running into some issues using this. Fairly basic setup, but on windows :

`$yt = new YoutubeDl();

$yt->setBinPath(__DIR__.'/yt-dl/yt-dlp');


$collection = $yt->download(
    Options::create()
        ->downloadPath('/path/to/my/downloadfolder')
        ->url('https://www.youtube.com/watch?v=oDAw7vW7H0c')
);`

(downloadfolder being set to a specific folder onto my computer, redacted in here)

Within the download() function, I do a dump of the $buffer to get the info, since it otherwise silently fails. All i get is

INTERNAL ERROR: cannot create temporary directory!

Not sure as to why. If I dump the $process->getCommandLine() to get the command line and run that in my own command line, works no problem, so I am unsure as to what is happening here

Any idea ?

@norkunas
Copy link
Owner

Hey,

Maybe you are running your script with not the same permissions as directly through terminal?

@KlaimGames
Copy link
Author

KlaimGames commented Mar 15, 2023 via email

@norkunas
Copy link
Owner

You could try to run shell_exec with same cmd that works in terminal without this library to check if it works

@KlaimGames
Copy link
Author

KlaimGames commented Mar 16, 2023 via email

@norkunas
Copy link
Owner

Could you try that also with proc_open? also on which OS are you running your app?

@KlaimGames
Copy link
Author

KlaimGames commented Mar 16, 2023 via email

@norkunas
Copy link
Owner

Then I'm not sure and probably can't help anymore because I don't use windows and I suggest to use xdebug then 😞

@KlaimGames
Copy link
Author

KlaimGames commented Mar 17, 2023 via email

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