pyx-project / pyx

Repository of PyX, a Python package for the creation of PostScript, PDF, and SVG files.
https://pyx-project.org/
GNU General Public License v2.0
109 stars 18 forks source link

BoundingBox - ValueError: invalid literal for int() with base 10 #23

Closed xfuren closed 3 years ago

xfuren commented 3 years ago
Traceback (most recent call last):

  File "fig1.py", line 101, in <module>
    c.insert(pyx.epsfile.epsfile(0, 0, "f1a.eps", align="tl"))
  File "/shares/Public/xfr/anaconda3/envs/3.8/lib/python3.8/site-packages/pyx/epsfile.py", line 252, in __init__
    self.mybbox = _readbbox(epsfile)
  File "/shares/Public/xfr/anaconda3/envs/3.8/lib/python3.8/site-packages/pyx/epsfile.py", line 160, in _readbbox
    return bbox.bbox_pt(*list(map(int, values)))
ValueError: invalid literal for int() with base 10: b'90.1279302777778'

Fix: change int() to float()