Closed jonspraggins closed 4 years ago
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.
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]
@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).
@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,
@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 :+1:
@eduardo-robles
which flavor of Ubuntu is that?
@juanrubio The default Ubuntu (GNOME) flavor.
would you be able to re-run the installer and upload the log here?
@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"
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.
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):
@malcolmlewis
How are you building it, with Meson or with autotools?
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):
I ran the command, here is the output.
@malcolmlewis
How are you building it, with Meson or with autotools?
@juanrubio using meson now.
Here is my debug output as well;
@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.
<log4c version="1.2.1">
<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?
@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
Hi @malcolmlewis
yes, please create a new issue so we can discuss that separately.
Thanks
@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
@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.
@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
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!
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
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).
@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
@jonspraggins
Running without sudo provides successful results!
Glad it's finally working for you on Pop_OS!
@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. :+1:
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.
@eduardo-robles
There are few gotchas in the configuration of the Spotify credentials. See this document: https://docs.tizonia.org/manual/spotify.html
I'm closing this issue now, I think we have solved the original problem.
Issue
Steps to Reproduce
Executed command:
Result:
Versions
Additional Information
pip3 reports gmusicapi and fuzzywuzzy requirements are satisfied.