question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gdspy installation problem

See original GitHub issue

Hello 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:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tvt173commented, Jun 11, 2021

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:

Try this conda install -c conda-forge gdspy … <#m_-2209797029475538080_> On Fri, Jun 11, 2021, 11:19 AM Cheng Guo @.***> wrote: here is the download page for miniconda: https://docs.conda.io/en/latest/miniconda.html Thanks for the help, I didn’t know the difference between conda install and pip install. I tried to run conda install gdspy. Here is the error I got. (py27env) C:\Users\87490\OneDrive - University of Texas at Arlington\1-Research\1-E-beam\gdsCAD_learn_11102020\Spiral_waveguide>conda install gdspy Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. PackagesNotFoundError: The following packages are not available from current channels: - gdspy Current channels: - https://repo.anaconda.com/pkgs/main/win-64 - https://repo.anaconda.com/pkgs/main/noarch - https://repo.anaconda.com/pkgs/r/win-64 - https://repo.anaconda.com/pkgs/r/noarch - https://repo.anaconda.com/pkgs/msys2/win-64 - https://repo.anaconda.com/pkgs/msys2/noarch To search for alternate channels that may provide the conda package you’re looking for, navigate to https://anaconda.org and use the search bar at the top of the page. β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub <#184 (comment) https://github.com/heitzmann/gdspy/issues/184#issuecomment-859212885>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXNUOSEBK6B5UETPN3W6DTTSFXCHANCNFSM46PVEQNA .

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

(py27env) C:\Users\87490\OneDrive - University of Texas at Arlington\1-Research\2-Technology\E-beam\gdsCAD_learn_11102020\Spiral_waveguide>conda install -c conda-forge gdspy

Collecting package metadata (current_repodata.json): done

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.

Collecting package metadata (repodata.json): done

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

Solving environment: -

Found conflicts! Looking for incompatible packages.

This can take several minutes. Press CTRL-C to abort.

Examining @/win-64::__win==0=0: 80%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ | 4/5 [00:01<00:00, 3.17it/s]\failed

UnsatisfiableError: The following specifications were found

to be incompatible with the existing python installation in your environment:

Specifications:

  • gdspy -> python[version=β€˜>=3.6,❀️.7.0a0|>=3.7,❀️.8.0a0|>=3.8,❀️.9.0a0|>=3.9,❀️.10.0a0’]

Your python: python=2.7

If python is on the left-most side of the chain, that’s the version you’ve asked for.

When python appears to the right, that indicates that the thing on the left is somehow

not available for the python version you are constrained to. Note that conda will not

change your python version to a different minor version unless you explicitly specify

that.

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/heitzmann/gdspy/issues/184#issuecomment-859219784, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXNUOVTT6O53CJJFWV4G23TSFZPLANCNFSM46PVEQNA .

0reactions
gxyutacommented, Jun 11, 2021

Try this conda install -c conda-forge gdspy … On Fri, Jun 11, 2021, 11:19 AM Cheng Guo @.***> wrote: here is the download page for miniconda: https://docs.conda.io/en/latest/miniconda.html Thanks for the help, I didn’t know the difference between conda install and pip install. I tried to run conda install gdspy. Here is the error I got. (py27env) C:\Users\87490\OneDrive - University of Texas at Arlington\1-Research\1-E-beam\gdsCAD_learn_11102020\Spiral_waveguide>conda install gdspy Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. PackagesNotFoundError: The following packages are not available from current channels: - gdspy Current channels: - https://repo.anaconda.com/pkgs/main/win-64 - https://repo.anaconda.com/pkgs/main/noarch - https://repo.anaconda.com/pkgs/r/win-64 - https://repo.anaconda.com/pkgs/r/noarch - https://repo.anaconda.com/pkgs/msys2/win-64 - https://repo.anaconda.com/pkgs/msys2/noarch To search for alternate channels that may provide the conda package you’re looking for, navigate to https://anaconda.org and use the search bar at the top of the page. β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub <#184 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXNUOSEBK6B5UETPN3W6DTTSFXCHANCNFSM46PVEQNA .

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

(py27env) C:\Users\87490\OneDrive - University of Texas at Arlington\1-Research\2-Technology\E-beam\gdsCAD_learn_11102020\Spiral_waveguide>conda install -c conda-forge gdspy
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: -
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
Examining @/win-64::__win==0=0:  80%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œ          | 4/5 [00:01<00:00,  3.17it/s]\failed

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - gdspy -> python[version='>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.8,<3.9.0a0|>=3.9,<3.10.0a0']

Your python: python=2.7

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found