xryanglab/RiboCode

Unknown Attribute Error

brendanwee opened this issue · 1 comments

Hi,

I am getting a weird AttributeError with not much description of what's going wrong:

Traceback (most recent call last):
File "/home/bwee/.local/bin/metaplots", line 9, in
load_entry_point('RiboCode==1.2.10', 'console_scripts', 'metaplots')()
File "/home/bwee/.local/lib/python2.7/site-packages/RiboCode/metaplots.py", line 241, in main
meta_analysis(gene_dict,transcript_dict,args)
File "/home/bwee/.local/lib/python2.7/site-packages/RiboCode/metaplots.py", line 227, in meta_analysis
distancePlot(distance_to_start_count,distance_to_stop_count,pre_psite_dict,length_counter,args.outname + sampleName)
File "/home/bwee/.local/lib/python2.7/site-packages/RiboCode/metaplots.py", line 108, in distancePlot
with PdfPages(outname + ".pdf") as pdf:
AttributeError: exit

Could someone help me understand what's going wrong?

Thanks,
Brendan

This is a version issue with matplotlib. context control was implemented in 1.3.1. The server I was running on was before that.
fixed by installing matplotlib 2.1.0
pip install matplotlib==2.1.0 --user