-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hole2 analysis should pipe bash error messages #28
Comments
Hi @prateekbansal97, this looks like a permissions error. Could you check that you have permission to execute |
Output for
So, it runs from the terminal. I thought that it was a permissions issue too, but the executable has all the permissions and it runs from the terminal. |
It might not be a real permission error but |
Thanks for the comment. I realized that the system I was using has a large number of triangles to be rendered, causing sos_triangle to fail with the error 'ERROR: Maximum number of polygons exceeded!'. This happened when I did the rendering manually for each separate frame (pdb) using hole directly, than MDAnalysis. I guess this is a shortcoming of hole. I'm not completely sure, but my best guess would be that something similar is happening when I try to render the hole in an entire trajectory (instead of separate pdbs) using MDAnalysis. But since any failed execution in sos_triangle maps to 'sos_triangle_failed', it gives out the aforementioned error making it hard to interpret. I tried changing the dot_density parameter (reduced it to 10 instead of 15), reducing the number of triangles to be rendered, and successfully got the output file. Thank you everyone for your time and inputs. |
Thanks for coming back and letting us know the issue, @prateekbansal97. I think this speaks to an overall issue of MDAnalysis not piping the original error message through, though -- would you mind if I change the issue title to that? |
Sure, go ahead! |
Expected behavior
create_vmd_surface works and outputs hole.vmd
Actual behavior
Hello, I have been trying to create a vmd_surface for my membrane protein using a trajectory. I define the universe, create and run the hole2.holeanalysis() object. It runs and successfully outputs .out and .sph files. The next step I do is to create_vmd_surface, which fails, with the following error:
Traceback (most recent call last):
File "mdanalysis_trial.py", line 14, in
ha.create_vmd_surface()
File "~/anaconda3/lib/python3.8/site-packages/MDAnalysis/analysis/hole2/hole.py", line 800, in create_vmd_surface
tmp_tri = create_vmd_surface(sphpdb=sphpdb,
File "~/anaconda3/lib/python3.8/site-packages/MDAnalysis/analysis/hole2/utils.py", line 558, in create_vmd_surface
six.raise_from(OSError(err.returncode, "sos_triangle failed"), None)
File "<string>", line 3, in raise_from
PermissionError: [Errno 1] sos_triangle failed
Code to reproduce the behavior
I thought it might be a path length error (since HOLE has a limitation on the path length. But I tried the same run with moving all files to a directory inside the home directory (i.e. Shortening the path string size), but to no avail.
The
hole
,sos_triangle
andsph_process
executables are all present in the~/hole2/exe/hole
directory.Any help would be appreciated. Thank you!
Current version of MDAnalysis
1.1.1
3.8.10
Linux CentOS 6.6
The text was updated successfully, but these errors were encountered: