-
Notifications
You must be signed in to change notification settings - Fork 261
PYTHONPATH lookup failure #244
Comments
Sorry for the late reply. Is this issue resolved? |
Yeah, I move local packages to the global directory. |
Hi @tarikova , I cannot import numpy, here is my output:
|
And I know you have already closed the issue, but one way to solve it is to add path using sys library.
|
Another method is to set manifest file. In order to load /home/umr/.local/lib/python2.7/site-packages suitably:
|
I'm facing similar issues while importing numpy. $ ./python.manifest.sgx -c "import numpy" none of the above ideas worked for me. can you share your manifest here. Thanks in advance. |
Hi,
This is my manifest to run NumPy in Graphene-SGX.
… On Mar 15, 2019, at 9:32 PM, kanakraju73 ***@***.***> wrote:
Hi @nyannko <https://github.com/nyannko> @tarikova <https://github.com/tarikova>
I'm facing similar issues while importing numpy.
$ ./python.manifest.sgx -c "import numpy"
Internal memory fault at 0x0 (IP = +0x1e5c6, VMID = 134455687, TID = 1)
^CIllegal instruction executed in enclave
can you share your manifest here. Thanks in advance.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#244 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AEn14--iQw-9y35CM-O5Q_RLZxZXsk0Uks5vW6D3gaJpZM4W7NWT>.
|
Hi @ihepburn , It seems like you forgot to attach manifest. Could you share it now? Thanks, |
@kanakraju73, You should remove the .txt suffix in attachments. The numpytest is a Python NumPy test script. |
Thanks for the prompt response. It's working for me. Thanks a ton. Kanak. |
Hi,
I was trying to import python application to graphene OS, and I met the following problem.
Without the modification of the
python.manifest.tamplate
, the default python import path is like,I don't know why this path is different with the local python path (without the local
directory
/home/umr/.local/lib/python2.7/site-packages
). So I added a line inpython.manifest.tample
,The local python path was loaded, but the third parties lib inside the local directory still cannot be imported. I also tried to execute
pip
to lookup modules, but the code throws an assert error,Does anyone know the solution? Thanks.
The text was updated successfully, but these errors were encountered: