Sat Aug 15, 2020 6:55 am
Login Register Lost Password? Contact Us


pyembed: No module named 'numpy'

Comments and questions related to the Enterprise Control Language

Tue Jun 09, 2020 8:33 pm Change Time Zone

I am trying tutorials for GNN bundle, under that I tried to create a tensorData as per the below tutorial: https://hpccsystems.com/blog/gnn-bundle

I am not using the EMBEDED(Python) feature right now, just trying to execute the following code:
Code: Select all
IMPORT GNN.Tensor;

tensData1 := DATASET([{[1,2], 1},
                         {[2,1], 2},
                         {[2,2], 3}],
                         Tensor.R4.TensData);

myTensor := Tensor.R4.MakeTensor([2,2], tensData1);

tensData2 := Tensor.R4.GetData(myTensor);

tensData2;


But getting the following error:
<Result>
<Exception><Source>eclagent</Source><Message>System error: 0: Graph graph1[14], externalprocess[18]: SLAVE #1 [10.0.2.6:20100]: pyembed: No module named &apos;numpy&apos;, - caused by (0, pyembed: No module named &apos;numpy&apos;)</Message></Exception>
</Result>


Am I missing something on my cluster?
Gurman
 
Posts: 6
Joined: Thu May 21, 2020 4:05 pm

Wed Jun 10, 2020 12:48 pm Change Time Zone

Hi Gurman,
It's possible that the Tensor MODULE makes use of the Python embeds, so you need to have Python3 installed on your target cluster.

Your HPCC Systems administrator with administrator’s rights can install Tensorflow and Python3, or do it yourself on a HPCC VM as shown here:

1. On Ubuntu, first refresh the APT (Advanced Package Tool) repository:
Code: Select all
sudo apt update

2. Install Python3 if not already installed:
Code: Select all
sudo apt install python3

3. Install pip3 (Python3 package installer) – this will take a few minutes
Code: Select all
sudo apt install python3-pip

4. Install tensorflow for all users.  This is the recommended approach, since it needs to be available to the hpcc user as well as the current user.  The –H sudo option is necessary in order to have it installed globally:
Code: Select all
sudo –H pip3 install tensorflow


Finally, the setuptest.ecl file found in the Test directory of the GNN bundle will verify that Python3 and Tensorflow are correctly installed on each Thor node.

Regards,

Bob
bforeman
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 1002
Joined: Wed Jun 29, 2011 7:13 pm


Return to ECL

Who is online

Users browsing this forum: No registered users and 1 guest

cron