gramineproject / graphene

Graphene / Graphene-SGX - a library OS for Linux multi-process applications, with Intel SGX support
https://grapheneproject.io
GNU Lesser General Public License v3.0
771 stars 260 forks source link

ModuleNotFoundError: No module named 'graphenelibos' #2694

Open Renshy342 opened 3 years ago

Renshy342 commented 3 years ago

Description of the problem

I follow the "Quick start without SGX support" step by step. when I input "sudo make" in file "/graphene/LibOS/shim/test/regression/", I receive

Traceback (most recent call last): 
 File "/usr/local/bin/graphene-manifest", line 4, in <module> 
    from graphenelibos.manifest import main 
 ModuleNotFoundError: No module named 'graphenelibos' 
../../../../Scripts/manifest.mk:8: recipe for target 'argv_from_file.manifest' failed 
make: *** [argv_from_file.manifest] Error 1

I have no idea how to deal with the: "No module named 'graphenelibos'".

THANK YOU FOR ANY HELP!

dimakuv commented 3 years ago

This "Graphene" repo and the "Graphene" documentation web page are legacy and deprecated. We switched to the new name "Gramine". So, please use:

Renshy342 commented 3 years ago

This "Graphene" repo and the "Graphene" documentation web page are legacy and deprecated. We switched to the new name "Gramine". So, please use:

THANK YOU. I follow the guide(https://github.com/gramineproject/gramine). But when I input the "sudo meson setup build/ --buildtype=release -Ddirect=enabled -Dsgx=disabled", I received:

Program protoc-c found: NO

meson.build:39:0: ERROR: Program 'protoc-c' not found

A full log can be found at /home/ubuntu/gramine/build/meson-logs/meson-log.txt

I don't konw how to deal with the problem. THANK YOU FOR YOUR HELP!

dimakuv commented 3 years ago

Did you perform Step 4 in https://gramine.readthedocs.io/en/latest/quickstart.html#quick-start-with-sgx-support ?

It has this command: sudo apt-get install -y ... protobuf-c-compiler ... python3-protobuf ... -- it installs the Google Protobuf packages, which contain the program protoc-c.

dimakuv commented 3 years ago

@Renshy342 Also, I hope you have Ubuntu 18.04/20.04/21.04?

SoulKa commented 3 years ago

I had the same problem. For me it was that the PYTHONPATH environment variable was not set to where graphenelibos was installed for me. Use whereis graphenelibos to locate the directory and add that directory by using export PYTHONPATH=/my/path/to/graphenelibos/parent/directory. Check that it worked by typing echo $PYTHONPATH. After that I could use graphene