Skip to content

Datamancer works not with nimscript #70

Open
@diegovskytl

Description

@diegovskytl

I tried to run the example code from Datamancer's documentation:

import datamancer

let s1: seq[int] = @[22, 54, 34]
let s2: seq[float] = @[1.87, 1.75, 1.78]
let s3: seq[string] = @["Mike", "Laura", "Sue"]

let dfAutoNamed = toDf(s1, s2, s3)

echo dfAutoNamed

As a compiled binary works great. Out of curiosity I tried to run it as a Nimscript but I get the following output:

command: nim datamancer_intro.nims

output:

Hint: used config file '/opt/homebrew/Cellar/nim/2.0.8/nim/config/nim.cfg' [Conf]
Hint: used config file '/opt/homebrew/Cellar/nim/2.0.8/nim/config/config.nims' [Conf]
/Users/nox/.nimble/pkgs2/nimblas-0.3.0-d5033749759fc7a2a316acf623635dcb6d69d32a/nimblas/private/common.nim(52, 7) Hint: Using BLAS library with name: libblas.dylib [User]
/Users/nox/.nimble/pkgs2/arraymancer-0.7.32-e1fa31ad09f0199e93c1bf9959e1f3af5bdacc08/arraymancer/tensor/init_cpu.nim(245, 18) template/generic instantiation of `randomTensorCpu` from here
/Users/nox/.nimble/pkgs2/arraymancer-0.7.32-e1fa31ad09f0199e93c1bf9959e1f3af5bdacc08/arraymancer/tensor/init_cpu.nim(218, 18) template/generic instantiation of `allocCpuStorage` from here
/Users/nox/.nimble/pkgs2/arraymancer-0.7.32-e1fa31ad09f0199e93c1bf9959e1f3af5bdacc08/arraymancer/laser/tensor/datatypes.nim(110, 29) template/generic instantiation of `finalizer` from here
/Users/nox/.nimble/pkgs2/arraymancer-0.7.32-e1fa31ad09f0199e93c1bf9959e1f3af5bdacc08/arraymancer/laser/tensor/datatypes.nim(77, 23) Error: attempting to call undeclared routine: 'deallocShared'

Is there a solution or workaround?

It would be nice for Datamancer to work in scripts so when REPL is available for Nim, a tool similar to R/Jupyter Notebooks could be built.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions