gvegayon/parallel

`parallel initialize` (from master branch) fails, yielding an error about not finding `default_statapath()`

dirtyhawk opened this issue · 1 comments

Problem description

A fresh installation of parallel from the master branch doesn't seem to work, parallel initialize fails with a Mata error that the function default_statapath() is not found. Maybe there is something wrong with the precompilation of the Mata library?

There's also a posting on Statalist regarding the issue. The workaround is simple: Don't use the latest package from master, but the stable one from stable.

As this only affects the master branch, not stable (or releases), this may or may not be considered (un)desired behaviour. There is no need to resolve this with a very high priority, imho.

Steps to reproduce the problem

clear all
sysdir set PLUS "/tmp/Stata_PLUS" // <-- this is a new/empty/non-existent directory
net install parallel, from("https://raw.github.com/gvegayon/parallel/master/")
mata mata mlib index

parallel initialize 4

Output:

N Child processes: 4
 parallel_setstatapath():  3499  default_statapath() not found
                 <istmt>:     -  function returned error
r(3499);

System information

  • Stata version and flavor (e.g. v14 MP): v16.1 SE and MP
  • OS type and version (e.g. Windows 10): Windows Server 2008 R2, Ubuntu Linux
  • Parallel version: 1.20.1 (latest from master branch)

Thanks for reporting that. It should be fixed now in master branch.