-
Notifications
You must be signed in to change notification settings - Fork 18
Description
I have encountered this error
AttributeError: module 'pandas.io.formats' has no attribute 'terminal'
when running $~/hande/tools/reblock_hande.py -m fciqmcoutput (my pandas version is 1.0.1).
This problem was resolved by downgrading pandas to 0.22.
The full error message in ipython is
$%pdb
$%run ~/hande/tools/reblock_hande.py -m fciqmcoutput
AttributeError Traceback (most recent call last)
~/hande/tools/reblock_hande.py in parse_args(args)
218 try:
--> 219 cols = pd.util.terminal.get_terminal_size()[0]
220 except AttributeError:
~/anaconda3/lib/python3.7/site-packages/pandas/util/init.py in getattr(name)
15 else:
---> 16 raise AttributeError(f"module 'pandas.util' has no attribute '{name}'")
17
AttributeError: module 'pandas.util' has no attribute 'terminal'
During handling of the above exception, another exception occurred:
AttributeError Traceback (most recent call last)
~/hande/tools/reblock_hande.py in
313 if name == 'main':
314
--> 315 main(sys.argv[1:])
~/hande/tools/reblock_hande.py in main(args)
304 '''
305
--> 306 options = parse_args(args)
307 run_hande_blocking(options.filenames, options.start_iteration,
308 options.end_iteration, options.plotfile,
~/hande/tools/reblock_hande.py in parse_args(args)
220 except AttributeError:
221 # terminal module moved in pandas 0.20
--> 222 cols = pd.io.formats.terminal.get_terminal_size()[0]
223 if not sys.stdout.isatty():
224 cols = -1
AttributeError: module 'pandas.io.formats' has no attribute 'terminal'
/home/new_ljm/hande/tools/reblock_hande.py(222)parse_args()
220 except AttributeError:
221 # terminal module moved in pandas 0.20
--> 222 cols = pd.io.formats.terminal.get_terminal_size()[0]
223 if not sys.stdout.isatty():
224 cols = -1