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

Marantz M-CR611 Fails to Register and Fails to Play #403

Open
kbirabwa opened this issue May 14, 2020 · 8 comments
Open

Marantz M-CR611 Fails to Register and Fails to Play #403

kbirabwa opened this issue May 14, 2020 · 8 comments

Comments

@kbirabwa
Copy link

kbirabwa commented May 14, 2020

Hello,

I have just installed pulseaudio-dlna version 0.5.2.
It saw Marantz M-CR611 but at the moment it can't play anything. The machine fails to register and play.
Could anyone help me with this problem please?

Here is the debug output: pulseaudio-dlna-debug-outpt.txt

Regards,

Kizito

@kbirabwa kbirabwa reopened this May 14, 2020
@kbirabwa kbirabwa reopened this May 14, 2020
@kbirabwa kbirabwa changed the title Marantz M-CR611 Fails to Register anf Fails to Play Marantz M-CR611 Fails to Register and Fails to Play May 14, 2020
@stuaxo
Copy link

stuaxo commented Sep 22, 2020

This probably isn't super helpful, but I can confirm other models work, I have a NR1608 and that is working.

I am using the python3 branch from Cygn https://github.com/Cygn/pulseaudio-dlna/tree/python3

@farax4de
Copy link

farax4de commented Dec 9, 2020

As @stuaxo writes you should use Python3. The actual error is probably due to the slightly incorrect xml attribute xmlns:ms=" urn:microsoft-com:wmc-1-0". See [Issue #402]

@stuaxo
Copy link

stuaxo commented Dec 9, 2020

Here it is as PR #414

@kbirabwa
Copy link
Author

Thanks for the advice @stuaxo and @farax4de

I have Python3 installed, there are populated python2.7 and python3.6 directories in my /usr/lib directory. However pulseaudio-dlna --debug always picks the 2.7 version.
Both python installations are out of binary packages from my distro's repositories.
I have checked the --help output but did not notice instructions on how to tell pulseaudio-dlna to use a specific python installation. Could you advise me on how to do this please?

Regards,

Kizito

This is a screenshot showing the python3 installation:
python

@kbirabwa
Copy link
Author

Freinds,

Thank you for all the assistance/advice.

Now I have pulseaudio-dlna running with the Marantz M-CR611.

Apart from several system updates since my last post back in May, I have not run pulseaudio-dlna nor changed anything in it or python.

When I changed the link /usr/bin/python to point to python3 instead of python2, pulseaudio-dlna --debug would not run but it got this output: 2020-12-13-pulseaudio-dlna-debug-output.txt

In addition the change caused all of the other python programs to stop working and give a syntax error.
Changing the link back started the programs working again.

Running python3 pulseaudio-dlna --debug gave this result:
[muwawa@muwawa ~]$ python3 pulseaudio-dlna --debug python3: can't open file 'pulseaudio-dlna': [Errno 2] No such file or directory

I tried creating a link from the pulseaudio-dlna directory in the python2.7 tree into the equivalent place in the python3.6 tree.
This did not work.
After I removed that and simply ran pulseaudio-dlna, it started to work and the M-CR611 showed up in PulseAudio Volume
Control as well as in Clementine as an output option.
Here is the output from the successful running: 2020-12-13-python-linked-to-python2.txt

The system that it is running on is:
PCLinuxOS 2020
kernel 5.2.21-pclos1
Desktop - LXDE
Hardware - Laptop with a 4 core Intel(R) Celeron(R) CPU N3150
python 2.7.9
The installation appears to be python 2.7 specific:
pulseaudio-dlna-installation.txt

Regards,

Kizito

@farax4de
Copy link

The error says that no package pusleaudio-dlna is installed under your python3.
I don't know PCLinuxOS and didn't find a package list. See if there is a package pulseaudio-dlna for python3 and install it. The change of @stuaxo you have to do manually.

Alternatively you can download the files from the fork of @stuaxo (https://github.com/stuaxo/pulseaudio-dlna/tree/patch-1) and build the package yourself as described (https://github.com/masmu/pulseaudio-dlna#install-it-local). Attention, python3 should then be set as default.

Note: The directories of python2.x and 3.x should not be mixed.

@stuaxo
Copy link

stuaxo commented Dec 14, 2020

Note: The directories of python2.x and 3.x should not be mixed.

THIS ^^^

Too many python installations get broken like this. I would fix the symlink, then uninstall the version of pulseaudio-dlna that you added to python2.7.

The version installed in 3.7 should have installed a script in your PATH somewhere called pulseaudio-dlna.

@kbirabwa
Copy link
Author

kbirabwa commented Dec 30, 2020

@stuaxo Thanks for the steer.
Right now all three versions of pulseaudio-dlna run on this PCLinuxOS system.

  • The one that comes from the PCLinuxOS repository uses python 2.7. I have not changed anything in this installation.
    It runs as received from the repository.

  • The one that @stuaxo patched (thanks for the link @farax4de) also uses python 2.7, not python3 (according
    to the makefile and actual practice).
    I have run this as bin/pulseaudio-dlna from the package root directory.

  • The python3 branch one (thanks again for that link @farax4de ) works with the python 3.6 on my system.
    The package at that links needs patching. I had to replace the byto.py script with the one from @stuaxo, otherwise
    it would fail.
    I have run this too as bin/pulseaudio-dlna from the package root directory.

  • They all call the Marantz M-CR611 'None (DLNA)'.
    Before yesterday the correct name 'Marantz M-CR611' would come up (running the one from the distro repository).
    I left the machine alone for several hours with pulseaudio-dlna connected to the output of a music player (Clementine).
    Clementine had not been playing anything for the duration but it was being picked up and shown in the display of the
    Marantz. Firefox 84.0.1 was also open.
    When I returned the mouse and keys would not work and I had to turn the computer off at the power switch. Since then the
    Marantz M-CR611 gets called 'None (DLNA)'.

The version installed in 3.7 should have installed a script in your PATH somewhere called pulseaudio-dlna.

I think you meant '2.7'? Yes it did, at /usr/bin/pulseaudio-dlna

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