Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

ModuleNotFoundError: No module named 'graphenelibos' #2694

Open
Renshy342 opened this issue Oct 19, 2021 · 5 comments
Open

ModuleNotFoundError: No module named 'graphenelibos' #2694

Renshy342 opened this issue Oct 19, 2021 · 5 comments

Comments

@Renshy342
Copy link

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
Copy link

dimakuv commented Oct 19, 2021

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

@Renshy342
Copy link
Author

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
Copy link

dimakuv commented Oct 19, 2021

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
Copy link

dimakuv commented Oct 19, 2021

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

@SoulKa
Copy link

SoulKa commented Nov 8, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants