#57777 closed defect (duplicate)
py37-graph-tool throws syntax error on import
Reported by: | ssllmit (ss) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.5.4 |
Keywords: | Cc: | mamoll (Mark Moll) | |
Port: | py37-graph-tool |
Description
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)
Change History (3)
comment:1 Changed 6 years ago by mamoll (Mark Moll)
comment:2 Changed 6 years ago by jmroot (Joshua Root)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:3 Changed 6 years ago by ssllmit (ss)
Oops py37-graph-tool @2.27_1+clang70+openmp
. Thought I had done a selfupdate. I'll try again… Thanks!
Note: See
TracTickets for help on using
tickets.
This should have been fixed in version 2.27_2. Which version of py37-graph-tool do you have installed?