[PROBLEM] moode 9.0.1 moodeutl error - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [PROBLEM] moode 9.0.1 moodeutl error (/showthread.php?tid=6581) |
moode 9.0.1 moodeutl error - rawdlite - 06-09-2024 in moode 9.0.1 running moodeutl i get the error: Undefined constant "FEAT_RESERVED" in /usr/local/bin/moodeutl:35 Commenting line 35 solved the issue. Note: before i encountered this error i followed the instructions to setup a development environment as described here: https://github.com/moode-player/docs/blob/main/development_with_gulp.md#21-back-and-front-end-stuff Since this is a rather obvious error i assume this might be related. HTH tom RE: moode 9.0.1 moodeutl error - TheOldPresbyope - 06-09-2024 (06-09-2024, 03:31 PM)rawdlite Wrote: in moode 9.0.1 running moodeutl i get the error: You're going to have to give details about what you actually did. I copied the script from the end of that Developing with Gulp document to a file create_dev_env.sh on a Pi which has a copy of moOde 9.0.1. I edited the script to change those "\_" string separators to "_" so it would run in Linux. Ran the script. Ran moodeutl -l. Everything works as expected. Regards, Kent RE: moode 9.0.1 moodeutl error - rawdlite - 06-10-2024 (06-09-2024, 07:52 PM)TheOldPresbyope Wrote: You're going to have to give details about what you actually did. -Fresh install of moode 9.0.1 on a pi5 via Raspberry Pi Imager Followed Instructions as given at https://github.com/moode-player/docs/blob/main/development_with_gulp.md#21-back-and-front-end-stuff ~ $ cd ~ ~ $ sudo apt-get update ~ $ sudo apt-get -y install npm # git is also required (maybe extend documentation?) ~ $ git clone https://github.com/moode-player/moode.git ~ $ cd moode ~/moode $ npm ci ~/moode $ node_modules/.bin/gulp build ~/moode $ node_modules/.bin/gulp deploy --test ~/moode $ sudo mv /var/www /var/www.org ~/moode $ sudo node_modules/.bin/gulp deploy ~/moode $ moodeutl -r -> got error as described above Noticed in package.json Code: "name": "moOde", I checked out master. -> Same Version in package.json Should I edit the Version in package.json? (06-09-2024, 07:52 PM)TheOldPresbyope Wrote: I copied the script from the end of that Developing with Gulp document to a file create_dev_env.sh on a Pi which has a copy of moOde 9.0.1.So you ran the script from 7. Appendix in the documentation while I followed TL;DR Did you do a fork or a clone? What did you use as GIT_USER_NAME? Just did a fresh install and moodeutl is giving no error. then i run this script Code: #!/bin/bash PHP Fatal error: Uncaught Error: Undefined constant "FEAT_RESERVED" in /usr/local/bin/moodeutl:35 Stack trace: #0 {main} thrown in /usr/local/bin/moodeutl on line 35 So somewhere along this lines my moodeutl gets changed. I added this in the penultimate line in my script Code: sudo cp usr/local/bin/moodeutl /usr/local/bin/moodeutl And it runs without error. What about adding such a script to the distribution? RE: moode 9.0.1 moodeutl error - grumbleweed - 06-10-2024 or use build --force RE: moode 9.0.1 moodeutl error - TheOldPresbyope - 06-10-2024 @grumbleweed Ah, sorry, the penny finally dropped. Did you read the first line of the Gulp document? Quote:This document explains how to use the Gulp toolkit to automate building the moOde front-end. That was it's original intent AIUI. ETA - this front-end development can be done on any host, such as my Linux laptop, not just the Pi under test. It's only when one gets deep into the document that one finds Quote:5.4. Front-end and back-end development on the Raspberry Pi and the use of gulp deploy --force Regards, Kent |