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
libgfortran.so.1 #774
Comments
Hi Kam, 'unfortunately' I did not have such a problem with the standard Linux Python stack / on OS X using Canopy64. For the latter I simply put the library file into the MNE root location you mentioned while I think on OS X everything worked out of the box. My less patient take on this would be to proceed using two shell sessions, one for Python, one for MNE. In the latter l would run shell scripts as proposed here: https://github.com/mne-tools/mne-scripts/tree/master/sample-data, in the former only Pyhton. Btw. you can now also create source spaces from within Python: https://github.com/mne-tools/mne-scripts/tree/master/sample-data Anyways, thanks for reminding me that I wanted to take closer look at Anaconda. |
thanks Kam for the bug report. THis libgfortran.so.1 issue is recurrent and |
@kambysese what's the status here? Can we close? |
no. It's still a recurrent problem. The mne nightly build needs to be fixed |
Hi @dengemann in all honesty I have not revisited this issue on my end since working around it by using different aliases for different environments. |
@kambysese some news on this. while it has been annoying me for some time that the DYLD_LIBRARY_PATH in /Applications/MNE-2.7.4-3378-MacOSX-x86_64/bin/mne_setup_sh I found some time to look into it. cc @agramfort @Eric89GXL |
On Sun, Oct 20, 2013 at 12:44 PM, Denis A. Engemann <
how? detect the installation of brew? |
yes, for example. We could try to detect brew and prompt users to use it to install the dependencies. If on Mac + no brew, default to ship libraries + add warning. |
@agramfort we could do this: https://gist.github.com/dengemann/7086909 elif [ "x$OS" == "xDarwin" ] ; then
set_dyld_path=0
if command_exists brew ; then
brew_loc=$(command -v brew)
echo Brew install detected at: ${brew_loc}
if ! brew list | grep libquicktime &> /dev/null; then
echo '... please consider installing libquicktime';
set_dyld_path=1
fi
if ! brew list | grep gfortran &> /dev/null; then
echo '... please consider installing gfortran';
set_dyld_path=1
fi
else
set_dyld_path=1
fi
if [[ set_dyld_path == 1 ]]; then
echo falling back to shipped libraries
if [ ! "$DYLD_LIBRARY_PATH" ] ; then
DYLD_LIBRARY_PATH=$MNE_LIB_PATH
else
DYLD_LIBRARY_PATH="$MNE_LIB_PATH":"$DYLD_LIBRARY_PATH"
fi
export DYLD_LIBRARY_PATH
echo "${MNE_LIB_PATH} added to DYLD_LIBRARY_PATH"
else
echo using librarries from brew
fi
fi
|
Thanks @dengemann for the heads up. I gather this fix doesn't apply to Linux distributions? |
Hey @kambysese right, you are on Linux, I forgot. You should try to copy the solution strategy, problems should be related / similar. It will probably take another 6 weeks until I take a look at Anaconda on Linux ... |
@kambysese I'm actually quite sure the problem can be tackled using the same kind of approach. Get rid of library paths in you mne setup script and supply the libraries needed yourself. Carefully look at .bashrc / .cshrc lines that modify the PATH. Anaconda should be e.g. first / among the first entries. |
@dengemann I will give it a try and let you guys know what happens. |
@kambysese could you roughly list your system specs. Maybe I'll find some time soonish and we can explore together. |
Thank you @dengemann. Here is some info you asked for: Distributor ID: LinuxMint Environments: |
I know it's a late reply but it still might be useful. I'm on a Linux Mint 16 and has had the same problem on different machines (also opensuse). I fixed it by installing the libgfortran available (for me libgfortran.so.3) and made a symbolic link to it.
i.e. the command is (from memory):
|
yes I know... we need to fix this :-/ it's due to an update to the nightly |
It looks like people have found workable solutions for this, so I'm going to close. |
Encountered the problem again on a recent ubuntu 14.04 + conda install. It used to work. Not sure what happened in between... @MadsJensen 's trick fixed it. |
@kingjr this issue never went away. I've been linking to libgfortran3.so that comes with anaconda. |
We should add something in the FAQ then if we can't fix it. |
Sometime ago I noticed that my installation of MNE-Nightly-Linux-x86_64 was missing libgfortran.so.1 in the $MNE_ROOT/lib directory. I searched the MNE Analysis archives and found an older post by @Eric89GXL that provided a url for downloading the file. Initially I tried the 64bit version of this file that for some reason was incompatible, but I didn't bother trouble shooting it because the 32 bit version worked on my 64 bit system! Next, I started receiving some thorny python errors related to libgfortran.so.1. Apparently, in the ANACONDA environment @dengemann there is already a version of this library file that is used by various packages, and issues arise when mne_setup_sh sets the environment variable LD_LIBRARY_PATH to $MNE_ROOT/lib. After considerable effort I resorted to just creating aliases that either (1) set up the MNE environment OR (2) clear LD_LIBRARY_PATH and allow for ANACONDA python environment to run. In hindsight this is not a optimal fix, because now I have to figure out how to e.g., call mne_create_sourcespace in a shell script from python --there is a conflict since both the python environment and MNE specifically require LD_LIBRARY_PATH and/or libgfortran.so.1 in their "special" way. Has anyone dealt with this? Some insight would be much appreciated.
The text was updated successfully, but these errors were encountered: