pmneila/PyMCubes

def _build_variable_indices(band: np.ndarray) -> np.ndarray

Li-rr opened this issue · 2 comments

Li-rr commented

Hi, I meet a problem, when i run in ubuntu16.04 python2.7.

import numpy as np
import mcubes
Traceback (most recent call last):
File "", line 1, in
File "/home/stu/.local/lib/python2.7/site-packages/mcubes/init.py", line 4, in
from .smoothing import *
File "/home/stu/.local/lib/python2.7/site-packages/mcubes/smoothing.py", line 22
def _build_variable_indices(band: np.ndarray) -> np.ndarray:
^
SyntaxError: invalid syntax

how can I fix this is?

Li-rr commented

I solve it ,thinks

Hi @Li-rr,

Happy to hear that you solved it. Just for future reference for people that have the same problem, Python 2.7 is not supported anymore. That code should work properly with Python 3.7 or higher.