svg2data icon indicating copy to clipboard operation
svg2data copied to clipboard

KeyError: 'datapath' during "from svg2data import svg2data"

Open tinix84 opened this issue 3 years ago • 1 comments


KeyError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_102044/517397449.py in ----> 1 from svg2data import svg2data

D:\OneDrive\Work\ICM\QCircle\sandbox\options\svgexport\svg2data\svg2data.py in 8 import os.path 9 from math import sin, cos, tan, pi ---> 10 afm_dir = os.path.join(rcParams['datapath'],'fonts', 'afm') 11 afm_dict = {} 12 for afm_file in os.listdir(afm_dir):

d:\Miniconda3\envs\icm\lib\site-packages\matplotlib_init_.py in getitem(self, key) 672 plt.switch_backend(rcsetup._auto_backend_sentinel) 673 --> 674 return dict.getitem(self, key) 675 676 def repr(self):

KeyError: 'datapath'

tinix84 avatar Aug 24 '22 21:08 tinix84

rcParams['datapath'] has been remove from Matplotlib. This issue has been fixed in PR #6 on the develop branch (https://github.com/peterstangl/svg2data/tree/develop).

peterstangl avatar Aug 26 '22 18:08 peterstangl