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

Python modules 'gmusicapi' or 'fuzzywuzzy' not found. #743

Closed
jonspraggins opened this issue May 24, 2020 · 27 comments
Closed

Python modules 'gmusicapi' or 'fuzzywuzzy' not found. #743

jonspraggins opened this issue May 24, 2020 · 27 comments

Comments

@jonspraggins
Copy link

jonspraggins commented May 24, 2020

Issue

Steps to Reproduce

Executed command:

tizonia --gmusic-unlimited-station "Daft Punk"

Result:

tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

[Google Play Music] [Connecting] : 'jonspraggins@gmail.com'.
Traceback (most recent call last):
  File "<string>", line 2, in <module>
AttributeError: module 'importlib' has no attribute 'util'

Python modules 'gmusicapi' or 'fuzzywuzzy' not found.
Please make sure these are installed correctly.

tizonia exiting (OMX_ErrorInsufficientResources).

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

Versions

Tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

Dependency Info:

* [Boost 1_71]
* [TagLib 1.11.1]
* [MediaInfoLib - v19.09]
* [gmusicapi 13.0.0 ]
* [soundcloud 0.5.0 ]
* [youtube-dl 2020.5.8 ]
* [pafy 0.5.5 ]
* [pycountry 19.8.18 ]
* [titlecase 0.12.0 ]
* [pychromecast 5.2.0 ]
* [plexapi 3.6.0 ]
* [spotipy 2.12.0 ]
* [fuzzywuzzy 0.18.0 ]
* [eventlet 0.25.2 ]
* [python-Levenshtein 0.12.0 ]
* [joblib 0.15.1 ]

System Info:

Linux@5.4.0-7626-generic-#30~1588169883~20.04~bbe668a-Ubuntu SMP Wed Apr 29 21:00:02 UTC 
NAME="Pop!_OS"
VERSION="20.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://system76.com/pop"
SUPPORT_URL="http://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
LOGO=distributor-logo-pop-os

Additional Information

pip3 reports gmusicapi and fuzzywuzzy requirements are satisfied.

pip3 install gmusicapi fuzzywuzzy
Requirement already satisfied: gmusicapi in /usr/local/lib/python3.8/dist-packages (13.0.0)
Requirement already satisfied: fuzzywuzzy in /usr/local/lib/python3.8/dist-packages (0.18.0)
Requirement already satisfied: MechanicalSoup>=0.4.0 in /usr/local/lib/python3.8/dist-packages (from gmusicapi) (0.12.0)
Requirement already satisfied: requests!=1.2.0,!=2.12.0,!=2.12.1,!=2.12.2,!=2.18.2,!=2.2.1,!=2.8.0,!=2.8.1,>=1.1.0 in /usr/lib/python3/dist-packages (from gmusicapi) (2.22.0)
Requirement already satisfied: gpsoauth>=0.2.0 in /usr/local/lib/python3.8/dist-packages (from gmusicapi) (0.4.1)
Requirement already satisfied: oauth2client>=1.1 in /usr/local/lib/python3.8/dist-packages (from gmusicapi) (4.1.3)
Requirement already satisfied: proboscis>=1.2.5.1 in /usr/local/lib/python3.8/dist-packages (from gmusicapi) (1.2.6.0)
Requirement already satisfied: mutagen>=1.34 in /usr/local/lib/python3.8/dist-packages (from gmusicapi) (1.44.0)
Requirement already satisfied: decorator>=3.3.1 in /usr/local/lib/python3.8/dist-packages (from gmusicapi) (4.4.2)
Requirement already satisfied: validictory!=0.9.2,>=0.8.0 in /usr/local/lib/python3.8/dist-packages (from gmusicapi) (1.1.2)
Requirement already satisfied: protobuf>=3.0.0 in /usr/lib/python3/dist-packages (from gmusicapi) (3.6.1)
Requirement already satisfied: appdirs>=1.1.0 in /usr/local/lib/python3.8/dist-packages (from gmusicapi) (1.4.4)
Requirement already satisfied: python-dateutil!=2.0,>=1.3 in /usr/lib/python3/dist-packages (from gmusicapi) (2.7.3)
Requirement already satisfied: beautifulsoup4>=4.4 in /usr/local/lib/python3.8/dist-packages (from MechanicalSoup>=0.4.0->gmusicapi) (4.9.1)
Requirement already satisfied: lxml in /usr/local/lib/python3.8/dist-packages (from MechanicalSoup>=0.4.0->gmusicapi) (4.5.1)
Requirement already satisfied: six>=1.4 in /usr/lib/python3/dist-packages (from MechanicalSoup>=0.4.0->gmusicapi) (1.14.0)
Requirement already satisfied: pycryptodomex>=3.0 in /usr/local/lib/python3.8/dist-packages (from gpsoauth>=0.2.0->gmusicapi) (3.9.7)
Requirement already satisfied: pyasn1-modules>=0.0.5 in /usr/local/lib/python3.8/dist-packages (from oauth2client>=1.1->gmusicapi) (0.2.8)
Requirement already satisfied: rsa>=3.1.4 in /usr/local/lib/python3.8/dist-packages (from oauth2client>=1.1->gmusicapi) (4.0)
Requirement already satisfied: httplib2>=0.9.1 in /usr/lib/python3/dist-packages (from oauth2client>=1.1->gmusicapi) (0.14.0)
Requirement already satisfied: pyasn1>=0.1.7 in /usr/local/lib/python3.8/dist-packages (from oauth2client>=1.1->gmusicapi) (0.4.8)
Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.8/dist-packages (from beautifulsoup4>=4.4->MechanicalSoup>=0.4.0->gmusicapi) (2.0.1)
@juanrubio
Copy link
Member

Hi @jonspraggins !

AttributeError: module 'importlib' has no attribute 'util'

We have seen this error several times in the past in people's machines.

Essentially what this means is that your system is using the Python2 runtime as the default Python runtime.

So even if all the Python3 dependencies are installed correctly, Tizonia is unable to run correctly, as it does not support Python2 anymore.

So I would suggest looking at any Python-related custom settings in your environment. I installed yesterday Tizonia 0.22.0 in two Focal machines and everything worked correctly.

@eduardo-robles
Copy link

I just installed on fresh install of Focal and I got a similar error.

$ tizonia --youtube-audio-search deadmouse
tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

[Youtube] [Connecting] : 'deadmouse'.
Traceback (most recent call last):
  File "<string>", line 2, in <module>
AttributeError: module 'importlib' has no attribute 'util'

Python modules 'pafy', 'youtube-dl', 'joblib' or 'fuzzywuzzy' not found.
Please make sure these are installed correctly.

tizonia exiting (OMX_ErrorInsufficientResources).

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

@juanrubio
Copy link
Member

juanrubio commented May 25, 2020

@eduardo-robles

I've just tried it again on a Lubuntu Focal installation and it works:

adrian@optimus:~$ tizonia --debug
tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

Dependency Info:

* [Boost 1_71]
* [TagLib 1.11.1]
* [MediaInfoLib - v19.09]
* [gmusicapi 13.0.0 ]
* [soundcloud 0.5.0 ]
* [youtube-dl 2020.5.8 ]
* [pafy 0.5.5 ]
* [pycountry 19.8.18 ]
* [titlecase 0.12.0 ]
* [pychromecast 5.2.0 ]
* [plexapi 3.6.0 ]
* [spotipy 2.12.0 ]
* [fuzzywuzzy 0.18.0 ]
* [eventlet 0.25.2 ]
* [python-Levenshtein 0.12.0 ]
* [joblib 0.15.1 ]

System Info:

Linux@5.4.0-29-generic-#33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
adrian@optimus:~$ ^Conia --debug
adrian@optimus:~$ tizonia --youtube-audio-search deadmouse
tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

[Youtube] [Connecting] : 'deadmouse'.
[YouTube] [Audio search] : 'deadmouse'. 
[YouTube] [Stream] [#001] 'deadmau5 - Strobe'.
[YouTube] [Stream] [#002] 'deadmau5 - Raise Your Weapon'.
[YouTube] [Stream] [#003] 'deadmau5 - Monophobia (feat. Rob Swire) [Official Video]'.
[YouTube] [Stream] [#004] 'deadmau5 & Kaskade - I Remember (HQ)'.
[YouTube] [Stream] [#005] '4x4=12 (Continuous Mix)'.
[YouTube] [Stream] [#006] 'deadmau5 feat. Rob Swire - Ghosts N Stuff'.
[YouTube] [Stream] [#007] 'Deadmau5 Live at Glastonbury 2015 Full Set HD'.
[YouTube] [Stream] [#008] 'Marshmello VS Deadmau5 - Alone Remix (Official Music Video) Ft. Daft Punk'.
[YouTube] [Stream] [#009] 'Bleed'.
[YouTube] [Stream] [#010] '06 - Deadmau5 - Sometimes (Live at Roskilde Festival 09-07-2011)'.
[YouTube] [Stream] [#011] 'Deadmau5 - The Dark Mix'.
[YouTube] [Stream] [#012] 'Strobe (Sparkee's NuDisco Arrangement) [deadmau5 cover]'.
[YouTube] [Stream] [#013] 'deadmau5 & Kaskade - I Remember [HQ]'.
[YouTube] [Stream] [#014] 'deadmau5 - Some Chords'.
[YouTube] [Stream] [#015] 'Deadmau5 Live Set - March 28, 2020'.
[YouTube] [Stream] [#016] 'deadmau5 mix - Best Hits'.
[YouTube] [Stream] [#017] 'deadmau5 - Strobe (Dimension Remix)'.
[YouTube] [Stream] [#018] 'deadmau5 feat. Chris James - The Veldt (Official Video)'.
[YouTube] [Stream] [#019] 'Undeadmau5 - Deadmau5 continuous mix'.
[YouTube] [Stream] [#020] 'Deadmau5 live T in the Park 2011 full set'.
[YouTube] [Stream] [#021] 'deadmau5 ft. Gerard Way - Professional Griefers (Official Video)'.
[YouTube] [Stream] [#022] 'deadmau5 - Maths (Cobra Effect Remix) Live on the Honda Stage in NYC'.
[YouTube] [Stream] [#023] 'deadmau5 - Right This Second'.
[YouTube] [Stream] [#024] 'deadmau5 feat. Chris James - The Veldt (Music Video)'.
[YouTube] [Stream] [#025] 'Deadmau5 + Kaskade - Move For Me [Extended Mix] (1080p) || HD'.
[YouTube] [Stream] [#026] '"I'd Sign That in a Second": deadmau5 Discovers "tryhard" Kindrid'.
[YouTube] [Stream] [#027] 'deadmau5 - Not Exactly'.
[YouTube] [Stream] [#028] 'Deadmau5 - Ghosts n Stuff'.
[YouTube] [Stream] [#029] 'Deadmau5 - The New Year Eve Mix (January 2020)'.
[YouTube] [Stream] [#030] 'deadmau5 - Slip (HQ)'.
[YouTube] [Stream] [#031] 'deadmau5 - Sofi Needs a Ladder'.
[YouTube] [Stream] [#032] 'Deadmau5 - Ghosts N Stuff (Nero Remix)'.
[YouTube] [Stream] [#033] 'deadmau5 - Professional Griefers (featuring Gerard Way) (Cover Art)'.
[YouTube] [Stream] [#034] 'Deadmau5 - Cube V3 Live @ Creamfields 2019'.
[YouTube] [Stream] [#035] 'deadmau5 feat. Colleen D'Agostino - Seeya'.
[YouTube] [Stream] [#036] 'deadmau5 & Kaskade - I Remember'.
[YouTube] [Stream] [#037] 'Deadmau5 - The Inspirational Mix (March 2019)'.
[YouTube] [Stream] [#038] 'Deadmau5 - Moar Ghosts 'n' Stuff (Hard Intro Mix 2011)'.
[YouTube] [Stream] [#039] 'Deadmau5 - Polaris [Live at Ultra Japan]'.
[YouTube] [Stream] [#040] 'Inside the insane deadmau5 CUBE V3!'.
[YouTube] [Stream] [#041] 'deadmau5 delete's this awesome track???'.
[YouTube] [Stream] [#042] 'Deadmau5 - The Dark Mix (October 2018)'.
[YouTube] [Stream] [#043] 'deadmau5 - 4ware'.
[YouTube] [Stream] [#044] 'Deadmau5 - Not Exactly (1080p) || HD'.
[YouTube] [Stream] [#045] 'deadmau5 - Polaris'.
[YouTube] [Stream] [#046] 'Deadmau5 - Hit Save'.
[YouTube] [Stream] [#047] 'Deadmau5 - Aural Psynapse || HD'.
[YouTube] [Stream] [#048] 'Deadmau5 - Gula (1080p) || HD'.
[YouTube] [Stream] [#049] 'Deadmau5 - Strobe (Club Edit)'.
[YouTube] [Stream] [#050] 'Morgan Page (ft. Lissie) - The Longest Road (Deadmau5 Remix) [Official Music Video]'.
[YouTube] [Stream] [#051] 'Medina - You and I (deadmau5 Remix) HQ'.
[YouTube] [Stream] [#052] 'deadmau5 - Brazil (Second Edit) (HQ)'.
[YouTube] [Stream] [#053] 'deadmau5 feat. Chris James - The Veldt'.
[YouTube] [Stream] [#054] 'Kaskade & deadmau5 - Move For Me (OFFICIAL VIDEO)'.
[YouTube] [Stream] [#055] 'deadmau5 - The Halloween Mix'.
[YouTube] [Stream] [#056] 'deadmau5 - Drama Free (feat. Lights) [Official Video]'.
[YouTube] [Stream] [#057] 'deadmau5 "Hi Friend"'.
[YouTube] [Stream] [#058] 'deadmau5 - Alone With You (HQ)'.
[YouTube] [Stream] [#059] 'Deadmau5 Sometimes - live - Roskilde festival'.
[YouTube] [Stream] [#060] 'Melleefresh vs deadmau5 / Hey Baby (Original Mix)'.
[YouTube] [Stream] [#061] 'deadmau5 -  nosedive'.
[YouTube] [Stream] [#062] 'deadmau5 "Moar Ghosts N Stuff"'.
[YouTube] [Stream] [#063] 'deadmau5 "FML"'.
[YouTube] [Stream] [#064] 'deadmau5 - Closer (Cover Art)'.
[YouTube] [Stream] [#065] 'Calvin Harris I'm Not Alone DEADMAU5 REMIX'.
[YouTube] [Stream] [#066] 'Deadmau5 - HR 8938 Cephei (1080p) || HD'.
[YouTube] [Stream] [#067] 'Deadmau5 - Strobe (Evan Duffy Piano Cover)'.
[YouTube] [Stream] [#068] 'Slip (MEUTE Version)'.
[YouTube] [Stream] [#069] 'deadmau5 - maths'.
[YouTube] [Stream] [#070] 'Deadmau5 Troll Compilation'.
[YouTube] [Stream] [#071] 'Deadmau5 - Clockwork (1080p) || HD'.
[YouTube] [Stream] [#072] 'deadmau5 - Superliminal (Cover Art)'.
[YouTube] [Stream] [#073] 'deadmau5 - COASTED (Full Length Version)'.
[YouTube] [Stream] [#074] 'deadmau5 - Sometimes Things Get, Whatever (HQ)'.
[YouTube] [Stream] [#075] 'deadmau5 / Orca (Original Mix)'.
[YouTube] [Stream] [#076] 'deadmau5 - Imaginary Friends'.
[YouTube] [Stream] [#077] 'deadmau5 - Snowcone'.
[YouTube] [Stream] [#078] 'Deadmau5 - The Chill Mix (January 2019)'.
[YouTube] [Stream] [#079] 'deadmau5 - There might be coffee (Cover Art)'.
[YouTube] [Stream] [#080] 'deadmau5 - SATRN'.
[YouTube] [Stream] [#081] 'deadmau5 - FALL'.
[YouTube] [Stream] [#082] 'deadmau5 - Avaritia'.
[YouTube] [Stream] [#083] 'Deadmau5 - Rio'.
[YouTube] [Stream] [#084] 'deadmau5 feat. Rob Swire - Monophobia'.
[YouTube] [Stream] [#085] 'deadmau5 ft Rob Swire - Ghosts 'n' Stuff'.
[YouTube] [Stream] [#086] 'My Pet Coelacanth'.
[YouTube] [Stream] [#087] 'deadmau5 - Arguru'.
[YouTube] [Stream] [#088] 'Deadmau5 - While(1-2) Part 1 (Original Continuous Mix) [HD 1080p]'.
[YouTube] [Stream] [#089] 'deadmau5 - Complications (HQ)'.
[YouTube] [Stream] [#090] 'Deadmau5 - Where Phantoms Sleep 04'.
[YouTube] [Stream] [#091] 'deadmau5 - end'.
[YouTube] [Stream] [#092] 'A Dead Mouse'.
[YouTube] [Stream] [#093] 'Melleefresh vs deadmau5 - Attention Whore'.
[YouTube] [Stream] [#094] 'Deadmau5 - A City in Florida (4x4=12)'.
[YouTube] [Stream] [#095] 'Why Deadmau5 Hates Dubstep'.
[YouTube] [Stream] [#096] 'Deadmau5 - Jaded || HD'.
[YouTube] [Stream] [#097] 'deadmau5 & Wolfgang Gartner - Animal Rights'.
[YouTube] [Stream] [#098] 'Deadmau5 vs. Skrillex (Dubstep Battle)'.
[YouTube] [Stream] [#099] 'deadmau5 - Strobe live @ SPACE, Ibiza 09'.
[YouTube] [Stream] [#100] 'Deadmau5 - My Pet Coelacanth (1080p) || HD'.
[YouTube] [Stream] [#101] 'deadmau5 - Raise Your Weapon (Noisia Remix) (Cover Art)'.
[YouTube] [Stream] [#102] 'Deadmau5 Deadmouse head DIY!'.
[YouTube] [Stream] [#103] 'Deadmouse (Remix 2020 Workout)'.
[YouTube] [Stream] [#104] 'Deadmau5 - The "impossible" bass line from Strobe with tabs (Sparkee NuDisco remix)'.
[YouTube] [Stream] [#105] 'Deadmau5 - Arguru || HD'.
[YouTube] [Stream] [#106] 'Deadmouse (Dead Mouse) with Lyrics - Donker Bucketlist Demo'.
[YouTube] [Stream] [#107] 'HOW TO DEADMAU5'.
[YouTube] [Stream] [#108] 'deadmau5 - GG'.
[YouTube] [Stream] [#109] 'deadmau5 - aural psynapse (Live From Toronto) (Official Video)'.
[YouTube] [Stream] [#110] 'deadmau5 - Strobe (8D AUDIO) 🎧'.
[YouTube] [Stream] [#111] 'deadmau5 feat. Grabbitz - Let Go (Extended Edit)'.
[YouTube] [Stream] [#112] 'deadmau5 "16th hour"'.
[YouTube] [Stream] [#113] 'Deadmau5 - A City In Florida (1080p) || HD'.
[YouTube] [Stream] [#114] 'deadmau5 x Shotty Horroh - Legendary [video]'.
[YouTube] [Stream] [#115] 'deadmau5 - Phantoms Can't Hang'.
[YouTube] [Stream] [#116] 'deadmouse - ghosts n stuff'.
[YouTube] [Stream] [#117] 'Deadmau5 - legacy (unreleased)'.
[YouTube] [Stream] [#118] 'MF DOOM - A DEAD MOUSE'.
[YouTube] [Stream] [#119] 'Foo Fighters - Rope (Deadmau5 Mix)'.
[YouTube] [Stream] [#120] 'deadmau5 - Saved'.
[YouTube] [Stream] [#121] 'deadmau5 feat. Rob Swire - Monophobia (Extended Mix)'.
[YouTube] [Stream] [#122] 'Last Dead Mouse'.
[YouTube] [Stream] [#123] 'Strobe (Radio Edit)'.
[YouTube] [Stream] [#124] 'Deadmau5 - Slip (1080p) || HD'.
[YouTube] [Stream] [#125] 'Marshmello VS Deadmouse'.
[YouTube] [Stream] [#126] 'Deadmau5 - Mastering + Routing'.
[YouTube] [Stream] [#127] 'deadmau5 making synth sounds'.
[YouTube] [Stream] [#128] 'Deadmau5 - The Reward Is Cheese (1080p) || HD'.
[YouTube] [Stream] [#129] 'deadmau5 - So There I Was'.
[YouTube] [Stream] [#130] 'Deadmau5 Purple :3 Mix'.
[YouTube] [Stream] [#131] 'Gula'.
[YouTube] [Stream] [#132] 'Elisa - Gift (Deadmouse radio cut)'.
[YouTube] [Stream] [#133] 'IBIZA  - Space Openning Fiesta 2009 Deadmouse'.
[YouTube] [Stream] [#134] 'Deadmau5 - Cthulhu Sleeps (OFFICIAL) [HD]'.
[YouTube] [Stream] [#135] 'MICKEY DEAD MOUSE - Микки мертвая мышь'.
[YouTube] [Stream] [#136] 'Deadmouse the Song:  Deadmouse the Musical'.
[YouTube] [Stream] [#137] 'deadmau5 w/Lights - ultra music festival 2019'.
[YouTube] [Stream] [#138] 'deadmau5 & Wolfgang Gartner - Channel 42 (Cover Art)'.
[YouTube] [Stream] [#139] 'deadmau5 - Strobe - Evan Duffy Version (piano tutorial)'.
[YouTube] [Stream] [#140] 'action dead mouse - ä (Full Album)'.
[YouTube] [Stream] [#141] 'Deadmau5 - Sofi Needs a Ladder [ HQ - Original ] 1080p'.
[YouTube] [Stream] [#142] 'Melleefresh vs deadmau5 / Cocktail Queen (Original Mix)'.
[YouTube] [Stream] [#143] 'Deadmouse 5'.
[YouTube] [Stream] [#144] 'deadmouse  en el corona 2013'.
[YouTube] [Stream] [#145] 'Dj Sp3ak & DeadMouse - MiX'.
[YouTube] [Stream] [#146] 'Good Enough - Deadmouse the Musical'.
[YouTube] [Stream] [#147] 'That Dead Mouse Guy - Myksyx'.
[YouTube] [Stream] [#148] 'deadmau5 - Cat Thruster'.
[YouTube] [Stream] [#149] '7 - RIMINI - ACTION DEAD MOUSE'.
[YouTube] [Stream] [#150] 'DeadMouse'.
[YouTube] [Streams in queue] '150'.
[Youtube] [Streaming] : 'deadmouse'.
   Ultra Music : deadmau5 - Strobe  (1 of 150)
     Description : Pick up all deadmau5's music here: http://goo.gl/CorVS Pre-order the full DVD 'Deadmau5 - Meowingtons Hax Live Fr                                                                                                                      
     Published : 2009-09-03 16:51:57Z
     View Count : 52091945
     YouTube Id : tKi9Z-f6qX4
     File Format : webm
     Bitrate : 160k
     Size : 11 MiB
     Duration : 10m:37s
     Opus Stream : 2 Ch, 48000 Hz
     2 Ch, 48 KHz, 16:s:l

  
   0%   10   20   30   40   50   60   70   80   90   100%
0s |----|----|----|----|----|----|----|----|----|----| 10m:37s
     05s

tizonia exiting (Ctrl-C).

@juanrubio
Copy link
Member

@eduardo-robles / @jonspraggins

Do you have any .profile / .bashrc / .zshrc file that you carry over from other machines/installs?

I'm pretty sure this is working,

@eduardo-robles
Copy link

@juanrubio I just did a full uninstall + removed all configuration directories/files. Then I did a install via the installer script. I still got a similar error. And I do not carry over my .profile or .bashrc from another machine.

$ tizonia --youtube-audio-search deadmouse
tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

[Youtube] [Connecting] : 'deadmouse'.
Traceback (most recent call last):
  File "<string>", line 2, in <module>
AttributeError: module 'importlib' has no attribute 'util'

Python modules 'pafy', 'youtube-dl', 'joblib' or 'fuzzywuzzy' not found.
Please make sure these are installed correctly.

tizonia exiting (OMX_ErrorInsufficientResources).

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

$ tizonia --debug
tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

Dependency Info:

* [Boost 1_71]
* [TagLib 1.11.1]
* [MediaInfoLib - v19.09]
* [gmusicapi 13.0.0 ]
* [soundcloud 0.5.0 ]
* [youtube-dl 2020.5.8 ]
* [pafy 0.5.5 ]
* [pycountry 19.8.18 ]
* [titlecase 0.12.0 ]
* [pychromecast 5.2.0 ]
* [plexapi 3.6.0 ]
* [spotipy 2.12.0 ]
* [fuzzywuzzy 0.18.0 ]
* [eventlet 0.25.2 ]
* [python-Levenshtein 0.12.0 ]
* [joblib 0.15.1 ]

System Info:

Linux@5.4.0-31-generic-#35-Ubuntu SMP Thu May 7 20:20:34 UTC 2020
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Thanks for the help 👍

@juanrubio
Copy link
Member

@eduardo-robles

which flavor of Ubuntu is that?

@eduardo-robles
Copy link

@juanrubio
The default Ubuntu (GNOME) flavor.

@juanrubio
Copy link
Member

would you be able to re-run the installer and upload the log here?

@malcolmlewis
Copy link

@juanrubio Hi there, I see the same issue on openSUSE, when I packaged the new 0.22 a few days ago and tested it was working fine.

tizonia --youtube-audio-mix-search deadmouse
tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

FATAL. Could not init OpenMAX IL : OMX_ErrorInsufficientResources
 tizonia --debug
tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

Dependency Info:

* [Boost 1_71]
* [TagLib 1.11.2]
* [MediaInfoLib - v20.03]
* [gmusicapi 13.0.0 ]
* [soundcloud 0.5.0 ]
* [youtube-dl 2020.5.8 ]
* [pafy 0.5.5 ]
* [pycountry 19.8.18 ]
* [titlecase 0.12.0 ]
* [pychromecast 5.0.0 ]
* [plexapi 3.6.0 ]
* [spotipy 2.10.0 ]
* [fuzzywuzzy 0.18.0 ]
* [eventlet 0.25.2 ]
* [python-Levenshtein 0.12.0 ]
* [joblib 0.14.1 ]

System Info:

Linux@5.6.12-1-default-#1 SMP Tue May 12 17:44:12 UTC 2020 (9bff61b)
NAME="openSUSE Tumbleweed"
# VERSION="20200520"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20200520"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20200520"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
LOGO="distributor-logo"

@juanrubio
Copy link
Member

I've just installed Tizonia on a fresh Ubuntu Focal VM, no issues.

Here is the full log for your reference:
tizonia-install.log

The problem that you are experiencing is clear, which is, Tizonia is running under the wrong Python runtime. Tizonia can't run under Python 2 or under a version Python 3 < 3.6.

On Focal, Python 3.8 should be the version that gets used.

@juanrubio
Copy link
Member

Here is a command that you can run on your system to log the libraries loaded by Tizonia. This will display which python runtime is being used in your system:

LD_DEBUG_OUTPUT=./tizonia-ld-debug.log LD_DEBUG=libs tizonia --youtube-audio-search 'elton john'

For reference, I'm uploading here the log produced in my Focal installation. You can see here that Python3.8 libs are being loaded in the Tizonia process (as expected):

tizonia-ld-debug.log.31500.txt

@juanrubio
Copy link
Member

@malcolmlewis

How are you building it, with Meson or with autotools?

@eduardo-robles
Copy link

Here is a command that you can run on your system to log the libraries loaded by Tizonia. This will display which python runtime is being used in your system:

LD_DEBUG_OUTPUT=./tizonia-ld-debug.log LD_DEBUG=libs tizonia --youtube-audio-search 'elton john'

For reference, I'm uploading here the log produced in my Focal installation. You can see here that Python3.8 libs are being loaded in the Tizonia process (as expected):

tizonia-ld-debug.log.31500.txt

I ran the command, here is the output.

tizonia-ld-debug.log.8928.txt

@malcolmlewis
Copy link

@malcolmlewis

How are you building it, with Meson or with autotools?

@juanrubio using meson now.

Here is my debug output as well;

tizonia-ld-debug.log.30107.txt

@juanrubio
Copy link
Member

juanrubio commented May 25, 2020

@malcolmlewis

FATAL. Could not init OpenMAX IL : OMX_ErrorInsufficientResources

I've just realized that your problem is not related to the Python problem that @eduardo-robles and @jonspraggins are experiencing. It's something different, more fundamental.
Your problem occurs when the OpenMAX IL framework fails to initialize. Perhaps one of the plugins under the component-paths is not been built properly for some reason? what Meson recipe have you used?

component-paths = /usr/lib/x86_64-linux-gnu/tizonia0-plugins12; 

I suggest using this logging configuration to enable full logs in Tizonia. Just copy the below xml configuration in $HOME/.log4crc.

NOTE: You need to adjust <log4c version="1.2.1"> to match the version of liblog4c on your system:
e.g.

  • ubuntu 18.04 -> <log4c version="1.2.1">
  • ubuntu 20.04 -> <log4c version="1.2.4">

Feel free to upload here the logs and I will take a look.

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE log4c SYSTEM "">

<log4c version="1.2.1">

  <config>
    <bufsize>0</bufsize>
    <debug level="2"/>
    <nocleanup>0</nocleanup>
    <reread>1</reread>
  </config>

  <category name="root" priority="trace" appender="stderr"/>
  <layout name="tiz" type="tiz_layout"/>
  <appender name="stderr" type="stream" layout="tiz"/>

</log4c>

@eduardo-robles
I can see in your ld-debug log that Python 3.8 is being used, but I can't see much else apart from that. Would you be able to collect full logs using the log4crc configuration above and upload the logs here?

@malcolmlewis
Copy link

@juanrubio do you want me to create a new issue about this?

I uploaded a local build log (OBS is playing up for me...)
tizonia-0.22.0-buildlog.txt

@juanrubio
Copy link
Member

Hi @malcolmlewis

yes, please create a new issue so we can discuss that separately.

Thanks

@juanrubio
Copy link
Member

@eduardo-robles / @jonspraggins

I installed yesterday vanilla Ubuntu Focal and I saw the problem there. What is puzzling (and a bit worrying as well) is the fact that on Lubuntu, the problem is not there. They are the same packages from Bintray, installed with the same script.

I need to investigate why Tizonia is broken on Ubuntu Focal with Gnome Shell

@juanrubio
Copy link
Member

juanrubio commented May 27, 2020

@jonspraggins / @eduardo-robles

OK, here is the thing. These two lines of Python3 throw an exception in a fresh installation of vanilla Ubuntu Focal (Gnome desktop) and they work perfectly fine in a fresh installation of the Lubuntu Focal flavor.
I've also got another Ubuntu Focal (Gnome desktop) where this does not throw. But this version has all the Python development environment, so it is not a fresh installation.

juan@tizonia:~$ python3
Python 3.8.2 (default, Apr 27 2020, 15:53:34) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import importlib
>>> spec = importlib.util.find_spec('joblib')
Traceback (most recent call last):
  File "<string>", line 2, in <module>
AttributeError: module 'importlib' has no attribute 'util'

The workaround is to import the 'util' module explicitly, i.e.

>>> import importlib
>>> import importlib.util
>>> spec = importlib.util.find_spec('joblib')

That makes it work on both flavors of Ubuntu.

I'm re-building the Focal packages and I will re-upload them to Bintray soon. I will ping here when they are ready.

@juanrubio
Copy link
Member

@jonspraggins / @eduardo-robles

The updated Focal packages are now in Bintray. I've tested them on vanilla Focal and they seem to be working fine.

To re-install, do like this:

# Remove existing installation
$ sudo apt purge tizonia-all && sudo apt autoremove && sudo apt autoclean

# Clear out the local repository of retrieved package files
$ sudo apt clean

# Re-download tizonia
$ curl -kL https://goo.gl/Vu8qGR | bash

@jonspraggins
Copy link
Author

jonspraggins commented May 27, 2020

progress. Now it queues songs, but still produces an error:

tizonia exiting (OMX_ErrorInsufficientResources).

 [OMX.Aratelia.audio_renderer.pulseaudio.pcm:port:0]
 [OMX_ErrorInsufficientResources]

Edit. My apologies. That was running as sudo. Running without sudo provides successful results!

@eduardo-robles
Copy link

eduardo-robles commented May 28, 2020

I did the reinstall but I still get an error.

$ tizonia --youtube-audio-search deadmouse
tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

[Youtube] [Connecting] : 'deadmouse'.
[YouTube] [Audio search] : 'deadmouse'. 
[YouTube] (GdataError) : Youtube Error 403: Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=962600003433

tizonia exiting (OMX_ErrorInsufficientResources).

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

Adding the debug log.

$ tizonia --debug
tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

Dependency Info:

* [Boost 1_71]
* [TagLib 1.11.1]
* [MediaInfoLib - v19.09]
* [gmusicapi 13.0.0 ]
* [soundcloud 0.5.0 ]
* [youtube-dl 2020.5.8 ]
* [pafy 0.5.5 ]
* [pycountry 19.8.18 ]
* [titlecase 0.12.0 ]
* [pychromecast 5.3.0 ]
* [plexapi 3.6.0 ]
* [spotipy 2.12.0 ]
* [fuzzywuzzy 0.18.0 ]
* [eventlet 0.25.2 ]
* [python-Levenshtein 0.12.0 ]
* [joblib 0.15.1 ]

System Info:

Linux@5.4.0-31-generic-#35-Ubuntu SMP Thu May 7 20:20:34 UTC 2020
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

tizonia-ld-debug.log.8126.txt

UPDATE:

This worked but still got a small error.

$ tizonia --youtube-audio-stream https://www.youtube.com/watch?v=YnwfTHpnGLY
tizonia 0.22.0. Copyright (C) 2020 Juan A. Rubio and contributors
This software is part of the Tizonia project <https://tizonia.org>

[Youtube] [Connecting] : 'https://www.youtube.com/watch?v=YnwfTHpnGLY'.
[YouTube] [Audio stream] : 'https://www.youtube.com/watch?v=YnwfTHpnGLY'. 
[YouTube] [Stream] [#1] 'deadmau5 - Raise Your Weapon'.
[YouTube] [Streams in queue] '1'.
[YouTube] (GdataError) : Youtube Error 403: Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT). You may monitor your quota usage and adjust limits in the API Console: https://console.developers.google.com/apis/api/youtube.googleapis.com/quotas?project=962600003433
[Youtube] [Streaming] : 'https://www.youtube.com/watch?v=YnwfTHpnGLY'.
   Ultra Music : deadmau5 - Raise Your Weapon  (1 of 1)
     View Count : 69281070
     Bitrate : 160k
     Size : 8 MiB
     Duration : 08m:21s
     Opus Stream : 2 Ch, 48000 Hz
     2 Ch, 48 KHz, 16:s:l

  
   0%   10   20   30   40   50   60   70   80   90   100%
0s |----|----|----|----|----|----|----|----|----|----| 8m:21s
      18sw

tizonia exiting (Quit).

@juanrubio
Copy link
Member

@eduardo-robles

Youtube Error 403: Daily Limit Exceeded. The quota will be reset at midnight Pacific Time (PT)

Tizonia's internal API key is in use by many users, so it hits the quota limit all the time. You can
create your own API key and add it to your tizonia.conf file.

Have a look at this link that describes the process:
https://docs.tizonia.org/manual/youtube.html

@juanrubio
Copy link
Member

@jonspraggins

Running without sudo provides successful results!

Glad it's finally working for you on Pop_OS!

@eduardo-robles
Copy link

eduardo-robles commented May 28, 2020

@juanrubio Waited 8 hours (sleeping lol) and it's now working for youtube search. I'll keep in mind the API key for youtube. Thanks. 👍

PS.
I am now having issues with spotify. Tizonia doesn't seem to recognize my username/password in the configuration file. I will keep trying before opening an issue.

@juanrubio
Copy link
Member

@eduardo-robles

There are few gotchas in the configuration of the Spotify credentials. See this document:
https://docs.tizonia.org/manual/spotify.html

@juanrubio
Copy link
Member

I'm closing this issue now, I think we have solved the original problem.

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

4 participants