# Node red and create dataset

**URL:** <https://discourse.nodered.org/t/node-red-and-create-dataset/78695>\
**Category:** General\
**Created:** [25 May 2023 23:20 UTC](https://discourse.nodered.org/t/node-red-and-create-dataset/78695 "2023-05-25T23:20:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simox](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@Simox](https://discourse.nodered.org/u/Simox)\
**Post date:** [25 May 2023 23:20 UTC](https://discourse.nodered.org/t/node-red-and-create-dataset/78695/1 "2023-05-25T23:20:56Z")

</div>

I want to create a dataset to use as input for a Machine Learning classifier from a CSV file.

Here is the format of the file.

630,33,52,1  
460,31,50,0  
230,33,48,0  
140,28,62,0

Here is the error message that appears.

msg : error

"TypeError: The "options" argument must be of type object. Received an instance of Array"

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 May 2023 05:58 UTC](https://discourse.nodered.org/t/node-red-and-create-dataset/78695/2 "2023-05-26T05:58:17Z")

</div>

Welcome to the forum @Simox

Show us how you are trying to achieve that and tell us which node is generating the error. You only need to show us up to the node generating the error.

---

<div class="post-metadata">

**Author:** ![Simox](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@Simox](https://discourse.nodered.org/u/Simox)\
**Post date:** [26 May 2023 08:34 UTC](https://discourse.nodered.org/t/node-red-and-create-dataset/78695/3 "2023-05-26T08:34:52Z")

</div>

Import create dataset node

 ![1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/6/b6a8473cc103f58463792e190c8a3730b35c2c34.png)

config

 ![3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/b/bb1a6a3b0e396e6efc11a825b0ae0142734e73da.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 May 2023 09:18 UTC](https://discourse.nodered.org/t/node-red-and-create-dataset/78695/4 "2023-05-26T09:18:41Z")

</div>

Is that the node from [https://flows.nodered.org/node/node-red-contrib-machine-learning](https://flows.nodered.org/node/node-red-contrib-machine-learning)? Whenever you are using a non-standard node please tell us what you are using.  
Have you installed all the requirements mentioned in the link above?  
Otherwise I don't think I can help as I know nothing about those nodes. If no-one else responds here you may need to ask on the nodes github page (linked from the page linked). Read through all the issues there first though, in case it is a known problem.

---

<div class="post-metadata">

**Author:** ![Simox](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@Simox](https://discourse.nodered.org/u/Simox)\
**Post date:** [26 May 2023 09:22 UTC](https://discourse.nodered.org/t/node-red-and-create-dataset/78695/5 "2023-05-26T09:22:12Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![Simox](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@Simox](https://discourse.nodered.org/u/Simox)\
**Post date:** [26 May 2023 10:08 UTC](https://discourse.nodered.org/t/node-red-and-create-dataset/78695/6 "2023-05-26T10:08:59Z")

</div>

is working

solution:

the file utils.js "node.proc = spawn(pcmd, [node.file], ['pipe', 'pipe','pipe'])" should change to "node.proc = spawn(pcmd, [node.file], {stdio:['pipe', 'pipe','pipe']})"

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 May 2023 10:23 UTC](https://discourse.nodered.org/t/node-red-and-create-dataset/78695/7 "2023-05-26T10:23:14Z")

</div>

Please feed that back to an issue on the github page so others can make use of it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 July 2023 10:23 UTC](https://discourse.nodered.org/t/node-red-and-create-dataset/78695/8 "2023-07-25T10:23:49Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
