Problem with Pianoteq

After purchasing the Bosendorfer on the Pianoteq website, I tried to activate it.

However, today the Pianoteq website was experiencing a very slow performance, and for some reason my license appeared as invalid.

I decided to restart Zynthian and now ZynUI won’t start.

I investigated using the command line and the output of “journalctl -xe” looks like this:

Oct 03 22:50:29 zynthian-jere startx[4158]:   File "./zynthian_main.py", line 35, in <module>
Oct 03 22:50:29 zynthian-jere startx[4158]:     from zyngui.zynthian_gui import zynthian_gui
Oct 03 22:50:29 zynthian-jere startx[4158]:   File "/home/pi/zynthian-ui/zyngui/zynthian_gui.py", line 66, in <module>
Oct 03 22:50:29 zynthian-jere startx[4158]:     from zyngui.zynthian_gui_engine import zynthian_gui_engine
Oct 03 22:50:29 zynthian-jere startx[4158]:   File "/home/pi/zynthian-ui/zyngui/zynthian_gui_engine.py", line 49, in <module>
Oct 03 22:50:29 zynthian-jere startx[4158]:     class zynthian_gui_engine(zynthian_gui_selector):
Oct 03 22:50:29 zynthian-jere startx[4158]:   File "/home/pi/zynthian-ui/zyngui/zynthian_gui_engine.py", line 45, in initializator
Oct 03 22:50:29 zynthian-jere startx[4158]:     cls.init_engine_info()
Oct 03 22:50:29 zynthian-jere startx[4158]:   File "/home/pi/zynthian-ui/zyngui/zynthian_gui_engine.py", line 74, in init_engine_info
Oct 03 22:50:29 zynthian-jere startx[4158]:     pt_info = get_pianoteq_binary_info()
Oct 03 22:50:29 zynthian-jere startx[4158]:   File "/home/pi/zynthian-ui/zyngine/zynthian_engine_pianoteq.py", line 217, in get_pianoteq_binary_info
Oct 03 22:50:29 zynthian-jere startx[4158]:     lkey = get_pianoteq_config_value('LKey')
Oct 03 22:50:29 zynthian-jere startx[4158]:   File "/home/pi/zynthian-ui/zyngine/zynthian_engine_pianoteq.py", line 232, in get_pianoteq_config_value
Oct 03 22:50:29 zynthian-jere startx[4158]:     values = xml_value.attrib['val'].split(';')
Oct 03 22:50:29 zynthian-jere startx[4158]: KeyError: 'val'

I edited the “zynthian_gui_engine.py” file and commented out line 74 onwards (in the part related to pianoteq) and the interface started up again normally.

As soon as the Pianoteq website started responding a little better (although still quite slow), I ran the command:

/home/pi/zynthian-sw/pianoteq6/pianoteq --activate MY-SERIAL-NUMBER

And after 4 attempts, it activated the license correctly on the command line.

I uncommented the lines in the “zynthian_gui_engine.py” file but the error came back and ZynUI stopped starting.

Hi All,
I did the following 4 times (not all exactly identical…)… just to be sure…

I started-up an new image (think the one from 02-10-2024) and defined my audio and such… started up… all OK :slight_smile:-)
I uploaded the 8.3.2 pianoteq image rebooted and back in the webconf screen I filled in my serial number… saved and… “500: Internal Server Error”
The webconf pages are accessible but not the pianoteq page…
Reboot…
Software error… no access to webconf anymore…

Oct 04 17:57:51 zynthian systemd[1]: zynthian-webconf.service: Main process exited, code=exited, status=1/FAILURE
Oct 04 17:57:51 zynthian systemd[1]: zynthian-webconf.service: Failed with result ‘exit-code’.
Oct 04 17:57:51 zynthian systemd[1]: zynthian-webconf.service: Consumed 1.030s CPU time.
Oct 04 17:57:52 zynthian startx[6627]: ZynCore: Configured 8 x Logical Zynswitches…
Oct 04 17:57:52 zynthian startx[6627]: ZynCore: Setting-up 0 x Physical Zynswitches…
Oct 04 17:57:52 zynthian startx[6627]: ZynCore: Setting-up 0 x Zynpots (zyncoders)…
Oct 04 17:57:52 zynthian startx[6627]: Started libzynaudioplayer using libsndfile-1.2.0
Oct 04 17:57:52 zynthian startx[6627]: Traceback (most recent call last):
Oct 04 17:57:52 zynthian startx[6627]: File “/zynthian/zynthian-ui/./zynthian_main.py”, line 36, in
Oct 04 17:57:52 zynthian startx[6627]: from zyngui.zynthian_gui import zynthian_gui
Oct 04 17:57:52 zynthian startx[6627]: File “/zynthian/zynthian-ui/zyngui/zynthian_gui.py”, line 47, in
Oct 04 17:57:52 zynthian startx[6627]: from zyngine import zynthian_state_manager
Oct 04 17:57:52 zynthian startx[6627]: File “/zynthian/zynthian-ui/zyngine/zynthian_state_manager.py”, line 49, in
*Oct 04 17:57:52 zynthian startx[6627]: from zyngine.zynthian_chain_manager import **
Oct 04 17:57:52 zynthian startx[6627]: File “/zynthian/zynthian-ui/zyngine/zynthian_chain_manager.py”, line 1544, in
Oct 04 17:57:52 zynthian startx[6627]: zynthian_chain_manager.get_engine_info()
Oct 04 17:57:52 zynthian startx[6627]: File “/zynthian/zynthian-ui/zyngine/zynthian_chain_manager.py”, line 146, in get_engine_info
Oct 04 17:57:52 zynthian startx[6627]: pt_info = get_pianoteq_binary_info()
Oct 04 17:57:52 zynthian startx[6627]: ^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 04 17:57:52 zynthian startx[6627]: File “/zynthian/zynthian-ui/zyngine/zynthian_engine_pianoteq.py”, line 219, in get_pianoteq_binary_info
Oct 04 17:57:52 zynthian startx[6627]: lkey = get_pianoteq_config_value(‘LKey’)
Oct 04 17:57:52 zynthian startx[6627]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oct 04 17:57:52 zynthian startx[6627]: File “/zynthian/zynthian-ui/zyngine/zynthian_engine_pianoteq.py”, line 234, in get_pianoteq_config_value
Oct 04 17:57:52 zynthian startx[6627]: values = xml_value.attrib[‘val’].split(‘;’)
Oct 04 17:57:52 zynthian startx[6627]: ~~~~~~~~~~~~~~~~^^^^^^^
Oct 04 17:57:52 zynthian startx[6627]: KeyError: ‘val’
Oct 04 17:57:52 zynthian startx[6627]: libzynaudioplayer exiting… done!
*Oct 04 17:57:52 zynthian startx[1025]: ********************
Oct 04 17:57:52 zynthian startx[1025]: EXIT STATUS => 1
*Oct 04 17:57:52 zynthian startx[1025]: ********************
Oct 04 17:57:53 zynthian kernel: retire_capture_urb: 12 callbacks suppressed
Oct 04 17:57:53 zynthian startx[6649]: /zynthian/config/img/fb_zynthian_message.jpg is a 800x480 JPEG image, color space YCbCr, 3 comps, Huffman coding.
Oct 04 17:57:53 zynthian startx[6649]: Zooming image by 100%…done
Oct 04 17:57:53 zynthian startx[6649]: Merging…done
Oct 04 17:57:53 zynthian startx[6649]: Building XImage…done

Help!

Maarten

With pianoteq 8.3.1 the same issue… after activaing license… Webconf not accessible anymore… Zynthian unusable. :sob:

Cheers,
Maarten

I repeated all on a different PI5…

Installed pianoteq 8.3.2, rebooted and filled in serial key in webconf… result:

Activation Failed
An error occurred during the activation:

Warning* : Undefined array key “f” in /home/pianoteq/www/corporate_v34/php/vendor/modartt/essentials/src/Activation.php on line *535

Deprecated* : preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/pianoteq/www/corporate_v34/php/vendor/modartt/essentials/src/Activation.php on line *535

Your copy has already been activated on 3 hardware configurations. Visit the user area (Modartt: Sign in) if you want to deactivate an old hardware, or contact us at Modartt: Support

Hi @maartmaart !

Have you read this?

Your copy has already been activated on 3 hardware configurations. Visit the user area (Modartt: Sign in) if you want to deactivate an old hardware, or contact us at Modartt: Support

Regards,

1 Like

Hi @Jofemodo,

Thanks, quick as ever :slight_smile:

I saw it, I shouldn’t have sent this message… must have happened in the sequence of events…
I tried everything. I started with installing pianoteq on the device that was registered by Modartt, thinking that that should work.
And from then on I lost track of all I did, but finally used a different PI5…

I will try monday again and perhaps contact Modartt.

Enjoy your weekend,

Maarten

I finally succeeded on the initial PI5… no clue what went wrong before… (except the re-activation on the second PI5 forgetting that already 3 devices where registered)

Cheers,
Maarten

2 Likes

Hello

My problem persists, I haven’t seen any suggested solutions to the problem I’m facing.

I don’t understand why my topic was marked as resolved.

@jofemodo ?

I was confused because @maartmaart solved his issue, but now i see he wasn’t who opened the thread.

Regarding your issue, @Jeremias, we can’t reproduce. I’ve installed Pianoteq licensed without issues. I think @riban also tried successfully. We would need extra info to reproduce/solve your issue.

Of course, you modified the source code, run the pianoteq by hand to install your license and then removed the modifications. This is not the expected workflow and we are not going to work in this “workflow-fork” for a single user.

You should try reproducing in a clean install.

Thanks!

1 Like

Thank you for the quick response @jofemodo

First of all, I must admit that I don’t know what information I should collect to continue the diagnosis.

But as I described in the beginning of the topic, when I disable Pianoteq in the file “zynthian_gui_engine.py”, Zynthian runs correctly. But if I leave the file uncommented in the Pianoteq section, Zynthian doesn’t start, and even the WEB interface crashes.

I honestly don’t know what else to try. I don’t know if it would be possible to reinstall Pianoteq via the CLI…

Try installing from scratch and switch to vangelis branch before installing Pianoteq.
And please, capture the logs for all process in the clean install.

Regards,

1 Like

Hello @jofemodo

Is there any way I can just reinstall Pianoteq and fix my problem without reinstalling Zynthian from scratch?
I have a significant amount of samples, snapshots and custom settings on my Zynthian Box and I don’t know what strategy to use to avoid losing all of them.

Try running this command:

$ZYNTHIAN_RECIPE_DIR/install_pianoteq_demo.sh

Regards

Well you could always leave a cross-section in use here…