Somehow I can not run python programme from MNE successfully due to this error, I have already installed pysurfer.
running on linux, python 3.7 installed on linux.
What installation steps did you follow? Currently, we recommend installing mne to a separate conda environment. If you need to use 3d plotting, we have a separate section for that in the installtion instructions.
Hello, it seems I have already installed all packages which needed, however when I tried to install mne-python, it came with:
(py37) [root@i]# conda create --name=mne --channel=conda-forge mne
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: /
then stucked ďź(
when I run my python on linux, it comes with:
File â/www/wwwroot/p.dongyangthu.com/codes/SplcV3.pyâ, line 10, in
from surfer import Brain #ç¨äşĺŻč§ĺ大čçŽĺąčĄ¨é˘çä¸çť´ç˝ć źä¸çťĺść°ćŽ
ImportError: cannot import name âBrainâ from âsurferâ (/opt/miniconda3/envs/py37/lib/python3.7/site-packages/surfer/init.py)
and packages I installed:
^C(py37) [root@xxx]# conda create --name=mne channel=conda-forge mne
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
when python -c âimport mne; mne.sys_info()â
ERROR:root:1:
2022-02-10 14:14:33.162 ( 6.105s) [ 71FD41C0] vtkShaderProgram.cxx:453 ERR| vtkShaderProgram (0x558b1926c800): 0:31(22): error: syntax error, unexpected NEW_IDENTIFIER, expecting â{â
ERROR:root:error: syntax error, unexpected NEW_IDENTIFIER, expecting â{â
2022-02-10 14:14:33.162 ( 6.105s) [ 71FD41C0]vtkOpenGLVertexArrayObj:265 ERR| vtkOpenGLVertexArrayObject (0x558b1931d680): attempt to add attribute without a program for attribute ndCoordIn
ERROR:root:attempt to add attribute without a program for attribute ndCoordIn
2022-02-10 14:14:33.163 ( 6.105s) [ 71FD41C0]vtkOpenGLQuadHelper.cxx:62 WARN| Error binding ndCoords to VAO.
2022-02-10 14:14:33.163 ( 6.105s) [ 71FD41C0]vtkOpenGLRenderWindow.c:1102 ERR| vtkXOpenGLRenderWindow (0x558b186bed80): Couldnât build the shader program for resolving msaa.
ERROR:root:Couldnât build the shader program for resolving msaa.
Platform: Linux-5.10.60-9.al8.x86_64-x86_64-with-centos-3-Soaring_Falcon
Python: 3.7.11 (default, Jul 27 2021, 14:32:16) [GCC 7.5.0]
Executable: /opt/miniconda3/envs/py37/bin/python
CPU: x86_64: 2 cores
Memory: 3.6 GB
mne: 0.24.1
numpy: 1.21.5 {blas=openblas, lapack=openblas}
scipy: 1.7.3
matplotlib: 2.2.2 {backend=TkAgg}
sklearn: 1.0.2
numba: 0.55.1
nibabel: 3.2.1
nilearn: 0.9.0
dipy: 1.4.1
cupy: Not found
pandas: 1.3.5
mayavi: 4.7.4
pyvista: 0.33.2 {OpenGL 3.1 Mesa 20.3.3 via llvmpipe (LLVM 11.0.0, 256 bits)}
pyvistaqt: 0.7.0
ipyvtklink: 0.2.2
vtk: 9.1.0
PyQt5: 5.15.4
ipympl: 0.8.7
mne_qt_browser: 0.1.7
pooch: v1.6.0
QLibraryPrivate::unload succeeded on â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.soâ
QLibraryPrivate::unload succeeded on â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.soâ
QLibraryPrivate::unload succeeded on âXcursorâ (faked)
dont know how to solve :(((((
Pinging @richard as he may know what is wrong.
@CliffordTHU, so you manage to create the mne env in the end, right? Do you activate this environment (conda activate mne
) before you try the mne.sys_info() command?
Judging from the output it seems you did not activate the mne environment as the executable is /opt/miniconda3/envs/py37/bin/python
.
yes,which shows:
[root@xxx ~]# conda activate mne
Could not find conda environment: mne
You can list all discoverable environments with conda info --envs
.
[root@xxx ~]# conda info --envs
conda environments:
base * /opt/miniconda3
py37 /opt/miniconda3/envs/py37
@CliffordTHU Ok, so you couldnât install the mne environment, right? Did it take too long (you previously said that conda was stuck on solving environment) or did you get some conflict errors?
sorry I iddnt understand, I need to install mne environment first then run my python programme, is it right?
Then how can I install mne environment? Is it installed in linux system but not python?
â(py37) [root@i]# conda create --name=mne --channel=conda-forge mneâ
It truly takes a long time but succeed at last.
(py37) [root@xxx ~]# conda create --name=mne --channel=conda-forge mne
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
ok, make sure you accept the installation (user input like y
(from âyesâ) may be required). Then activate mne:
conda activate mne
and only then see if things work.
Still
(py37) [root@xxx~]# conda create --name=mne --channel=conda-forge mne
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: - (py37) [root@xxx ~]# conda activate mne
Could not find conda environment: mne
You can list all discoverable environments with conda info --envs
.
Youâd have to write exactly what happens setp by step - currently it is difficult to know what is wrong, as it seems you copy only parts of the console messages. Did you get any warnings or errors when trying to install?
steps:
1ăI installed python3.7 and pip those packages, and the list:
Platform: Linux-5.10.60-9.al8.x86_64-x86_64-with-centos-3-Soaring_Falcon
Python: 3.7.11 (default, Jul 27 2021, 14:32:16) [GCC 7.5.0]
Executable: /opt/miniconda3/envs/py37/bin/python
CPU: x86_64: 2 cores
Memory: 3.6 GB
mne: 0.24.1
numpy: 1.21.5 {blas=openblas, lapack=openblas}
scipy: 1.7.3
matplotlib: 2.2.2 {backend=TkAgg}
sklearn: 1.0.2
numba: 0.55.1
nibabel: 3.2.1
nilearn: 0.9.0
dipy: 1.4.1
cupy: Not found
pandas: 1.3.5
mayavi: 4.7.4
pyvista: 0.33.2 {OpenGL 3.1 Mesa 20.3.3 via llvmpipe (LLVM 11.0.0, 256 bits)}
pyvistaqt: 0.7.0
ipyvtklink: 0.2.2
vtk: 9.1.0
PyQt5: 5.15.4
ipympl: 0.8.7
mne_qt_browser: 0.1.7
pooch: v1.6.0
QLibraryPrivate::unload succeeded on â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.soâ
QLibraryPrivate::unload succeeded on â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.soâ
QLibraryPrivate::unload succeeded on âXcursorâ (faked)
when I run 'python -c âimport mne; mne.sys_info()â, it will comes with some errors, and I will put it on next comment
2ăI installed mne-python by â(py37) [root@xxx~]# conda create --name=mne --channel=conda-forge mneâ, and it shows âCollecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): doneâ
3ăI run my programme and shows cannot import brain from surfer
You donât have to complete the step 1 you describe, you only need anaconda or miniconda, to be able to perfrom step 2. However, your description of step 2 is incomplete. The installation didnât even begin in your description of step 2. There should be another âSolving environmentâ (hopefully successful) information and then a list of packages that will be installed that you would have to accept by pressing âyâ. Then there would be progress bars as the packages are downloaded and finally everything would be installed.
Maybe you close the console / command prompt too soon and donât allow the installation to progress?
Sorry, this account is a new account which means I can only comment 13 messages per day,
actually this is all I got:
(There do have some errors at last)
(py37) [root@xxx ~]# conda create --name=mne --channel=conda-forge mne
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: - (py37) [root@xxx~]# conda activate mne
Could not find conda environment: mne
You can list all discoverable environments with conda info --envs
.
(py37) [root@ixxx~]# conda info --envs
conda environments:
base /opt/miniconda3
py37 * /opt/miniconda3/envs/py37
(py37) [root@ixxx~]# python -c âimport mne; mne.sys_info()â
QFactoryLoader::QFactoryLoader() checking directory path â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platformsâ âŚ
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqeglfs.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqeglfs.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3â,
âMetaDataâ: {
âKeysâ: [
âeglfsâ
]
},
âarchreqâ: 0,
âclassNameâ: âQEglFSIntegrationPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âeglfsâ)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqlinuxfb.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3â,
âMetaDataâ: {
âKeysâ: [
âlinuxfbâ
]
},
âarchreqâ: 0,
âclassNameâ: âQLinuxFbIntegrationPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âlinuxfbâ)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqminimal.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqminimal.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3â,
âMetaDataâ: {
âKeysâ: [
âminimalâ
]
},
âarchreqâ: 0,
âclassNameâ: âQMinimalIntegrationPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âminimalâ)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqminimalegl.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqminimalegl.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3â,
âMetaDataâ: {
âKeysâ: [
âminimaleglâ
]
},
âarchreqâ: 0,
âclassNameâ: âQMinimalEglIntegrationPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âminimaleglâ)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqoffscreen.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqoffscreen.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3â,
âMetaDataâ: {
âKeysâ: [
âoffscreenâ
]
},
âarchreqâ: 0,
âclassNameâ: âQOffscreenIntegrationPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âoffscreenâ)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqvnc.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqvnc.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3â,
âMetaDataâ: {
âKeysâ: [
âvncâ
]
},
âarchreqâ: 0,
âclassNameâ: âQVncIntegrationPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âvncâ)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-egl.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-egl.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3â,
âMetaDataâ: {
âKeysâ: [
âwayland-eglâ
]
},
âarchreqâ: 0,
âclassNameâ: âQWaylandEglPlatformIntegrationPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âwayland-eglâ)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-generic.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-generic.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3â,
âMetaDataâ: {
âKeysâ: [
âwaylandâ
]
},
âarchreqâ: 0,
âclassNameâ: âQWaylandIntegrationPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âwaylandâ)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-egl.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-egl.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3â,
âMetaDataâ: {
âKeysâ: [
âwayland-xcomposite-eglâ
]
},
âarchreqâ: 0,
âclassNameâ: âQWaylandXCompositeEglPlatformIntegrationPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âwayland-xcomposite-eglâ)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-glx.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwayland-xcomposite-glx.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3â,
âMetaDataâ: {
âKeysâ: [
âwayland-xcomposite-glxâ
]
},
âarchreqâ: 0,
âclassNameâ: âQWaylandXCompositeGlxPlatformIntegrationPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âwayland-xcomposite-glxâ)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwebgl.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqwebgl.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3â,
âMetaDataâ: {
âKeysâ: [
âwebglâ
]
},
âarchreqâ: 0,
âclassNameâ: âQWebGLIntegrationPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âwebglâ)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3â,
âMetaDataâ: {
âKeysâ: [
âxcbâ
]
},
âarchreqâ: 0,
âclassNameâ: âQXcbIntegrationPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âxcbâ)
QFactoryLoader::QFactoryLoader() checking directory path â/opt/miniconda3/envs/py37/bin/platformsâ âŚ
loaded library â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.soâ
loaded library âXcursorâ
QFactoryLoader::QFactoryLoader() checking directory path â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platformthemesâ âŚ
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platformthemes/libqgtk3.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platformthemes/libqgtk3.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1â,
âMetaDataâ: {
âKeysâ: [
âgtk3â
]
},
âarchreqâ: 0,
âclassNameâ: âQGtk3ThemePluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âgtk3â)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platformthemes/libqxdgdesktopportal.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platformthemes/libqxdgdesktopportal.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1â,
âMetaDataâ: {
âKeysâ: [
âxdgdesktopportalâ,
âflatpakâ,
âsnapâ
]
},
âarchreqâ: 0,
âclassNameâ: âQXdgDesktopPortalThemePluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âxdgdesktopportalâ, âflatpakâ, âsnapâ)
QFactoryLoader::QFactoryLoader() checking directory path â/opt/miniconda3/envs/py37/bin/platformthemesâ âŚ
QFactoryLoader::QFactoryLoader() checking directory path â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforminputcontextsâ âŚ
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1â,
âMetaDataâ: {
âKeysâ: [
âcomposeâ,
âximâ
]
},
âarchreqâ: 0,
âclassNameâ: âQComposePlatformInputContextPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âcomposeâ, âximâ)
QFactoryLoader::QFactoryLoader() looking at â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.soâ
Found metadata in lib /opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so, metadata=
{
âIIDâ: âorg.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1â,
âMetaDataâ: {
âKeysâ: [
âibusâ
]
},
âarchreqâ: 0,
âclassNameâ: âQIbusPlatformInputContextPluginâ,
âdebugâ: false,
âversionâ: 331520
}
Got keys from plugin meta data (âibusâ)
QFactoryLoader::QFactoryLoader() checking directory path â/opt/miniconda3/envs/py37/bin/platforminputcontextsâ âŚ
loaded library â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.soâ
QFactoryLoader::QFactoryLoader() checking directory path â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/stylesâ âŚ
QFactoryLoader::QFactoryLoader() checking directory path â/opt/miniconda3/envs/py37/bin/stylesâ âŚ
/opt/miniconda3/envs/py37/lib/python3.7/site-packages/traits/etsconfig/etsconfig.py:412: UserWarning: Environment variable âHOMEâ not set, setting home directory to /tmp
% (environment_variable, parent_directory)
2022-02-10 22:36:46.627 ( 9.244s) [ 427A31C0] vtkShaderProgram.cxx:452 ERR| vtkShaderProgram (0x55f4c762be90): 1:
2: #version 140
3: #ifdef GL_ES
4: #ifdef GL_FRAGMENT_PRECISION_HIGH
5: precision highp float;
6: precision highp sampler2D;
7: precision highp sampler3D;
8: #else
9: precision mediump float;
10: precision mediump sampler2D;
11: precision mediump sampler3D;
12: #endif
13: #define texelFetchBuffer texelFetch
14: #define texture1D texture
15: #define texture2D texture
16: #define texture3D texture
17: #else // GL_ES
18: #define highp
19: #define mediump
20: #define lowp
21: #if VERSION == 150
22: #define texelFetchBuffer texelFetch
23: #define texture1D texture
24: #define texture2D texture
25: #define texture3D texture
26: #endif
27: #endif // GL_ES
28: #define varying in
29:
30: in vec2 texCoord;
31: uniform sampler2DMS tex;
32: uniform int samplecount;
33: out vec4 fragOutput0;
34:
35:
36: void main()
37: {
38: float gamma = 2.2;
39:
40: // for each sample in the multi sample bufferâŚ
41: ivec2 itexcoords = ivec2(floor(textureSize(tex) * texCoord));
42: vec3 accumulate = vec3(0.0,0.0,0.0);
43: float alpha = 0.0;
44:
45: for (int i = 0; i < samplecount; i++)
46: {
47: vec4 sample = texelFetch(tex, itexcoords, i);
48: // apply gamma correction and sum
49: accumulate += pow(sample.rgb, vec3(gamma));
50: alpha += sample.a;
51: }
52:
53: // divide and reverse gamma correction
54: accumulate /= float(samplecount);
55: fragOutput0 = vec4(pow(accumulate, vec3(1.0/gamma)), alpha/float(samplecount));
56: }
57:
ERROR:root:1:
2022-02-10 22:36:46.628 ( 9.245s) [ 427A31C0] vtkShaderProgram.cxx:453 ERR| vtkShaderProgram (0x55f4c762be90): 0:31(22): error: syntax error, unexpected NEW_IDENTIFIER, expecting â{â
ERROR:root:error: syntax error, unexpected NEW_IDENTIFIER, expecting â{â
2022-02-10 22:36:46.629 ( 9.245s) [ 427A31C0]vtkOpenGLVertexArrayObj:265 ERR| vtkOpenGLVertexArrayObject (0x55f4c76f6b70): attempt to add attribute without a program for attribute ndCoordIn
ERROR:root:attempt to add attribute without a program for attribute ndCoordIn
2022-02-10 22:36:46.629 ( 9.246s) [ 427A31C0]vtkOpenGLQuadHelper.cxx:62 WARN| Error binding ndCoords to VAO.
2022-02-10 22:36:46.629 ( 9.246s) [ 427A31C0]vtkOpenGLRenderWindow.c:1102 ERR| vtkXOpenGLRenderWindow (0x55f4c6a7efe0): Couldnât build the shader program for resolving msaa.
ERROR:root:Couldnât build the shader program for resolving msaa.
Platform: Linux-5.10.60-9.al8.x86_64-x86_64-with-centos-3-Soaring_Falcon
Python: 3.7.11 (default, Jul 27 2021, 14:32:16) [GCC 7.5.0]
Executable: /opt/miniconda3/envs/py37/bin/python
CPU: x86_64: 2 cores
Memory: 3.6 GB
mne: 0.24.1
numpy: 1.21.5 {blas=openblas, lapack=openblas}
scipy: 1.7.3
matplotlib: 2.2.2 {backend=TkAgg}
sklearn: 1.0.2
numba: 0.55.1
nibabel: 3.2.1
nilearn: 0.9.0
dipy: 1.4.1
cupy: Not found
pandas: 1.3.5
mayavi: 4.7.4
pyvista: 0.33.2 {OpenGL 3.1 Mesa 20.3.3 via llvmpipe (LLVM 11.0.0, 256 bits)}
pyvistaqt: 0.7.0
ipyvtklink: 0.2.2
vtk: 9.1.0
PyQt5: 5.15.4
ipympl: 0.8.7
mne_qt_browser: 0.1.7
pooch: v1.6.0
QLibraryPrivate::unload succeeded on â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.soâ
QLibraryPrivate::unload succeeded on â/opt/miniconda3/envs/py37/lib/python3.7/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.soâ
QLibraryPrivate::unload succeeded on âXcursorâ (faked)
To clarify, in case my previous instructions were confusing:
- the python command (trying to show
mne.sys_info()
) you are using is evaluated in your py27 environment where you seem to have some dependency conflict. You could try fixing that conflict (maybe updating pysurfer would be enough), but my suggestion was to make sure that you are able to install a new mne environment along the installation instructions in the docs - installing that environment does not seem to work, as new
mne
conda env is not created and the conda install progress that you paste seems to stop at some point. Because this point is recommended in the docs it would be good to know why it fails for you
To make it clearer how installation should work, a copy from just a part of installation progress for a new mne env I created today (last one got tangled in dependency conflicts). This is not exactly the same command as the one you should be running but the output should be similar:
(base) C:\src>conda env create --file environment.yml --name mnedev
Collecting package metadata (repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.10.3
latest version: 4.11.0
Please update conda by running
$ conda update -n base -c defaults conda
Downloading and Extracting Packages
charls-2.2.0 | 93 KB | ############################################################################ | 100%
jbig-2.1 | 45 KB | ############################################################################ | 100%
libtiff-4.3.0 | 1.1 MB | ############################################################################ | 100%
numba-0.53.1 | 3.7 MB | ############################################################################ | 100%
pyvistaqt-0.7.0 | 166 KB | ############################################################################ | 100%
nomkl-1.0 | 4 KB | ############################################################################ | 100%
libopenblas-0.3.18 | 5.5 MB | ############################################################################ | 100%
utfcpp-3.2.1 | 11 KB | ############################################################################ | 100%
libwebp-base-1.2.2 | 393 KB | ############################################################################ | 100%
pydicom-2.2.2 | 1.4 MB | ############################################################################ | 100%
tifffile-2022.2.9 | 140 KB | ############################################################################ | 100%
h5py-3.3.0 | 1.1 MB | ############################################################################ | 100%
deprecated-1.2.13 | 12 KB | ############################################################################ | 100%
importlib_metadata-4 | 4 KB | ############################################################################ | 100%
nibabel-3.2.2 | 2.7 MB | ############################################################################ | 100%
xorg-libxau-1.0.9 | 57 KB | ############################################################################ | 100%
mffpy-0.7.0 | 87 KB | ############################################################################ | 100%
win32_setctime-1.1.0 | 7 KB | ############################################################################ | 100%
zstd-1.5.2 | 1010 KB | ############################################################################ | 100%
threadpoolctl-3.1.0 | 18 KB | ############################################################################ | 100%
tbb-devel-2020.2 | 2.3 MB | ############################################################################ | 100%
pthread-stubs-0.4 | 6 KB | ############################################################################ | 100%
pyreadline-2.1 | 147 KB | ############################################################################ | 100%
gl2ps-1.4.2 | 74 KB | ############################################################################ | 100%
and so it goes - multiple packages are installed into the new environement.
Thatâs why I wanted to investigate what exactly happens in your case:
- whether conda install command hangs and you have to close it (close the console or kill the process by ctrl+c for example)
- or maybe the command print exactly what you paste and then silently returns you controle of the console without installing the mne evironment (that would be surprising)
- or maybe something else happens, an error is displayed for example (but Iâm not referring to any errors later on - you get an error later because the mne env is not present, it cannot be activated and the python code is not evaluated in a new mne env)?
I tried to install 2d mne-python and it succeed, somehow 3d can not install:
(py37) [root@xxx ~]# conda update -n base -c defaults conda
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
(py37) [root@xxx ~]# conda info --envs
# conda environments:
#
base /opt/miniconda3
new_environment_name /opt/miniconda3/envs/new_environment_name
py37 * /opt/miniconda3/envs/py37