Skip to content

pandas version #66

@jl939

Description

@jl939

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions