bugGNU Octave - Bugs: bug #56986, statistics not loading automaticly


bug #56986: statistics not loading automaticly

Submitted by:  None
Submitted on:  Thu 03 Oct 2019 09:22:26 AM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Invalid Assigned to:  None
Originator Name:  chris Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.4.1
Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 15 Nov 2019 07:20:35 PM UTC, comment #5: 

Octave 4.4.1 does not include the function file binopdf.m. So either Moodle is using an older version (4.2 or older) that includes an older version of binopdf.m, or that function file has been dropped into Octave's load path for some reason.

Mike Miller <mtmiller>
Project Administrator
Fri 15 Nov 2019 05:45:20 PM UTC, comment #4: 

It was indeed about how Moodle calls octave - they do use the --norc option.

After this was solved, the following warning appeared when starting octave:

function /usr/share/octave/packages/statistics-1.4.0/distributions/binopdf.m shadows a core library function

I have, for now, renamed the binopdf.m in the statistics package to avoid the conflict.

Is there any reason to use one over the other?

Rea Su <reasu>
Wed 09 Oct 2019 06:05:26 PM UTC, comment #3: 

It's very likely that this problem arises because of the way that Moodle calls Octave. Octave alone definitely reads startup files correctly and allows the user to load packages automatically if so configured, this is all known to be working correctly. Your best option may be to work with the Moodle developers or whoever maintains the Moodle plugin to call Octave to determine how Octave is started and how you can use it with startup scripts. If they are intentionally calling Octave with the '--norc' option, then startup files are ignored. It is then probably up to you to work that out with the Moodle folks.

Mike Miller <mtmiller>
Project Administrator
Wed 09 Oct 2019 09:04:02 AM UTC, comment #2: 


Sorry but that doesn't work. Looks like statistics doesn't load if Moodle wants to use a function from the statistics package.

warning: the 'anova' function belongs to the statistics package from Octave Forge
which you have installed but not loaded.  To load the package, run 'pkg
load statistics' from the Octave prompt.

Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
error: 'anova' undefined near line 4 column 32
error: called from
    __tester__.octave at line 4 column 2

Thanks for your help!

Best regards

Christoph Roehrs <heatzeeker>
Thu 03 Oct 2019 11:26:10 AM UTC, comment #1: 

If you want the modification to take effect for all users, which I assume from your post, you can put a "startup.m" file in PREFIX/share/octave/4.4.1/site/m/startup.m and add "pkg load statistics" in that script. This way the statistics package will be loaded at startup.

Since you are not reporting a bug (you seem to be aware that packages are intentionally not loaded automatically) I'll close this report as invalid. Note that this kind of questions would fit better as a help request on the help mailing list.

Pantxo Diribarne <pantxo>
Project Member
Thu 03 Oct 2019 09:22:26 AM UTC, original submission:  


I'm not shure if this is a bug or just me but I'm useing the Jobe coderunner, octave and octave-statistics with Moodle.
Moodle is trying to find/use the binopdf.m funktion on the coderunner but it won't load automaticly, even if I configured it in the /etc/octave.conf file to load automaticly.

The only way for me now is to copy the binopdf.m file from octave-statistics to the octave general directory (/usr/share/octave/4.4.1/m/general), but I'm not sure if binopdf.m is working correctly and I will have troubles with updates, leting it run like this.

Is there any other way to fix my problem?

best regards,



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by reasu (Posted a comment)
  • -email is unavailable- added by heatzeeker (Posted a comment)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-10-03 pantxo StatusNone => Invalid
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.6