firstCoords = path_strings[0][2:len(path_strings[0]-2)]


TypeError: unsupported operand type(s) for -: 'str' and 'int'



In [5]:


In [5]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

['M 42.747922,234.82329 42.682532,236.74529 38.681515,238.20797 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 36.014265,232.47454 41.293683,233.24852 42.313625,233.92126 Z', 'M 38.237749,231.91673 37.036463,235.20849 35.374055,237.64002 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 33.942926,231.03797 36.549649,229.60697 37.770043,230.17948 Z']


In [6]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

['M 42.747922,234.82329 42.682532,236.74529 38.681515,238.20797 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 36.014265,232.47454 41.293683,233.24852 42.313625,233.92126 Z', 'M 38.237749,231.91673 37.036463,235.20849 35.374055,237.64002 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 33.942926,231.03797 36.549649,229.60697 37.770043,230.17948 Z']

38.237749,231.91673 37.036463,235.20849 35.374055,237.64002 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 33.942926,231.03797 36.549649,229.60697 37.770043,230.17948


In [7]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [8]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [9]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

Traceback (most recent call last):


File "<ipython-input-9-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 11, in <module>

firstCoords = path_strings[0][2:len(path_strings[0])-2].split(" ",",")


TypeError: 'str' object cannot be interpreted as an integer



In [10]:


In [10]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [11]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [12]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [13]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [14]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [15]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [16]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [17]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [18]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [19]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [20]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [21]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [22]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [23]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [24]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [25]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [26]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [27]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

Traceback (most recent call last):


File "<ipython-input-27-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 26, in <module>

np.allNos3 = (allNos1*percentage + allNos2*(1-percentage))


TypeError: can't multiply sequence by non-int of type 'float'



In [28]:


In [28]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [29]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [30]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

Traceback (most recent call last):


File "C:\Users\19253\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2963, in run_code

exec(code_obj, self.user_global_ns, self.user_ns)


File "<ipython-input-30-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 27

print allNos1

^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(allNos1)?



In [31]:


In [31]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]


In [32]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-32-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 32, in <module>

for j in range (0,len(allNos3)/2):


TypeError: 'float' object cannot be interpreted as an integer



In [33]:


In [33]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-33-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 32, in <module>

for j in range (0,len(allNos3)/2):


TypeError: 'float' object cannot be interpreted as an integer



In [34]:


In [34]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-34-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 32, in <module>

for j in range (0,int(len(allNos3))/2):


TypeError: 'float' object cannot be interpreted as an integer



In [35]:


In [35]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-35-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 32, in <module>

for j in range (0,int(len(allNos1))/2):


TypeError: 'float' object cannot be interpreted as an integer



In [36]:


In [36]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-36-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 32, in <module>

for j in range (0,int(len(allNos1))/2):


TypeError: 'float' object cannot be interpreted as an integer



In [37]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')ERROR: execution aborted


In [38]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [37]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-37-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 32, in <module>

for j in range (0,int(len(allNos1))/2):


TypeError: 'float' object cannot be interpreted as an integer




In [38]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')ERROR: execution aborted


In [39]: ERROR: execution aborted


In [40]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


In [38]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')



[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-38-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 32, in <module>

for j in range (0,int(len(allNos1))/2):


TypeError: 'float' object cannot be interpreted as an integer




In [39]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')ERROR: execution aborted


In [40]: ERROR: execution aborted


In [41]: ERROR: execution aborted


In [39]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-39-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 32, in <module>

for j in range (0,int(len(allNos1))/2):


TypeError: 'float' object cannot be interpreted as an integer




In [40]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-40-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 32, in <module>

for j in range (0,int(len(allNos1))/2):


TypeError: 'float' object cannot be interpreted as an integer


ERROR: execution aborted


In [41]: ERROR: execution aborted


In [40]:


In [41]: ERROR: execution aborted


In [42]:


In [41]:


In [41]:


In [41]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-41-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 32, in <module>

for j in range (0,int(len(allNos1))/2):


TypeError: 'float' object cannot be interpreted as an integer



In [42]:


In [42]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-42-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 34, in <module>

result = result + str(allNos3[i]) + "," + str(allNos3[i+1]) + " "


IndexError: list index out of range



In [43]:


In [43]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-43-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 34, in <module>

result = result + str(allNos3[i]) + "," + str(allNos3[i+1]) + " "


IndexError: list index out of range



In [44]:


In [44]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Traceback (most recent call last):


File "<ipython-input-44-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 34, in <module>

result = result + str(allNos3[j]) + "," + str(allNos3[j+1]) + " "


IndexError: list index out of range



In [45]:


In [45]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

M 40.4928355,233.37000999999998 39.8594975,235.97689000000003 37.027784999999994,237.923995 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 34.9785955,231.756255 38.921666,231.42774500000002 40.041834,232.05037 Z


In [46]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

[42.747922, 234.82329, 42.682532, 236.74529, 38.681515, 238.20797, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 36.014265, 232.47454, 41.293683, 233.24852, 42.313625, 233.92126]

[38.237749, 231.91673, 37.036463, 235.20849, 35.374055, 237.64002, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 33.942926, 231.03797, 36.549649, 229.60697, 37.770043, 230.17948]

[40.4928355, 233.37000999999998, 39.8594975, 235.97689000000003, 37.027784999999994, 237.923995, 33.16881, 239.31031, 30.649562, 237.45816, 31.558966, 234.2843, 34.9785955, 231.756255, 38.921666, 231.42774500000002, 40.041834, 232.05037]

Final result: M 40.4928355,233.37000999999998 39.8594975,235.97689000000003 37.027784999999994,237.923995 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 34.9785955,231.756255 38.921666,231.42774500000002 40.041834,232.05037 Z


In [47]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

Traceback (most recent call last):


File "<ipython-input-47-800fe01a6a3f>", line 1, in <module>

runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile

execfile(filename, namespace)


File "C:\Users\19253\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)


File "C:/Users/19253/Desktop/SVGReader.py", line 33, in <module>

println("First file: " + path_strings[0])


NameError: name 'println' is not defined



In [48]:


In [48]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

First file: M 42.747922,234.82329 42.682532,236.74529 38.681515,238.20797 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 36.014265,232.47454 41.293683,233.24852 42.313625,233.92126 Z

Second file: M 38.237749,231.91673 37.036463,235.20849 35.374055,237.64002 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 33.942926,231.03797 36.549649,229.60697 37.770043,230.17948 Z

Final result: M 40.4928355,233.37000999999998 39.8594975,235.97689000000003 37.027784999999994,237.923995 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 34.9785955,231.756255 38.921666,231.42774500000002 40.041834,232.05037 Z


In [49]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')

/nFirst file: M 42.747922,234.82329 42.682532,236.74529 38.681515,238.20797 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 36.014265,232.47454 41.293683,233.24852 42.313625,233.92126 Z

/nSecond file: M 38.237749,231.91673 37.036463,235.20849 35.374055,237.64002 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 33.942926,231.03797 36.549649,229.60697 37.770043,230.17948 Z

Final result: M 40.4928355,233.37000999999998 39.8594975,235.97689000000003 37.027784999999994,237.923995 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 34.9785955,231.756255 38.921666,231.42774500000002 40.041834,232.05037 Z


In [50]: runfile('C:/Users/19253/Desktop/SVGReader.py', wdir='C:/Users/19253/Desktop')


First file: M 42.747922,234.82329 42.682532,236.74529 38.681515,238.20797 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 36.014265,232.47454 41.293683,233.24852 42.313625,233.92126 Z


Second file: M 38.237749,231.91673 37.036463,235.20849 35.374055,237.64002 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 33.942926,231.03797 36.549649,229.60697 37.770043,230.17948 Z


Final result: M 40.4928355,233.37000999999998 39.8594975,235.97689000000003 37.027784999999994,237.923995 33.16881,239.31031 30.649562,237.45816 31.558966,234.2843 34.9785955,231.756255 38.921666,231.42774500000002 40.041834,232.05037 Z


In [51]: