-
Notifications
You must be signed in to change notification settings - Fork 261
IOError: [Errno 13] Permission denied when run python include pandas #709
Comments
Issue 2 is definitely benign. I think 3 is your culprit, and 1 may be related. I wonder how python implements _syscmd_uname. If it forks and runs /bin/uname, and that is not an allowed file in your manifest, that is probably the issue. You can probably figure this out by stracing the original. If this is the case, this is also a situation where our error messages could be better.. |
@matthewshine Can you attach your manifest file? |
Here is the implementation of def _syscmd_uname(option,default=''):
...
try:
f = os.popen('uname %s 2> %s' % (option, DEV_NULL))
except (AttributeError,os.error):
return default
output = string.strip(f.read())
... So as Don speculated, it runs |
@dimakuv thanks for your time I just added the /bin/uname to the manifest.template and regenerated the mainifestfile
|
@donporter @dimakuv
after I changed print dataframe to normal string. I finished finally
After this I tried other lib but found not even can import sklearn like this
when i run it joblog without inline
joblog with inlinemainfest file
|
I suspect the issue here is that it is forking a child that runs sh, and there isn't a manifest for sh. I would have thought the correct behavior would be to inherit the rules from the python manifest. The closest thing to a curated python environment we have at the moment is what is built in for unit tests, but these are good issues for us to try to debug. |
Thanks Don and your greate work. |
Hi Matthew, So I looked into your issue. The package My system: Ubuntu 16.04, Python 2.7. Installed pandas/numpy and sklearn using My toy python script:
The manifest is very similar to the latest one you attached here. I attach mine. The main changes I made are more trusted libraries:
Note that these lines in the manifest are important (you actually already have them in your manifest):
Now I run
So I got a couple warnings (one about libm.so which makes sense because of my dirty hack; others from Python but seem to be non-fatal), but my Python script ran to completion without errors. |
Hm, I cannot attach files here. Ok, here is my
This manifest can be cleaned up a bit, but I didn't care. Works for me. |
The issue seems out-of-date, closing. |
The source code is quite simple(pandas),it can be performed when be running with out SGX;
when I run the python code above,error message is like this:
In summary there are 3 types of err msg:
I am not sure which is the reason that lead to the interrupt. can you give me some direction ?
Here is some addtional infomation. I have performed another python using numpy lib successfully. Both pgms are simple use one lib of pandas and numpy.But the pandas one could go well.
#267
The text was updated successfully, but these errors were encountered: