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
Comments
Hi @jonspraggins !
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.
|
I've just tried it again on a Lubuntu Focal installation and it works:
|
@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.
Thanks for the help 👍 |
which flavor of Ubuntu is that? |
@juanrubio |
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.
|
I've just installed Tizonia on a fresh Ubuntu Focal VM, no issues. Here is the full log for your reference: 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:
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): |
How are you building it, with Meson or with autotools? |
I ran the command, here is the output. |
@juanrubio using meson now. Here is my debug output as well; |
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.
I suggest using this logging configuration to enable full logs in Tizonia. Just copy the below xml configuration in NOTE: You need to adjust
Feel free to upload here the logs and I will take a look.
@eduardo-robles |
@juanrubio do you want me to create a new issue about this? I uploaded a local build log (OBS is playing up for me...) |
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.
The workaround is to import the 'util' module explicitly, i.e.
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:
|
progress. Now it queues songs, but still produces an error:
Edit. My apologies. That was running as sudo. Running without sudo provides successful results! |
I did the reinstall but I still get an error.
Adding the debug log.
UPDATE: This worked but still got a small error.
|
Tizonia's internal API key is in use by many users, so it hits the quota limit all the time. You can Have a look at this link that describes the process: |
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. 👍
|
There are few gotchas in the configuration of the Spotify credentials. See this document: |
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.
The text was updated successfully, but these errors were encountered: