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

No such file or directory (youtube). #401

Closed
mkg20001 opened this issue Dec 2, 2017 · 7 comments

Comments

Projects
None yet
2 participants
@mkg20001
Copy link

commented Dec 2, 2017

When I enter tizonia youtube I get this error:

tizonia 0.10.0. Copyright (C) 2017 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

No such file or directory (youtube).

Exit code is 1

@mkg20001

This comment has been minimized.

Copy link
Author

commented Dec 2, 2017

Using Ubuntu 16.04.3 64bit

@mkg20001

This comment has been minimized.

Copy link
Author

commented Dec 2, 2017

This error occurs for every command.

@juanrubio

This comment has been minimized.

Copy link
Collaborator

commented Dec 2, 2017

Hi!,

I believe you have forgotten to add the "--help" option? See
http://docs.tizonia.org/screenshots/helptopics.html

That will give you access to the help topics, so for youtube, you would do:

$ tizonia --help youtube
...
Youtube options:
  --youtube-audio-stream arg     Play a YouTube audio stream from a video url 
                                 or video id.
  --youtube-audio-playlist arg   Play a YouTube audio playlist from a playlist 
                                 url or playlist id.
  --youtube-audio-mix arg        Play a YouTube mix from a video url or video 
                                 id.
  --youtube-audio-search arg     Search and play YouTube audio streams.
  --youtube-audio-mix-search arg Play a YouTube mix from a search term.

and then you can try something like

$ tizonia --youtube-audio-search "something"
or
$ tizonia --youtube-audio-mix-search "something else"


@mkg20001

This comment has been minimized.

Copy link
Author

commented Dec 3, 2017

No I did this too:

maciej@maciej-pc:~$ tizonia
tizonia 0.10.0. Copyright (C) 2017 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

GNU Lesser GPL version 3 <http://gnu.org/licenses/lgpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

 Help topics:

  global        Options that are available with most features.
  openmax       Various OpenMAX IL query options.
  server        SHOUTcast/ICEcast streaming server options.
  client        SHOUTcast/ICEcast streaming client options.
  spotify       Spotify options.
  googlemusic   Google Play Music options.
  soundcloud    SoundCloud options.
  dirble        Dirble options.
  youtube       Youtube options.
  keyboard      Keyboard control.
  config        Configuration files.
  examples      Some command-line examples.

Use "tizonia --help topic".
maciej@maciej-pc:~$ tizonia --help youtube
tizonia 0.10.0. Copyright (C) 2017 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

GNU Lesser GPL version 3 <http://gnu.org/licenses/lgpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Youtube options:
  --youtube-audio-stream arg     Play a YouTube audio stream from a video url 
                                 or video id.
  --youtube-audio-playlist arg   Play a YouTube audio playlist from a playlist 
                                 url or playlist id.
  --youtube-audio-mix arg        Play a YouTube mix from a video url or video 
                                 id.
  --youtube-audio-search arg     Search and play YouTube audio streams.
  --youtube-audio-mix-search arg Play a YouTube mix from a search term.

maciej@maciej-pc:~$ tizonia youtube --youtube-audio-mix-search "Best of 2017"
tizonia 0.10.0. Copyright (C) 2017 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

No such file or directory (youtube).
maciej@maciej-pc:~$ 
@juanrubio

This comment has been minimized.

Copy link
Collaborator

commented Dec 3, 2017

Yes, I can see that the issue is that you are adding an extra argument that is not needed:

So instead of:

maciej@maciej-pc:~$ tizonia youtube --youtube-audio-mix-search "Best of 2017"

you have to type:

maciej@maciej-pc:~$ tizonia --youtube-audio-mix-search "Best of 2017"
@mkg20001

This comment has been minimized.

Copy link
Author

commented Dec 3, 2017

Ugh... another error appeared:

maciej@maciej-pc:~$ tizonia --youtube-audio-mix-search "Best of 2017"
tizonia 0.10.0. Copyright (C) 2017 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

Traceback (most recent call last):
  File "<string>", line 2, in <module>
ImportError: No module named pafy

Python modules 'pafy and/or 'youtube-dl' not found.
Please make sure these are installed correctly.

tizonia exiting (OMX_ErrorInsufficientResources).

 [OMX.Aratelia.audio_source.http:port:0]
 [OMX_ErrorInsufficientResources]

maciej@maciej-pc:~$ tizonia --youtube-audio-mix-search "Best of 2017"^C
maciej@maciej-pc:~$ which youtube-dl
/usr/local/bin/youtube-dl
maciej@maciej-pc:~$ which pip
/home/maciej/.local/bin/pip
maciej@maciej-pc:~$ 

Fixed it by running sudo pip2 install --upgrade pafy
Because the setup has used python3 pip instead of python2 pip
Should be fixed in the setup scirpt

Anyways the errors are gone now! Thanks!

@juanrubio

This comment has been minimized.

Copy link
Collaborator

commented Dec 3, 2017

You raise an excellent point.

I've created #404 to improve the install.sh script to make sure pip3 is never used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.