You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by hoshinoko <no...@github.com> on 2020/07/20 02:16:08 UTC

[apache/incubator-teaclave] How to debug Python scripts (#393)

Hello! I want to use teaclave to build some machine learning algorithms, but when debugging the program, I find that the error message is not clear. I think the problem lies in that I use numpy to run the program locally, while teaclave uses the library in mesapy to run it, which may be due to version inconsistency. Can you give me some advice? Should I look at the source code of the supported libraries in the mesapy library to rewrite my Python program, or should I learn rust and use it to write machine learning algorithms.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/393

Re: [apache/incubator-teaclave] How to debug Python scripts (#393)

Posted by Mingshen Sun <no...@github.com>.
Hi, thanks for asking. This is one of our limitation for the MesaPy executor. One way to debug Python scripts is to directly use the standalone MesaPy for SGX. For instance, you can use the exec example (https://github.com/mesalock-linux/mesapy/tree/sgx/sgx/examples/exec) to develop the Python script first and then run in the Teaclave framework.

For your case, I think this is because you are using numpy, while the MesaPy executor does not support numpy and many other third-party libraries currently.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/393#issuecomment-669573976

Re: [apache/incubator-teaclave] How to debug Python scripts (#393)

Posted by wenky <no...@github.com.INVALID>.
> Hi, thanks for asking. This is one of our limitation for the MesaPy executor. One way to debug Python scripts is to directly use the standalone MesaPy for SGX. For instance, you can use the exec example (https://github.com/mesalock-linux/mesapy/tree/sgx/sgx/examples/exec) to develop the Python script first and then run in the Teaclave framework.
> 
> For your case, I think this is because you are using numpy, while the MesaPy executor does not support numpy and many other third-party libraries currently.

@mssun  hi mssun,about this example https://github.com/mesalock-linux/mesapy/tree/sgx/sgx/examples/exec , I have a question.   
I want to disable print buffer, make SGX_PRERELEASE=1 SGX_DEBUG=0, and then exec ./app  
but app.py  still prints some buffer, I think app.py is performed inside enclave,   `print(argv)
    print("Hello, World!") `  should not execute successfully. So Can you explain why? Maybe I misunderstood. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/393#issuecomment-999489375
You are receiving this because you are subscribed to this thread.

Message ID: <ap...@github.com>

Re: [apache/incubator-teaclave] How to debug Python scripts (#393)

Posted by master-davidlee <no...@github.com.INVALID>.
Hi, I want to make a delegate machine learning with TEE. How can I load the ML model files and run it within Teaclave? 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave/issues/393#issuecomment-761820236