Persistent issue installing the `fuzzy-logic-toolkit-0.4.5`

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Persistent issue installing the `fuzzy-logic-toolkit-0.4.5`

seamusdemora
My system is Linux Ubuntu 20.04, GNU Octave, version 5.2.0

I've tried this multiple times, in multiple ways, but the result is always
the same:

```
>> pkg list
no packages installed.
>> pkg install -forge fuzzy-logic-toolkit
parse error near line 165 of file
/home/seamus/octave/fuzzy-logic-toolkit-0.4.5/defuzz.m

  anonymous function bodies must be single expressions

>>>   y_val = @(y_val) if (y_val == max_y) 1 else 0 endif;
                        ^

error: called from
    doc_cache_create>create_cache at line 109 column 20
    gen_doc_cache_in_dir>@<anonymous> at line 143 column 16
    doc_cache_create>gen_doc_cache_in_dir at line 144 column 9
    doc_cache_create at line 55 column 12
    install>generate_lookfor_cache at line 802 column 5
    install at line 231 column 7
    pkg at line 441 column 9
>>
```

What is wrong, please? Any fixes on the horizon? Any suggestions on how to
resolve this so I can get on with my business? FWIW, never used Octave until
today. I installed it specifically to evaluate the fuzzy logic module... off
to a bad start :(  




--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html


Reply | Threaded
Open this post in threaded view
|

Re: Persistent issue installing the `fuzzy-logic-toolkit-0.4.5`

Andreas Weber-6
Am 13.02.21 um 00:24 schrieb seamusdemora:

> My system is Linux Ubuntu 20.04, GNU Octave, version 5.2.0
>
> I've tried this multiple times, in multiple ways, but the result is always
> the same:
> ...
>>> pkg install -forge fuzzy-logic-toolkit
> parse error near line 165 of file
> /home/seamus/octave/fuzzy-logic-toolkit-0.4.5/defuzz.m
>
>    anonymous function bodies must be single expressions
>
>>>>    y_val = @(y_val) if (y_val == max_y) 1 else 0 endif;

Looks like this was fixed in 2018 but never released:
https://sourceforge.net/p/octave/fuzzy-logic-toolkit/ci/00e05af94b3762d2e051ad28fb436da089160f40/

You can clone and build it yourself:
$ hg clone http://hg.code.sf.net/p/octave/fuzzy-logic-toolkit 
octave-fuzzy-logic-toolkit
$ make dist

in GNU Octave: "pkg install target/fuzzy-logic-toolkit-0.4.5.tar.gz"

-- Andy


Reply | Threaded
Open this post in threaded view
|

Re: Persistent issue installing the `fuzzy-logic-toolkit-0.4.5`

seamusdemora
This post was updated on .
Andreas,Thanks - I initially resisted installation of `mercurial` as it seems outmoded - and may be "on its way out". It also required installation of Python 2.7 as a dependency, and I didn't want the "pollution risk" for installing that on my system. After much back-and-forth discussion, I realized the maintainer was not going to do anything to address this old issue, and so I had only this for a choice. I followed a procedure very similar to the one you proposed <https://stackoverflow.com/a/62236998/5395338> , and so it seems I now have finally installed `fuzzy-logic-toolkit`.
Thanks for your time. -- Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html