Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

License error

Help
six
2009-03-04
2013-05-14
  • six
    six
    2009-03-04

    Hi, I am trying to run a python script from java. This python script imports a library that allows me to script the running of a program without using the GUI, so my script runs the program, and returns the results. This runs fine if I run the script standalone, but if I try to call it from java I get a licensing error, the program is not seen to be licensed for some reason. Of course the program is fully licensed, using a hardware license. What is changing when I go from running the standalone script to running via java? 

    Thanks

     
    • Mike Johnson
      Mike Johnson
      2009-03-05

      Well, Java provides it's own versions of some C library functions but I'm not sure that's it. Most likely that script is hitting some kind of error and it's only error message for any condition is "not licensed."

      Another possibility on Windows is a mismatch between C runtime versions. Mixing versions leads to unpredictable results, and many times it's difficult to resolve since so many programs bundle their own.

       
    • six
      six
      2009-03-07

      Thanks for the reply.
      I am also getting this message along with the licensing error,

      jep.JepException: <type 'exceptions.AttributeError'>: 'NoneType' object has no a
      ttribute 'GetAnalysis'
              at jep.Jep.run(Native Method)
              at jep.Jep.runScript(Jep.java:191)
              at jep.Jep.runScript(Jep.java:167)
              at JeppTest.main(JeppTest.java:7)

      does this shed any light on the problem?

      I am quite inexperienced with this so im not sure where to go with trying to fix this.

      Thanks for your time.