-
Notifications
You must be signed in to change notification settings - Fork 97
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
Basic install not working on Linux #171
Comments
Are you sshing into the linux system from a Mac? |
Yes ssh -Y -C |
This is a tricky issue that I don't fully understand, but I believe that it has to do with a limitation in XQuartz for displaying opengl graphics. It used to not be possible, and may or may not be possible in the latest version of XQuartz if you set some OSX defaults (I have not ever gotten it to work, but I think it is now claimed to). I will try to track down what I read to come about this understanding last fall, but if that helps get you started please do some research and share what you find. |
I only found out that the latest XQuartz is supposed to support OpenGL graphics. I looked at my preferences, but I did not see anything relevant. |
I think you need to set this parameter and probably restart your mac: http://www.hoffman2.idre.ucla.edu/access/x11_forwarding/#Notes_for_XQuartz_users |
In [1]: from surfer import Brain I still get that error, but the window comes up. But it's all brown. |
Unfortunately I'm really not sure, like I said I've never actually gotten it to work. If you can create a simple self-contained example using mayavi directly, it might be worth asking over there as there will be a broader audience and you might be more likely to reach someone with the relevant lower-level graphics knowledge. Please report back if you do solve the problem. |
Okay. Well, I still have issues running it locally on my Mac. `In [1]: from surfer import Brain In [2]: brain = Brain("fsaverage", "lh", "inflated") ImportError Traceback (most recent call last) /Users/Maxwell/anaconda2/lib/python2.7/site-packages/surfer/viz.pyc in init(self, subject_id, hemi, surf, curv, title, cortex, size, background, foreground, figure, subjects_dir, views, show_toolbar, offscreen, config_opts) /Users/Maxwell/anaconda2/lib/python2.7/site-packages/surfer/viz.pyc in _make_viewer(figure, n_row, n_col, title, scene_size, offscreen) /Users/Maxwell/anaconda2/lib/python2.7/site-packages/mayavi/tools/figure.pyc in figure(figure, bgcolor, fgcolor, engine, size) /Users/Maxwell/anaconda2/lib/python2.7/site-packages/mayavi/tools/engine_manager.pyc in get_engine(self) /Users/Maxwell/anaconda2/lib/python2.7/site-packages/mayavi/tools/engine_manager.pyc in new_engine(self) /Users/Maxwell/anaconda2/lib/python2.7/site-packages/mayavi/tools/engine_manager.pyc in check_backend() ImportError: Could not import backend for traits Make sure that you have either the TraitsBackendWx or the TraitsBackendQt If you performed a source checkout, be sure to run 'python setup.py install' Also make sure that either wxPython or PyQT is installed. |
When I try doing those installs, it totally messes up my other packages. |
okay, I got wxPython to work without totally wrecking my library. However, now I am getting an error while running mri_vol2surf. It claims it failed at the command line, but if I go run it on the command line, it runs fine... The return code is "-6" |
Probably your relevant environment variables aren't set properly in the session where you're running PySurfer? |
hmm how would I check out that / change it? |
|
Okay, what keys should I look at and what should they be set to?
… On Jan 26, 2017, at 5:37 PM, Michael Waskom ***@***.***> wrote:
os.environ
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I don't know because I've never seen that error and I'm not even sure exactly what you're trying to do or how you're doing it. But if something works in one environment and not in another, it might be good to figure out what differs between the environments. However if you can use mri_vol2surf outside of pysurfer then you can just read in the surface files—no need to use project_volume_data (as I assume you are doing). |
Actually, this was a Freesurfer / MacOS issue. One has to disable System_Integrity_Protection. For whatever reason, the permissions are different in ipython than at the command line. Do you know an easier fix than disabling System_Integrity_Protection? Perhaps I could give ipython a different type of access or something? |
I've never heard of that. How are you using ipython if not invoking it from the command line? |
I invoke ipython from the command line. For whatever reason Mac Sierra isn't giving me the same permissions while in an ipython session as on the command line.
… On Jan 27, 2017, at 9:29 AM, Michael Waskom ***@***.***> wrote:
I've never heard of that. How are you using ipython if not invoking it from the command line?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ah, this sort of helpful feature is why I've resisted upgrading from 10.9 |
Right. I guess I will just have to turn it on and off when I want to use pysurfer. It’s not too bad. You just open terminal in recovery mode:
$ csrutil disable
turn it back on:
$ csrutil enable
Thanks for all the help!
… On Jan 27, 2017, at 9:43 AM, Michael Waskom ***@***.***> wrote:
Ah, this sort of helpful feature is why I've resisted upgrading from 10.9
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#171 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFMiVcpp9Bghh-C48G174LqaLKhwovThks5rWizRgaJpZM4LvCZn>.
|
Just to be clear is the issue only when you're using |
Right. Pulling up the viz and everything is fine. It’s just when I make calls (e.g., project_volume_data) that use Freesurfer that it errors. I am guessing that Freesurfer is trying to write somewhere that the OS is not allowing. Now, why it writes fine on the command line but not in ipython is beyond me.
… On Jan 27, 2017, at 10:14 AM, Michael Waskom ***@***.***> wrote:
Just to be clear is the issue only when you're using surfer.project_volume_data?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#171 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFMiVaZ9_5Y0K3SorwKNYCZ56iXWdWqdks5rWjQLgaJpZM4LvCZn>.
|
I don't know how to solve the macos problem but this did make me realize that it is annoying to debug problems with |
I had this problem on OSX, too. The fix that works for me is in #194. Turns out OSX does some silliness with |
Using a fresh install of Anacondas on a 64-bit CentOS linux. I can't get this thing to work.
If I do:
The text was updated successfully, but these errors were encountered: