[MacPorts] #50785: py27-cairosvg: AttributeError: 'module' object has no attribute 'ANTIALIAS_FAST'

MacPorts noreply at macports.org
Mon Aug 1 19:02:50 PDT 2016


#50785: py27-cairosvg: AttributeError: 'module' object has no attribute
'ANTIALIAS_FAST'
----------------------------+--------------------
  Reporter:  darius@…       |      Owner:  sean@…
      Type:  defect         |     Status:  new
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.3.4
Resolution:                 |   Keywords:
      Port:  py27-cairosvg  |
----------------------------+--------------------

Comment (by pavel+ports@…):

 hi,

 have the same error on OS X 10.9.5, Python 2.7.5

 my script:
 {{{
 Traceback (most recent call last):
   File "process.py", line 111, in <module>
     main()
   File "process.py", line 106, in main
     print _draw_graph(result, "%s.svg" % "report1")
   File "process.py", line 43, in _draw_graph
     raise e
 AttributeError: 'module' object has no attribute 'ANTIALIAS_FAST'
 }}}



 {{{
 $ cairosvg -V
 Traceback (most recent call last):
   File "/usr/local/bin/cairosvg", line 24, in <module>
     import cairosvg
   File "/Library/Python/2.7/site-packages/cairosvg/__init__.py", line 27,
 in <module>
     from . import surface
   File "/Library/Python/2.7/site-packages/cairosvg/surface/__init__.py",
 line 47, in <module>
     "optimizeSpeed": cairo.ANTIALIAS_FAST,
 AttributeError: 'module' object has no attribute 'ANTIALIAS_FAST'
 }}}


 {{{
 $ sudo port info cairo | head  -1
 cairo @1.14.6 (graphics)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/50785#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list