conda-forge / pygalmesh-feedstock

A conda-smithy repository for pygalmesh.
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

SyntaxError: future feature annotations is not defined #27

Open lucascbarbosa opened 3 years ago

lucascbarbosa commented 3 years ago

I installed pygalmesh 0.9.7 through conda install -c conda-forge pygalmesh (I have a python 3.6 anaconda environment in windows) and when importing pygalmesh, this happens:

Python 3.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) [MSC v.1916 64 bit (AMD64)] on win32 
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygalmesh
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\lucas.barbosa\Documents\GitHub\pygalmesh\pygalmesh\__init__.py", line 24, in <module>
    from . import _cli
  File "C:\Users\lucas.barbosa\Documents\GitHub\pygalmesh\pygalmesh\_cli.py", line 8, in <module>    
    from .main import generate_from_inr, generate_volume_mesh_from_surface_mesh
  File "C:\Users\lucas.barbosa\Documents\GitHub\pygalmesh\pygalmesh\main.py", line 1
    from __future__ import annotations
    ^
SyntaxError: future feature annotations is not defined
nschloe commented 3 years ago

pygalmesh needs Python 3.7.