This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

importing Packages.com.ti.debug.engine.scripting from jython 2

Other Parts Discussed in Thread: CCSTUDIO

Hi,

I'm facing the same problem as describe in e2e.ti.com/.../203182

I'm using jython2.5.4rc1 (I also tried with jython2.7.0) with CCS6.2, and when I try to follow the exemple of the wiki in order to use jython with debugger it does't work processors.wiki.ti.com/.../Python_Scripting_with_DSS

(I've got all the "Prerequisites" and "Setting up the Environment" describes in the wiki "Python Scripting with DSS")

It seems not possible to import com.ti.debug.engine.scripting or com.ti.ccstudio.scripting.environment. Indeed the following lines:

- from com.ti.debug.engine.scripting import *

- from com.ti.ccstudio.scripting.environment import *

Return the Error:

- from com.ti.debug.engine.scripting import *
ImportError: No module named ti

- from om.ti.ccstudio.scripting.environment import *
ImportError: No module named ti

Do you have any solution for this problem?

Thanks

  • Hi Kevin,
    It sounds like your environment was not set up (CLASSPATH). Did you follow the steps in:
    processors.wiki.ti.com/.../Python_Scripting_with_DSS

    Thanks
    ki
  • Hi

    Thanks for your answer.

    I'm not sure to understand what you mean.

    i've got the following files as describe:
    <CCS BASE DIR>/DebugServer/packages/ti/dss/java/dss.jar
    <CCS BASE DIR>/DebugServer/packages/ti/dss/java/com.ti.ccstudio.scripting.environment_3.1.0.jar
    <CCS BASE DIR>/DebugServer/packages/ti/dss/java/com.ti.debug.engine_1.0.0.jar
    <CCS BASE DIR>/dvt/scripting/dvt_scripting.jar

    But what do you mean by set up (CLASSPATH)?
  • Kevin Selamme said:
    i've got the following files as describe:
    <CCS BASE DIR>/DebugServer/packages/ti/dss/java/dss.jar
    <CCS BASE DIR>/DebugServer/packages/ti/dss/java/com.ti.ccstudio.scripting.environment_3.1.0.jar
    <CCS BASE DIR>/DebugServer/packages/ti/dss/java/com.ti.debug.engine_1.0.0.jar
    <CCS BASE DIR>/dvt/scripting/dvt_scripting.jar

    But what do you mean by set up (CLASSPATH)?

    You need to add the above paths to your CLASSPATH

    How? Please read the below article:

    https://docs.oracle.com/javase/tutorial/essential/environment/paths.html

    I just use the 'set' command (on Windows) before I run the script. I have the command in a batch file that I run.

    Example:

    set CLASSPATH=%CLASSPATH%;C:/ti/ccs7.4.0.00015/ccsv7/ccs_base/DebugServer/packages/ti/dss/java/dss.jar;C:/ti/ccs7.4.0.00015/ccsv7/ccs_base/DebugServer/packages/ti/dss/java/com.ti.ccstudio.scripting.environment_3.1.0.jar;C:/ti/ccs7.4.0.00015/ccsv7/ccs_base/DebugServer/packages/ti/dss/java/com.ti.debug.engine_1.0.0.jar;ccs7.4.0.00015/ccsv7/ccs_base/dvt/scripting/dvt_scripting.jar

    (Note that I have CCS installed in (C:/ti/ccs7.4.0.00015)

    Thanks

    ki

  • Dam!

    It seems that it works now!

    Thanks ki.