anstmichaels / emopt

A suite of tools for optimizing the shape and topology of electromagnetic structures.
BSD 3-Clause "New" or "Revised" License
100 stars 41 forks source link

ImportError: No module named builtins #19

Closed kaipengliuHIT closed 4 years ago

kaipengliuHIT commented 4 years ago

when I import emopt:

Python 2.7.17 (default, Jul 20 2020, 15:37:01) [GCC 7.5.0] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import emopt Traceback (most recent call last): File "", line 1, in File "emopt/init.py", line 2, in from . import adjoint_method, fdfd, fdtd, fomutils, grid, io, misc, modes, optimizer, \ File "emopt/adjoint_method.py", line 153, in from builtins import range ImportError: No module named builtins