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

Can't launch ytmdl on Windows #271

Open
2 tasks done
RoyalCyan opened this issue May 2, 2023 · 7 comments
Open
2 tasks done

Can't launch ytmdl on Windows #271

RoyalCyan opened this issue May 2, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@RoyalCyan
Copy link

RoyalCyan commented May 2, 2023

Bug report

Checklist

  • I have searched for similar bugs in the issues.
  • I will add the bug label to this issue.

Version Info

  • Ytmdl version: 2023.2.28
  • Youtube-dl version: 2023.3.4

How Ytmdl was installed?

I have installed it through pip with the optional packages

Console Log

PS C:\Windows\system32\WindowsPowerShell\v1.0> ytmdl
ytmdl : The term 'ytmdl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ ytmdl
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (ytmdl:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Description

After installing the ytmdl with pip i tried to execute the command "ytmdl" in Windows Powershell. But I got an error (see above).

@RoyalCyan RoyalCyan added the bug Something isn't working label May 2, 2023
@RoyalCyan RoyalCyan changed the title Can Can't launch ytmdl on Windows May 2, 2023
@deepjyoti30
Copy link
Owner

Can you check if ytmdl is installed properly by doing the following:

pip freeze

Check the list to see if ytmdl is listed there. If you have grep in your powershell, you can do this instead:

pip freeze | grep -i ytmdl

@stale
Copy link

stale bot commented Sep 17, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs for another 7 days. Thank you for your contributions.

@stale stale bot added the stale label Sep 17, 2023
@Lunar-Skies
Copy link

I'm running into the same issue. I've installed ytmdl via pip and i get the same error from powershell. I've done pip freeze and it lists ytmdl so it should be installed properly. Would appreciate any assistance if a solution has been found and this thread just wasn't updated.

@stale stale bot removed the stale label Oct 29, 2023
@deepjyoti30
Copy link
Owner

@Lunar-Skies Seems like ytmdl is not in $PATH.

Can you do pip show ytmdl to find where ytmdl is installed to?

Once you find the path, update the path in powershell like this:

$env:PATH = $env:PATH + '<new path>'

After that try running ytmdl command again.

@Lunar-Skies
Copy link

That command showed it installed at C:\Users\<my account>\AppData\Roaming\Python\Python312\site-packages. I've updated the path in powershell with the command you gave me and $env:PATH shows it's part of PATH now however i am still getting the same error.

@deepjyoti30
Copy link
Owner

I am out of ideas here. I don't have direct access to a windows machine but seems like python cli command support for powershell is really bad.

As a side note, do you happen to have multiple python versions installed in your machine?

Only thing I can suggest you at this point is that you try using git bash or WSL.

@CaitlynMC
Copy link

Anyone have a fix for this? I am experiencing it too and none of the suggested fixes worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants