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

Put some beats on! message #5

Closed
Itookmyprozac opened this issue Feb 7, 2021 · 11 comments
Closed

Put some beats on! message #5

Itookmyprozac opened this issue Feb 7, 2021 · 11 comments

Comments

@Itookmyprozac
Copy link

Ubuntu 18.04.5 user here on an old 32 bit laptop. So maybe it's the reason of the problem.

I installed miniplayer via sudo python3 setup.py install. Log:

running install
running bdist_egg
running egg_info
writing miniplayer.egg-info/PKG-INFO
writing dependency_links to miniplayer.egg-info/dependency_links.txt
writing requirements to miniplayer.egg-info/requires.txt
writing top-level names to miniplayer.egg-info/top_level.txt
reading manifest file 'miniplayer.egg-info/SOURCES.txt'
writing manifest file 'miniplayer.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
warning: install_lib: 'build/lib' does not exist -- no Python modules to install

creating build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/EGG-INFO
installing scripts to build/bdist.linux-i686/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/bdist.linux-i686/egg/EGG-INFO/scripts
copying build/scripts-3.6/miniplayer -> build/bdist.linux-i686/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-i686/egg/EGG-INFO/scripts/miniplayer to 755
copying miniplayer.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying miniplayer.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying miniplayer.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying miniplayer.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying miniplayer.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/miniplayer-1.1.1-py3.6.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing miniplayer-1.1.1-py3.6.egg
Removing /usr/local/lib/python3.6/dist-packages/miniplayer-1.1.1-py3.6.egg
Copying miniplayer-1.1.1-py3.6.egg to /usr/local/lib/python3.6/dist-packages
miniplayer 1.1.1 is already the active version in easy-install.pth
Installing miniplayer script to /usr/local/bin

Installed /usr/local/lib/python3.6/dist-packages/miniplayer-1.1.1-py3.6.egg
Processing dependencies for miniplayer==1.1.1
Searching for ueberzug==18.1.7
Best match: ueberzug 18.1.7
Adding ueberzug 18.1.7 to easy-install.pth file
Installing ueberzug script to /usr/local/bin

Using /usr/local/lib/python3.6/dist-packages
Searching for Pillow==6.2.1
Best match: Pillow 6.2.1
Adding Pillow 6.2.1 to easy-install.pth file

Using /home/itook/.local/lib/python3.6/site-packages
Searching for pixcat==0.1.4
Best match: pixcat 0.1.4
Processing pixcat-0.1.4-py3.6.egg
pixcat 0.1.4 is already the active version in easy-install.pth
Installing pixcat script to /usr/local/bin

Using /usr/local/lib/python3.6/dist-packages/pixcat-0.1.4-py3.6.egg
Searching for ffmpeg-python==0.2.0
Best match: ffmpeg-python 0.2.0
Processing ffmpeg_python-0.2.0-py3.6.egg
ffmpeg-python 0.2.0 is already the active version in easy-install.pth

Using /usr/local/lib/python3.6/dist-packages/ffmpeg_python-0.2.0-py3.6.egg
Searching for python-mpd2==3.0.4
Best match: python-mpd2 3.0.4
Processing python_mpd2-3.0.4-py3.6.egg
python-mpd2 3.0.4 is already the active version in easy-install.pth

Using /usr/local/lib/python3.6/dist-packages/python_mpd2-3.0.4-py3.6.egg
Searching for psutil==5.7.3
Best match: psutil 5.7.3
Adding psutil 5.7.3 to easy-install.pth file

Using /usr/local/lib/python3.6/dist-packages
Searching for docopt==0.6.2
Best match: docopt 0.6.2
Adding docopt 0.6.2 to easy-install.pth file

Using /usr/local/lib/python3.6/dist-packages
Searching for python-xlib==0.29
Best match: python-xlib 0.29
Adding python-xlib 0.29 to easy-install.pth file

Using /usr/local/lib/python3.6/dist-packages
Searching for attrs==20.3.0
Best match: attrs 20.3.0
Adding attrs 20.3.0 to easy-install.pth file

Using /usr/local/lib/python3.6/dist-packages
Searching for requests==2.18.4
Best match: requests 2.18.4
Adding requests 2.18.4 to easy-install.pth file

Using /usr/lib/python3/dist-packages
Searching for dataclasses==0.8
Best match: dataclasses 0.8
Processing dataclasses-0.8-py3.6.egg
dataclasses 0.8 is already the active version in easy-install.pth

Using /usr/local/lib/python3.6/dist-packages/dataclasses-0.8-py3.6.egg
Searching for blessed==1.17.12
Best match: blessed 1.17.12
Processing blessed-1.17.12-py3.6.egg
blessed 1.17.12 is already the active version in easy-install.pth

Using /usr/local/lib/python3.6/dist-packages/blessed-1.17.12-py3.6.egg
Searching for future==0.18.2
Best match: future 0.18.2
Processing future-0.18.2-py3.6.egg
future 0.18.2 is already the active version in easy-install.pth
Installing futurize script to /usr/local/bin
Installing pasteurize script to /usr/local/bin

Using /usr/local/lib/python3.6/dist-packages/future-0.18.2-py3.6.egg
Searching for six==1.15.0
Best match: six 1.15.0
Adding six 1.15.0 to easy-install.pth file

Using /home/itook/.local/lib/python3.6/site-packages
Searching for wcwidth==0.2.5
Best match: wcwidth 0.2.5
Processing wcwidth-0.2.5-py3.6.egg
wcwidth 0.2.5 is already the active version in easy-install.pth

Using /usr/local/lib/python3.6/dist-packages/wcwidth-0.2.5-py3.6.egg
Finished processing dependencies for miniplayer==1.1.1

The config file is not created by default on /home/itook/.config/miniplayer/config so I created the directory and moved the sample config to it and renamed as "config". Then I edited it with adding my music directory.

When I execute the command miniplayer I only see the message "Put some beats on!".

@GuardKenzie
Copy link
Owner

Do you still see the message while playing music with mpd?

@Itookmyprozac
Copy link
Author

Do you still see the message while playing music with mpd?

I use ncmpcpp as client to play music. No problems with it.

My mpd.conf:

music_directory "/home/itook/musica/great"
playlist_directory "/home/itook/musica/great"
db_file "/home/itook/.mpd/mpd.db"
log_file "/home/itook/.mpd/mpd.log"
pid_file "/home/itook/.mpd/mpd.pid"
state_file "/home/itook/.mpd/mpdstate"
auto_update "yes"
audio_output {
	type "pulse"
	name "pulse audio"
}
audio_output {
	type "fifo"
	name "my_fifo"
	path "/tmp/mpd.fifo"
	format "44100:16:2"
}

bind_to_address "127.0.0.1"
port "6601"%  

@GuardKenzie
Copy link
Owner

Could you please post your config file for miniplayer as well?

@Itookmyprozac
Copy link
Author

Sorry, I forgot it!

/home/itook/.config/miniplayer/config:

[player]
music_directory = /home/itook/musica/great
font_width = 11
font_height = 24
image_method = pixcat

[mpd]
host = localhost
port = 6600% 

@GuardKenzie
Copy link
Owner

The port in your miniplayer config does not match your mpd config. If that does not do it, try changing the host in miniplayer to 127.0.0.1.

Also, is there a purpose to the percent sign at the end of both files?

@Itookmyprozac
Copy link
Author

The port in your miniplayer config does not match your mpd config. If that does not do it, try changing the host in miniplayer to 127.0.0.1.

Also, is there a purpose to the percent sign at the end of both files?

No luck with those changes. Still get the message "Put some beats on!" after restarting the mpd service. The percent sign is a remain of the copy&paste, it's not in the config files.

miniplayer conf:

[player]
music_directory = /home/itook/musica/great
font_width = 11
font_height = 24
image_method = pixcat

[mpd]
host = localhost
port = 6600

mpd.conf:

music_directory "/home/itook/musica/great"
playlist_directory "/home/itook/musica/great"
db_file "/home/itook/.mpd/mpd.db"
log_file "/home/itook/.mpd/mpd.log"
pid_file "/home/itook/.mpd/mpd.pid"
state_file "/home/itook/.mpd/mpdstate"
auto_update "yes"
audio_output {
        type "pulse"
        name "pulse audio"
 }
audio_output {
         type "fifo"
         name "my_fifo"
         path "/tmp/mpd.fifo"
         format "44100:16:2"
}

bind_to_address "localhost"
port "6600"

GuardKenzie, forget about this. I am used to these strange errors on my old laptop. The 32-bit architecture is rare and produces weird errors because of its different dependencies.

@GuardKenzie
Copy link
Owner

GuardKenzie commented Feb 7, 2021

I have one more idea. Could you please run the following python code and post your results?

from mpd import MPDClient
c = MPDClient()
c.connect("127.0.0.1", 6600)
print(c.currentsong())
print(c.status())

@Itookmyprozac
Copy link
Author

Itookmyprozac commented Feb 7, 2021

running python3 pythoncode.py gives this result:

{}
{'volume': '-1', 'repeat': '0', 'random': '0', 'single': '0', 'consume': '0', 'playlist': '2', 'playlistlength': '0', 'mixrampdb': '0.000000', 'state': 'stop'}

I don't know if it is relevant, but I forgot to write the version of python and obtained a different result. So running running python pythoncode.py gives this result:

Traceback (most recent call last):
  File "pythoncode.py", line 1, in <module>
    from mpd import MPDClient
ModuleNotFoundError: No module named 'mpd'

mpd is running:

mpd.service - Music Player Daemon
   Loaded: loaded (/lib/systemd/system/mpd.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2021-02-07 17:54:53 CET; 30min ago
     Docs: man:mpd(1)
           man:mpd.conf(5)
           file:///usr/share/doc/mpd/user-manual.html
 Main PID: 721 (mpd)
    Tasks: 5 (limit: 2305)
   CGroup: /system.slice/mpd.service
           └─721 /usr/bin/mpd --no-daemon

@GuardKenzie
Copy link
Owner

GuardKenzie commented Feb 7, 2021

If you have pip installed, you could try running pip install --force-reinstall miniplayer. A reboot also never hurts.

python-mpd2 doesn't appear to recognize that you are playing any music. If this issue persists after reinstalling and you are, in fact, playing music then it is an issue with that library.

@Itookmyprozac
Copy link
Author

If you have pip installed, you could try running pip install --force-reinstall miniplayer. A reboot also never hurts.

python-mpd2 doesn't appear to recognize that you are playing any music. If this issue persists after reinstalling and you are, in fact, playing music then it is an issue with that library.

Reinstalled but with the same results. Yep, it's not a problem of miniplayer but something related to my system, probably what you point. Case closed, then.

I'll try to install miniplayer on a modern distro with up to date libraries.

Thank you, GuardKenzie.

@c0dysharma
Copy link

c0dysharma commented Jul 3, 2021

I can confirm the issue in manjaro 64 bit aswell.
my miniplayer default config

[player]
music_directory = ~/Music
font_width = 11
font_height = 24
image_method = pixcat
volume_step = 5
auto_close = false
album_art_only = false
show_playlist = true

[mpd]
host = localhost
port = 6600

mpd conifg

music_directory "/Music"
playlist_directory "/.config/mpd/playlists"
db_file "/.config/mpd/database"
log_file "syslog"
state_file "/.config/mpd/state"
bind_to_address "127.0.0.1"
port "6600"
auto_update "yes"
input {
plugin "curl"
}
audio_output {
type "pulse"
name "My Pulse Output"
}

Also tried changing locahost to 127.0.0.1 in miniplayer config as well and other mpd clients like ncmpcpp also working!

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

3 participants