gdspy installation problem
See original GitHub issueHello developer, I just tried to install the gdspy in py27 environment. However, I canβt install the package due to lack of visual c++ 9.0 compiler. It is ok to install in py38 environment. I searched whole day for any way to install the 9.0 compiler. However, I didnβt find any useful way. Do you have any experience for this problem. Here is my error information:
(py27env) C:\WINDOWS\system32>pip install gdspy
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting gdspy
Using cached https://files.pythonhosted.org/packages/c9/b6/75106a390f5b755d4f8b9cacbbd008c27443be2635bc988a6728ebca2921/gdspy-1.6.6.zip
Requirement already satisfied: numpy in c:\programdata\anaconda3\envs\py27env\lib\site-packages (from gdspy) (1.16.6)
Requirement already satisfied: future in c:\programdata\anaconda3\envs\py27env\lib\site-packages (from gdspy) (0.18.2)
Building wheels for collected packages: gdspy
Building wheel for gdspy (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\py27env\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\87490\\appdata\\local\\temp\\pip-install-e03oty\\gdspy\\setup.py'"'"'; __file__='"'"'c:\\users\\87490\\appdata\\local\\temp\\pip-install-e03oty\\gdspy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'c:\users\87490\appdata\local\temp\pip-wheel-cihwp4' --python-tag cp27
cwd: c:\users\87490\appdata\local\temp\pip-install-e03oty\gdspy\
Complete output (33 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\gdspy
copying gdspy\curve.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\gdsiiformat.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\hobby.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\label.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\library.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\operation.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\path.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\polygon.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\viewer.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\__init__.py -> build\lib.win-amd64-2.7\gdspy
creating build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\00.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\01.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\02.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\03.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\04.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\05.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\06.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\07.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\08.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\09.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\down.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\outline.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\up.xbm -> build\lib.win-amd64-2.7\gdspy\data
running build_ext
building 'gdspy.clipper' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
----------------------------------------
ERROR: Failed building wheel for gdspy
Running setup.py clean for gdspy
Failed to build gdspy
Installing collected packages: gdspy
Running setup.py install for gdspy ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\envs\py27env\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\87490\\appdata\\local\\temp\\pip-install-e03oty\\gdspy\\setup.py'"'"'; __file__='"'"'c:\\users\\87490\\appdata\\local\\temp\\pip-install-e03oty\\gdspy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\87490\appdata\local\temp\pip-record-b5yhqj\install-record.txt' --single-version-externally-managed --compile
cwd: c:\users\87490\appdata\local\temp\pip-install-e03oty\gdspy\
Complete output (33 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\gdspy
copying gdspy\curve.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\gdsiiformat.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\hobby.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\label.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\library.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\operation.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\path.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\polygon.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\viewer.py -> build\lib.win-amd64-2.7\gdspy
copying gdspy\__init__.py -> build\lib.win-amd64-2.7\gdspy
creating build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\00.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\01.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\02.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\03.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\04.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\05.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\06.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\07.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\08.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\09.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\down.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\outline.xbm -> build\lib.win-amd64-2.7\gdspy\data
copying gdspy\data\up.xbm -> build\lib.win-amd64-2.7\gdspy\data
running build_ext
building 'gdspy.clipper' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\envs\py27env\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\87490\\appdata\\local\\temp\\pip-install-e03oty\\gdspy\\setup.py'"'"'; __file__='"'"'c:\\users\\87490\\appdata\\local\\temp\\pip-install-e03oty\\gdspy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\87490\appdata\local\temp\pip-record-b5yhqj\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
gdspy - PyPI
Gdspy is a Python module for creation and manipulation of GDSII stream files. ... Version 1.1.1 (Jan 27, 2017) * Patch to fix...
Read more >Getting Started β gdspy 1.6.12 documentation
Gdspy follows the modern version of GDSII, but this is an important issue to ... Constructing complex polygons by manually listing all vertices...
Read more >spyder-ide/public - Gitter
When running python I'm no longer able to import gdspy. I keep getting an error message saying that the gdspy module is not...
Read more >gdspy - Bountysource
Sorry for opening this in the issue section, but I know no other way to contact ... Hello developer, I just tried to...
Read more >gdspy Documentation - manpages.ubuntu!
gdspy - gdspy Documentation gdspy is a Python module that allows the ... Gdspy follows the modern version of GDSII, but this is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like only python 3 is supported by the conda package. Youβll either need to upgrade to >3.6 or get it to install via pip/ the binary on python 2.7
On Fri, Jun 11, 2021, 11:39 AM Cheng Guo @.***> wrote:
Sorry, new error:
(base) C:\Users\87490\OneDrive - University of Texas at Arlington\1-Research\2-Technology\E-beam\gdsCAD_learn_11102020\Spiral_waveguide>conda activate py27env