[BUG] QuAI package installer "unary operator expected"

QNAP now provides a groundbreaking AI computing platform based on QNAP NAS called QuAI (pronounced "Q A I" ) - QNAP's AI Developer Package.
Data Mining/Machine Learning/Deep Learning
Post Reply
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

[BUG] QuAI package installer "unary operator expected"

Post by OneCD »

My config:

Code: Select all

[~] # head -n6 /etc/config/uLinux.conf 
[System]
Model = TS-559
Internal Model = TS-559
Server comment = 
Version = 4.2.6
Build Number = 20180531
Just tried installing this package, but it failed:

Code: Select all

[/share/Public] # sh QuAI_0.9.1.60_x86_64.qpkg 
Install QNAP package on TS-NAS...
./
./built_info
./qinstall.sh
./package_routines
./qpkg.cfg
4713+1 records in
4713+1 records out
109633+1 records in
109633+1 records out
package_routines: line 152: [: ==: unary operator expected
Installation Abort.

Code: Select all

[/share/Public/qa] # head -n152 package_routines | tail -n3
_check_docker_install() {
    enable=$(/sbin/getcfg container-station Enable -f ${CONF})
    if ! [ $enable == "TRUE" ]; then
The error occurs as no default return value has been set when running 'getcfg', and Container Station is not installed (it's not supported on my NAS).

Suggest modifying this command to:

Code: Select all

    enable=$(/sbin/getcfg container-station Enable -f ${CONF} -d FALSE)
andersoncheng wrote:
@andersoncheng, you seem to know something about this package. Can you please forward this information to the package maintainer? ;)

Thank you.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
User avatar
andersoncheng
Getting the hang of things
Posts: 73
Joined: Mon Dec 25, 2017 10:48 am
Contact:

Re: [BUG] QuAI package installer "unary operator expected"

Post by andersoncheng »

!! Sure , let me check with team !
User avatar
andersoncheng
Getting the hang of things
Posts: 73
Joined: Mon Dec 25, 2017 10:48 am
Contact:

Re: [BUG] QuAI package installer "unary operator expected"

Post by andersoncheng »

QuAI qpkg need Container Station, so that you may install container station before install QuAI qpkg , the system will check the package dependency!
User avatar
OneCD
Guru
Posts: 12037
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: [BUG] QuAI package installer "unary operator expected"

Post by OneCD »

The problem is if Container Station is not installed, the QuAI installer crashes. The dependency check is faulty. ;)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
Post Reply

Return to “QuAI”