s&p-500-regression -> java.lang.NullPointerException

werbungsbunker
werbungsbunker New Altair Community Member
edited November 5 in Community Q&A

I ran the s&p-500-regression example without modification and I got

Oct 27, 2017 1:56:12 PM INFO: No filename given for result file, using stdout for logging results!
Oct 27, 2017 1:56:12 PM INFO: Process //Keras Samples/sp_500_regression/s&p-500-regression starts
Oct 27, 2017 1:56:12 PM SEVERE: Process failed: operator cannot be executed. Check the log messages...
Oct 27, 2017 1:56:12 PM SEVERE: Here:
Oct 27, 2017 1:56:12 PM SEVERE: Process[1] (Process)
Oct 27, 2017 1:56:12 PM SEVERE: subprocess 'Main Process'
Oct 27, 2017 1:56:12 PM SEVERE: +- Retrieve s&p-500-data[1] (Retrieve)
Oct 27, 2017 1:56:12 PM SEVERE: +- Select Attributes[1] (Select Attributes)
Oct 27, 2017 1:56:12 PM SEVERE: +- Normalize[1] (Normalize)
Oct 27, 2017 1:56:12 PM SEVERE: +- Windowing[1] (Windowing)
Oct 27, 2017 1:56:12 PM SEVERE: +- Set Role[1] (Set Role)
Oct 27, 2017 1:56:12 PM SEVERE: +- Split Data[1] (Split Data)
Oct 27, 2017 1:56:12 PM SEVERE: +- Keras Model[1] (Keras Model)
Oct 27, 2017 1:56:12 PM SEVERE: subprocess 'Executed Process'
Oct 27, 2017 1:56:12 PM SEVERE: | +- Add Convolutional Layer[1] (Add Convolutional Layer)
Oct 27, 2017 1:56:12 PM SEVERE: | +- Add Pooling Layer[1] (Add Pooling Layer)
Oct 27, 2017 1:56:12 PM SEVERE: | +- Add Convolutional Layer (2)[1] (Add Convolutional Layer)
Oct 27, 2017 1:56:12 PM SEVERE: | +- Add Pooling Layer (2)[1] (Add Pooling Layer)
Oct 27, 2017 1:56:12 PM SEVERE: | +- Add Core Layer[1] (Add Core Layer)
Oct 27, 2017 1:56:12 PM SEVERE: | +- Add Core Layer (2)[1] (Add Core Layer)
Oct 27, 2017 1:56:12 PM SEVERE: | +- Add Core Layer (3)[1] (Add Core Layer)
Oct 27, 2017 1:56:12 PM SEVERE: ==> | +- Add Core Layer (4)[1] (Add Core Layer)
Oct 27, 2017 1:56:12 PM SEVERE: +- Apply Keras Model[0] (Apply Keras Model)
Oct 27, 2017 1:56:12 PM SEVERE: java.lang.NullPointerException

 

Answers

  • Thomas_Ott
    Thomas_Ott New Altair Community Member

    Make sure both your Python and Keras perferences point to the new Python35 environment.

  • werbungsbunker
    werbungsbunker New Altair Community Member
    Make sure both your Python and Keras perferences point to the new Python35 environment.

    How?

  • sgenzer
    sgenzer
    Altair Employee

    hello @werbungsbunker - welcome to the community.  You will find that in Preferences.

     

    Scott

  • werbungsbunker
    werbungsbunker New Altair Community Member

    It points to "E:\Anaconda\python.exe" now, but I still get the error message. I installed keras and tensorflow-gpu using conda and running a python shell and importing keras works. So what else causes this error?

  • sgenzer
    sgenzer
    Altair Employee

    hmm - I will kindly ask my Windows experts to chime in :)  @Thomas_Ott ?

  • Thomas_Ott
    Thomas_Ott New Altair Community Member

    Did you create a specific Tensorflow environment like what the KB said to do? If yes, and both the Python perference and Keras perference point to E:\Anaconda\<environment name>\python.exe and you get the same error then it's something else. 

  • rainforest02
    rainforest02 New Altair Community Member
    i have same problem too...i already set to specific tensorflow enviroment like KB said but still got the error  :(