Dear experts,
I have completed recon-all with no errors. Now I would like to use the 'asegstats2table' command but I've received the error below. I would appreciate any help in solving this problem. I am using FreeSurfer v6.0.0 on a Linux CentOS machine.
[TLA@CogmobCentOS MCI]$ asegstats2table --subjects 201.MR1 202.MR1 203.MR1 --meas volume --tablefile aseg_stats_all.txt 'import site' failed; use -v for traceback Traceback (most recent call last): File "/home/TLA/Desktop/Liz/freesurfer6/bin/asegstats2table", line 4, in <module> import os File "/usr/local/lib/python2.7/os.py", line 398, in <module> import UserDict File "/usr/local/lib/python2.7/UserDict.py", line 84, in <module> _abcoll.MutableMapping.register(IterableUserDict) File "/usr/local/lib/python2.7/abc.py", line 109, in register if issubclass(subclass, cls): File "/usr/local/lib/python2.7/abc.py", line 184, in __subclasscheck__ cls._abc_negative_cache.add(subclass) File "/usr/local/lib/python2.7/_weakrefset.py", line 84, in add self.data.add(ref(item, self._remove)) TypeError: cannot create weak reference to 'classobj' object
Thank you in advance for your help!
Liz
Not sure what the problem is, but it might be something specific to your site (looks like it cannot find the proper libraries to import). Can you run it at all. Eg, if just run the script without any arguments, do you get the same thing? What about if you run it with -h ?
On 07/06/2017 03:33 AM, Elizabeth Dao wrote:
Dear experts,
I have completed recon-all with no errors. Now I would like to use the 'asegstats2table' command but I've received the error below. I would appreciate any help in solving this problem. I am using FreeSurfer v6.0.0 on a Linux CentOS machine.
[TLA@CogmobCentOS MCI]$ asegstats2table --subjects 201.MR1 202.MR1 203.MR1 --meas volume --tablefile aseg_stats_all.txt 'import site' failed; use -v for traceback Traceback (most recent call last): File "/home/TLA/Desktop/Liz/freesurfer6/bin/asegstats2table", line 4, in <module> import os File "/usr/local/lib/python2.7/os.py", line 398, in <module> import UserDict File "/usr/local/lib/python2.7/UserDict.py", line 84, in <module> _abcoll.MutableMapping.register(IterableUserDict) File "/usr/local/lib/python2.7/abc.py", line 109, in register if issubclass(subclass, cls): File "/usr/local/lib/python2.7/abc.py", line 184, in __subclasscheck__ cls._abc_negative_cache.add(subclass) File "/usr/local/lib/python2.7/_weakrefset.py", line 84, in add self.data.add(ref(item, self._remove)) TypeError: cannot create weak reference to 'classobj' object
Thank you in advance for your help!
Liz
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu