Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shapereco.py:121: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
- rotMat = numpy.matrix( [[1,-1],[1,1]] )/numpy.sqrt(2)
- shapereco.py:122: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
- unrotMat = numpy.matrix( [[1,1],[-1,1]] )/numpy.sqrt(2)
- shapereco.py:2022: DeprecationWarning: Effect.affect is now `Effect.run()`. The `output` argument has changed.
- e.affect()
- shapereco.py:1274: DeprecationWarning: Effect.selected is now a dict in the svg. Use `self.svg.selected`.
- for id, node in self.selected.items():
- paths:[<Element {http://www.w3.org/2000/svg}path at 0x37165180>, <Element {http://www.w3.org/2000/svg}path at 0x371650e0>]
- parsedSVGCommands = m 139.09524,31.75 c -38.89694,-1.852235 -19.9356,-2.528515 -88.446431,18.142857 -5.394341,1.627603 -11.59918,3.159688 -15.119049,7.559524 -1.888958,2.361197 6.25021,1.088184 9.07143,0 15.040991,-5.801527 29.542348,-12.973211 43.845236,-20.410715 4.652079,-2.41908 8.656431,-5.925359 12.851194,-9.071427 0.85526,-0.641448 2.81789,-3.184585 2.26785,-2.267858 -2.04986,3.416438 -4.976234,6.286921 -6.803565,9.827379 -2.70949,5.249635 -5.870562,13.879642 -6.803573,20.410715 -0.178181,1.247259 0,2.519841 0,3.779763 0,0.251984 -0.251698,0.767938 0,0.755952 15.191238,-0.723392 28.788278,-1.550498 39.309528,-16.630951 8.68685,-12.451167 -7.21372,-27.781463 -17.38691,-30.994049 -9.37755,-2.9613326 -9.07143,0.295408 -9.07143,7.559524 0,4.787698 -1.07264,9.697102 0,14.363095 7.96344,34.640943 3.25083,46.782783 27.21429,60.47619 10.18937,5.822501 1.17675,-0.755952 4.53571,-0.755952 1.96806,0 -3.14408,2.388135 -4.53571,3.779761 -0.76888,0.768884 -2.25493,4.522782 -3.02381,5.291662 -0.17818,0.17819 -0.8856,0.21608 -0.75595,0 0.83013,-1.38355 2.01587,-2.51984 3.02381,-3.779756
- shapereco.py:1892: DeprecationWarning: simplepath.parsePath -> element.path.to_arrays()
- strPath = simplepath.parsePath(str(parsedSVGCommands))
- strPath = [['M', [139.09524, 31.75]], ['C', [100.19829999999999, 29.897765, 119.15964, 29.221485, 50.648808999999986, 49.892857]], ['C', [45.25446799999999, 51.52046, 39.04962899999998, 53.052545, 35.52975999999998, 57.452381]], ['C', [33.64080199999998, 59.813578, 41.779969999999985, 58.540565, 44.60118999999998, 57.452381]], ['C', [59.64218099999998, 51.650854, 74.14353799999998, 44.47917, 88.44642599999997, 37.041666000000006]], ['C', [93.09850499999997, 34.622586000000005, 97.10285699999997, 31.116307000000006, 101.29761999999997, 27.970239000000007]], ['C', [102.15287999999997, 27.328791000000006, 104.11550999999997, 24.785654000000008, 103.56546999999996, 25.702381000000006]], ['C', [101.51560999999997, 29.118819000000006, 98.58923599999996, 31.989302000000006, 96.76190499999996, 35.52976000000001]], ['C', [94.05241499999995, 40.77939500000001, 90.89134299999995, 49.409402000000014, 89.95833199999996, 55.940475000000006]], ['C', [89.78015099999996, 57.187734000000006, 89.95833199999996, 58.460316000000006, 89.95833199999996, 59.72023800000001]], ['C', [89.95833199999996, 59.97222200000001, 89.70663399999995, 60.48817600000001, 89.95833199999996, 60.47619000000001]], ['C', [105.14956999999995, 59.75279800000001, 118.74660999999995, 58.92569200000001, 129.26785999999996, 43.84523900000001]], ['C', [137.95470999999995, 31.39407200000001, 122.05413999999996, 16.063776000000008, 111.88094999999996, 12.851190000000006]], ['C', [102.50339999999996, 9.889857400000006, 102.80951999999996, 13.146598000000006, 102.80951999999996, 20.410714000000006]], ['C', [102.80951999999996, 25.198412000000005, 101.73687999999996, 30.107816000000007, 102.80951999999996, 34.77380900000001]], ['C', [110.77295999999997, 69.41475200000001, 106.06034999999996, 81.55659200000001, 130.02380999999997, 95.249999]], ['C', [140.21317999999997, 101.0725, 131.20055999999997, 94.49404700000001, 134.55951999999996, 94.49404700000001]], ['C', [136.52757999999997, 94.49404700000001, 131.41543999999996, 96.88218200000001, 130.02380999999997, 98.273808]], ['C', [129.25492999999997, 99.042692, 127.76887999999997, 102.79659000000001, 126.99999999999997, 103.56547]], ['C', [126.82181999999997, 103.74366, 126.11439999999997, 103.78155000000001, 126.24404999999997, 103.56547]], ['C', [127.07417999999997, 102.18192, 128.25991999999997, 101.04563, 129.26785999999998, 99.785714]]]
- shapereco.py:375: PendingDeprecationWarning: the matrix subclass is not the recommended way to represent matrices or deal with linear algebra (see https://docs.scipy.org/doc/numpy/user/numpy-for-matlab-users.html). Please adjust your code to use regular ndarray.
- m = numpy.matrix( (nu, nv) )
- g:[<__main__.Segment object at 0x000000003715fd00>, <__main__.Segment object at 0x000000003715f670>, <__main__.Path object at 0x000000003715f460>, <__main__.Segment object at 0x000000003715f6a0>, <__main__.Path object at 0x000000003715f490>, <__main__.Segment object at 0x000000003715f550>, <__main__.Segment object at 0x000000003715f520>]
- parsedSVGCommands = m 52.160714,74.083332 c -1.259922,1.511906 -3.124753,2.679854 -3.779763,4.535715 -0.926322,2.624582 -0.67165,5.533496 -0.755952,8.315476 -0.167912,5.541108 -0.409519,11.102448 0,16.630947 1.808417,24.41362 3.928925,33.86291 16.630952,57.45239 3.227784,5.99445 8.328046,10.78645 12.851191,15.875 1.543436,1.73636 3.07785,3.83131 5.291666,4.53571 25.250242,8.03417 40.353042,-20.4527 52.160712,-36.28571 2.49357,-3.34366 4.13561,-7.33162 5.29167,-11.33929 6.21152,-21.53327 8.69097,-21.55209 3.77976,-36.285714 -0.35636,-1.069078 -0.63194,-2.319837 -1.5119,-3.023809 -1.75994,-1.407948 -3.83464,-2.596742 -6.04762,-3.023809 C 123.82481,89.106855 111.45366,85.07772 99.02976,86.178571 90.720158,86.914865 83.270483,92.10197 76.35119,96.761905 61.677745,106.64402 53.397372,122.76392 52.160714,140.60714 c -2.127197,30.69241 3.343754,58.05795 24.190476,80.13095 3.810331,4.03447 7.887679,8.10158 12.851191,10.58333 4.918834,2.45942 18.123859,3.54045 23.434519,0 6.15622,-4.10414 15.97023,-20.27468 18.14286,-26.45833 1.42979,-4.0694 1.03558,-8.5643 1.5119,-12.85119 0.0278,-0.25044 0,-1.00793 0,-0.75595 0,4.57876 -10.43713,17.21025 -10.58333,17.3869 -5.44398,6.57814 -13.84773,14.15695 -21.922616,17.38691 -3.308715,1.32348 -7.047259,1.06989 -10.583333,1.5119 -1.719337,0.21492 -10.456863,2.58404 -12.095239,-1.5119 -0.655093,-1.63773 0,-3.52778 0,-5.29167
- strPath = [['M', [52.160714, 74.083332]], ['C', [50.900791999999996, 75.595238, 49.035961, 76.763186, 48.380950999999996, 78.619047]], ['C', [47.454629, 81.243629, 47.709300999999996, 84.152543, 47.624998999999995, 86.934523]], ['C', [47.457086999999994, 92.47563099999999, 47.21547999999999, 98.036971, 47.624998999999995, 103.56547]], ['C', [49.433415999999994, 127.97909000000001, 51.553923999999995, 137.42838, 64.255951, 161.01786]], ['C', [67.483735, 167.01231, 72.583997, 171.80431000000002, 77.107142, 176.89286]], ['C', [78.650578, 178.62922, 80.184992, 180.72417000000002, 82.398808, 181.42857]], ['C', [107.64905, 189.46274, 122.75185, 160.97587000000001, 134.55952, 145.14286]], ['C', [137.05309, 141.7992, 138.69513, 137.81124000000003, 139.85119, 133.80357]], ['C', [146.06271, 112.2703, 148.54216, 112.25148000000002, 143.63095, 97.51785600000001]], ['C', [143.27459000000002, 96.448778, 142.99901000000003, 95.198019, 142.11905000000002, 94.49404700000001]], ['C', [140.35911000000002, 93.086099, 138.28441, 91.897305, 136.07143000000002, 91.47023800000001]], ['C', [123.82481, 89.106855, 111.45366, 85.07772, 99.02976, 86.178571]], ['C', [90.720158, 86.914865, 83.270483, 92.10197, 76.35119, 96.761905]], ['C', [61.677745, 106.64402, 53.397372, 122.76392, 52.160714, 140.60714]], ['C', [50.033516999999996, 171.29954999999998, 55.504467999999996, 198.66509, 76.35119, 220.73809]], ['C', [80.16152100000001, 224.77256, 84.23886900000001, 228.83967, 89.202381, 231.32142]], ['C', [94.121215, 233.78083999999998, 107.32624, 234.86186999999998, 112.6369, 231.32142]], ['C', [118.79312, 227.21728, 128.60712999999998, 211.04674, 130.77976, 204.86309]], ['C', [132.20955, 200.79369, 131.81534000000002, 196.29879, 132.29166, 192.0119]], ['C', [132.31946000000002, 191.76146, 132.29166, 191.00397, 132.29166, 191.25594999999998]], ['C', [132.29166, 195.83470999999997, 121.85453000000001, 208.4662, 121.70833, 208.64284999999998]], ['C', [116.26435000000001, 215.22098999999997, 107.8606, 222.79979999999998, 99.785714, 226.02975999999998]], ['C', [96.47699899999999, 227.35323999999997, 92.738455, 227.09964999999997, 89.202381, 227.54165999999998]], ['C', [87.483044, 227.75657999999999, 78.745518, 230.12569999999997, 77.10714200000001, 226.02975999999998]], ['C', [76.45204900000002, 224.39202999999998, 77.10714200000001, 222.50197999999997, 77.10714200000001, 220.73808999999997]]]
- g:[<__main__.Path object at 0x0000000037164640>, <__main__.Segment object at 0x000000003715f820>, <__main__.Path object at 0x0000000037164670>, <__main__.Segment object at 0x0000000003acb160>, <__main__.Path object at 0x00000000371646a0>, <__main__.Segment object at 0x0000000003acbd30>, <__main__.Path object at 0x00000000371646d0>, <__main__.Segment object at 0x0000000037164550>, <__main__.Path object at 0x0000000037164730>]
- analyzedNodes:[<__main__.PathGroup object at 0x000000003715f850>, <__main__.PathGroup object at 0x000000003715f2b0>]
- shapes:[<__main__.PathGroup object at 0x000000003715f850>, <__main__.PathGroup object at 0x000000003715f2b0>]
- k:[['M', [138.8316590338515, 30.67547774536698]], ['L', [75.43387298138384, 46.22699343276663]]]:<class 'list'>
- k:M:<class 'str'>
- k:[138.8316590338515, 30.67547774536698]:<class 'list'>
- k:L:<class 'str'>
- k:[75.43387298138384, 46.22699343276663]:<class 'list'>
- k:[['L', [101.29761999999997, 27.970239000000007]]]:<class 'list'>
- k:L:<class 'str'>
- k:[101.29761999999997, 27.970239000000007]:<class 'list'>
- k:[['L', [103.56546999999996, 25.702381000000006]]]:<class 'list'>
- k:L:<class 'str'>
- k:[103.56546999999996, 25.702381000000006]:<class 'list'>
- k:[['L', [89.95833199999996, 55.940475000000006]]]:<class 'list'>
- k:L:<class 'str'>
- k:[89.95833199999996, 55.940475000000006]:<class 'list'>
- k:[['L', [89.95833199999996, 59.72023800000001]], ['L', [89.95833199999996, 60.47619000000001]], ['L', [129.26785999999996, 43.84523900000001]], ['L', [111.88094999999996, 12.851190000000006]], ['L', [102.80951999999996, 20.410714000000006]]]:<class 'list'>
- k:L:<class 'str'>
- k:[89.95833199999996, 59.72023800000001]:<class 'list'>
- k:L:<class 'str'>
- k:[89.95833199999996, 60.47619000000001]:<class 'list'>
- k:L:<class 'str'>
- k:[129.26785999999996, 43.84523900000001]:<class 'list'>
- k:L:<class 'str'>
- k:[111.88094999999996, 12.851190000000006]:<class 'list'>
- k:L:<class 'str'>
- k:[102.80951999999996, 20.410714000000006]:<class 'list'>
- k:[['L', [132.3125383945371, 94.94613747956087]]]:<class 'list'>
- k:L:<class 'str'>
- k:[132.3125383945371, 94.94613747956087]:<class 'list'>
- k:[['L', [129.17066964615907, 99.72177290989137]]]:<class 'list'>
- k:L:<class 'str'>
- k:[129.17066964615907, 99.72177290989137]:<class 'list'>
- [[['M', [138.8316590338515, 30.67547774536698]], ['L', [75.43387298138384, 46.22699343276663]]], [['L', [101.29761999999997, 27.970239000000007]]], [['L', [103.56546999999996, 25.702381000000006]]], [['L', [89.95833199999996, 55.940475000000006]]], [['L', [89.95833199999996, 59.72023800000001]], ['L', [89.95833199999996, 60.47619000000001]], ['L', [129.26785999999996, 43.84523900000001]], ['L', [111.88094999999996, 12.851190000000006]], ['L', [102.80951999999996, 20.410714000000006]]], [['L', [132.3125383945371, 94.94613747956087]]], [['L', [129.17066964615907, 99.72177290989137]]]]
- Traceback (most recent call last):
- File "shapereco.py", line 2022, in <module>
- e.affect()
- File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\deprecated.py", line 180, in affect
- return self.run(args=args)
- File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\base.py", line 123, in run
- self.save_raw(self.effect())
- File "shapereco.py", line 1283, in effect
- self.addShapesToDoc( shapes )
- File "shapereco.py", line 2013, in addShapesToDoc
- ele = group.addToNode( group.refNode)
- File "shapereco.py", line 559, in addToNode
- ele = addPath( newList , node)
- File "shapereco.py", line 1081, in addPath
- ele.set('d', str(inkex.paths.Path(newList)))
- File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\paths.py", line 1034, in __init__
- self.append(PathCommand.letter_to_class(item[0])(*item[1]))
- File "C:\Program Files\Inkscape\share\inkscape\extensions\inkex\paths.py", line 109, in letter_to_class
- return PathCommand._letter_to_class[letter]
- TypeError: unhashable type: 'list'
Advertisement
Add Comment
Please, Sign In to add comment