[MacPorts] #57777: py37-graph-tool throws syntax error on import

MacPorts noreply at macports.org
Fri Dec 14 20:53:59 UTC 2018


#57777: py37-graph-tool throws syntax error on import
---------------------+-----------------------------
 Reporter:  ssllmit  |      Owner:  (none)
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.5.4
 Keywords:           |       Port:  py37-graph-tool
---------------------+-----------------------------
 I don't see the issue here, but one cannot import {{{graph_tool.all}}} in
 python37:

 {{{
 import graph_tool.all as gt
 Traceback (most recent call last):

   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/IPython/core/interactiveshell.py", line 2961, in run_code
     exec(code_obj, self.user_global_ns, self.user_ns)

   File "<ipython-input-1-f96fce82bbfd>", line 1, in <module>
     import graph_tool.all as gt

   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/graph_tool/all.py", line 35, in <module>
     from graph_tool.draw import *

   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/graph_tool/draw/__init__.py", line 875, in <module>
     from .cairo_draw import graph_draw, cairo_draw,
 get_hierarchy_control_points, default_cm

   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/graph_tool/draw/cairo_draw.py", line 1491, in <module>
     from .gtk_draw import *

   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/graph_tool/draw/gtk_draw.py", line 1185
     update_layout=True, async=False, no_main=False, **kwargs):
                             ^
 SyntaxError: invalid syntax
 }}}

 Setup:

 {{{
 $ port installed depof:py37-graph-tool
 The following ports are currently installed:
   boost @1.66.0_3+no_single+no_static+python37 (active)
   cairomm @1.12.2_0+x11 (active)
   cgal @4.13_0 (active)
   clang-7.0 @7.0.0_1+analyzer+libstdcxx (active)
   expat @2.2.6_1 (active)
   graphviz @2.40.1_1+pangocairo+x11 (active)
   libomp @7.0.0_0+universal (active)
   pkgconfig @0.29.2_0 (active)
   py37-cairo @1.18.0_0 (active)
   py37-gobject3 @3.28.3_0 (active)
   py37-numpy @1.15.4_0+gfortran (active)
   py37-scipy @1.1.0_1+gfortran (active)
   python37 @3.7.1_0 (active)
   sparsehash @2.0.3_1 (active)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/57777>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list