Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not install on windows #46

Closed
yangxing844 opened this issue Sep 4, 2023 · 5 comments
Closed

can not install on windows #46

yangxing844 opened this issue Sep 4, 2023 · 5 comments

Comments

@yangxing844
Copy link

here is the log, I don't know what is happening

Collecting pybinding
  Using cached pybinding-0.9.5.tar.gz (1.6 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.12 in c:\users\yx\miniconda3\lib\site-packages (from pybinding) (1.25.2)
Requirement already satisfied: scipy>=0.19 in c:\users\yx\miniconda3\lib\site-packages (from pybinding) (1.11.1)
Requirement already satisfied: matplotlib>=2.0 in c:\users\yx\miniconda3\lib\site-packages (from pybinding) (3.7.1)
Collecting pytest>=5.0 (from pybinding)
  Using cached pytest-7.4.1-py3-none-any.whl (324 kB)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\yx\miniconda3\lib\site-packages (from matplotlib>=2.0->pybinding) (1.0.5)
Requirement already satisfied: cycler>=0.10 in c:\users\yx\miniconda3\lib\site-packages (from matplotlib>=2.0->pybinding) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\yx\miniconda3\lib\site-packages (from matplotlib>=2.0->pybinding) (4.25.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\yx\miniconda3\lib\site-packages (from matplotlib>=2.0->pybinding) (1.4.4)
Requirement already satisfied: packaging>=20.0 in c:\users\yx\miniconda3\lib\site-packages (from matplotlib>=2.0->pybinding) (23.0)
Requirement already satisfied: pillow>=6.2.0 in c:\users\yx\miniconda3\lib\site-packages (from matplotlib>=2.0->pybinding) (9.4.0)
Requirement already satisfied: pyparsing>=2.3.1 in c:\users\yx\miniconda3\lib\site-packages (from matplotlib>=2.0->pybinding) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\yx\miniconda3\lib\site-packages (from matplotlib>=2.0->pybinding) (2.8.2)
Collecting iniconfig (from pytest>=5.0->pybinding)
  Using cached iniconfig-2.0.0-py3-none-any.whl (5.9 kB)
Requirement already satisfied: pluggy<2.0,>=0.12 in c:\users\yx\miniconda3\lib\site-packages (from pytest>=5.0->pybinding) (1.0.0)
Requirement already satisfied: colorama in c:\users\yx\miniconda3\lib\site-packages (from pytest>=5.0->pybinding) (0.4.6)
Requirement already satisfied: six>=1.5 in c:\users\yx\miniconda3\lib\site-packages (from python-dateutil>=2.7->matplotlib>=2.0->pybinding) (1.16.0)
Building wheels for collected packages: pybinding
  Building wheel for pybinding (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [606 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\chebyshev.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\constants.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\greens.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\lattice.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\leads.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\model.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\modifier.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\parallel.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\pltutils.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\results.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\shape.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\solver.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\system.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\__about__.py -> build\lib.win-amd64-cpython-311\pybinding
      copying pybinding\__init__.py -> build\lib.win-amd64-cpython-311\pybinding
      creating build\lib.win-amd64-cpython-311\pybinding\repository
      copying pybinding\repository\examples.py -> build\lib.win-amd64-cpython-311\pybinding\repository
      copying pybinding\repository\group6_tmd.py -> build\lib.win-amd64-cpython-311\pybinding\repository
      copying pybinding\repository\phosphorene.py -> build\lib.win-amd64-cpython-311\pybinding\repository
      copying pybinding\repository\__init__.py -> build\lib.win-amd64-cpython-311\pybinding\repository
      creating build\lib.win-amd64-cpython-311\pybinding\support
      copying pybinding\support\alias.py -> build\lib.win-amd64-cpython-311\pybinding\support
      copying pybinding\support\collections.py -> build\lib.win-amd64-cpython-311\pybinding\support
      copying pybinding\support\deprecated.py -> build\lib.win-amd64-cpython-311\pybinding\support
      copying pybinding\support\fuzzy_set.py -> build\lib.win-amd64-cpython-311\pybinding\support
      copying pybinding\support\inspect.py -> build\lib.win-amd64-cpython-311\pybinding\support
      copying pybinding\support\kwant.py -> build\lib.win-amd64-cpython-311\pybinding\support
      copying pybinding\support\pickle.py -> build\lib.win-amd64-cpython-311\pybinding\support
      copying pybinding\support\structure.py -> build\lib.win-amd64-cpython-311\pybinding\support
      copying pybinding\support\__init__.py -> build\lib.win-amd64-cpython-311\pybinding\support
      creating build\lib.win-amd64-cpython-311\pybinding\utils
      copying pybinding\utils\cpuinfo.py -> build\lib.win-amd64-cpython-311\pybinding\utils
      copying pybinding\utils\misc.py -> build\lib.win-amd64-cpython-311\pybinding\utils
      copying pybinding\utils\progressbar.py -> build\lib.win-amd64-cpython-311\pybinding\utils
      copying pybinding\utils\time.py -> build\lib.win-amd64-cpython-311\pybinding\utils
      copying pybinding\utils\__init__.py -> build\lib.win-amd64-cpython-311\pybinding\utils
      creating build\lib.win-amd64-cpython-311\pybinding\repository\graphene
      copying pybinding\repository\graphene\constants.py -> build\lib.win-amd64-cpython-311\pybinding\repository\graphene
      copying pybinding\repository\graphene\lattice.py -> build\lib.win-amd64-cpython-311\pybinding\repository\graphene
      copying pybinding\repository\graphene\modifiers.py -> build\lib.win-amd64-cpython-311\pybinding\repository\graphene
      copying pybinding\repository\graphene\shape.py -> build\lib.win-amd64-cpython-311\pybinding\repository\graphene
      copying pybinding\repository\graphene\utils.py -> build\lib.win-amd64-cpython-311\pybinding\repository\graphene
      copying pybinding\repository\graphene\__init__.py -> build\lib.win-amd64-cpython-311\pybinding\repository\graphene
      creating build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\conftest.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_kpm.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_kwant.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_lattice.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_leads.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_model.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_modifiers.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_parallel.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_pickle.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_results.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_shape.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_solver.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_system.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\test_wrapper.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      copying tests\__init__.py -> build\lib.win-amd64-cpython-311\pybinding\tests
      running egg_info
      writing pybinding.egg-info\PKG-INFO
      writing dependency_links to pybinding.egg-info\dependency_links.txt
      writing requirements to pybinding.egg-info\requires.txt
      writing top-level names to pybinding.egg-info\top_level.txt
      reading manifest file 'pybinding.egg-info\SOURCES.txt'
      reading manifest template 'setup.manifest'
      no previously-included directories found matching 'cppcore\deps\catch'
      no previously-included directories found matching 'docs\_api'
      no previously-included directories found matching 'tests\failed'
      warning: no previously-included files matching '*.pyc' found anywhere in distribution
      adding license file 'license.md'
      writing manifest file 'pybinding.egg-info\SOURCES.txt'
      C:\Users\yx\miniconda3\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'pybinding.tests.baseline_data.kpm' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'pybinding.tests.baseline_data.kpm' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'pybinding.tests.baseline_data.kpm' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'pybinding.tests.baseline_data.kpm' to be distributed and are
              already explicitly excluding 'pybinding.tests.baseline_data.kpm' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      C:\Users\yx\miniconda3\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'pybinding.tests.baseline_data.lattice' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'pybinding.tests.baseline_data.lattice' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'pybinding.tests.baseline_data.lattice' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'pybinding.tests.baseline_data.lattice' to be distributed and are
              already explicitly excluding 'pybinding.tests.baseline_data.lattice' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      C:\Users\yx\miniconda3\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'pybinding.tests.baseline_data.parallel' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'pybinding.tests.baseline_data.parallel' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'pybinding.tests.baseline_data.parallel' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'pybinding.tests.baseline_data.parallel' to be distributed and are
              already explicitly excluding 'pybinding.tests.baseline_data.parallel' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      C:\Users\yx\miniconda3\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'pybinding.tests.baseline_data.shape' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'pybinding.tests.baseline_data.shape' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'pybinding.tests.baseline_data.shape' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'pybinding.tests.baseline_data.shape' to be distributed and are
              already explicitly excluding 'pybinding.tests.baseline_data.shape' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      C:\Users\yx\miniconda3\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'pybinding.tests.baseline_data.solver' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'pybinding.tests.baseline_data.solver' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'pybinding.tests.baseline_data.solver' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'pybinding.tests.baseline_data.solver' to be distributed and are
              already explicitly excluding 'pybinding.tests.baseline_data.solver' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      C:\Users\yx\miniconda3\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'pybinding.tests.baseline_data.system' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'pybinding.tests.baseline_data.system' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'pybinding.tests.baseline_data.system' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'pybinding.tests.baseline_data.system' to be distributed and are
              already explicitly excluding 'pybinding.tests.baseline_data.system' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      C:\Users\yx\miniconda3\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'pybinding.tests.baseline_plots.results' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'pybinding.tests.baseline_plots.results' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'pybinding.tests.baseline_plots.results' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'pybinding.tests.baseline_plots.results' to be distributed and are
              already explicitly excluding 'pybinding.tests.baseline_plots.results' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      C:\Users\yx\miniconda3\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'pybinding.tests.baseline_plots.system' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'pybinding.tests.baseline_plots.system' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'pybinding.tests.baseline_plots.system' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'pybinding.tests.baseline_plots.system' to be distributed and are
              already explicitly excluding 'pybinding.tests.baseline_plots.system' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      C:\Users\yx\miniconda3\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'pybinding.tests.utils' is absent from the `packages` configuration.
      !!

              ********************************************************************************
              ############################
              # Package would be ignored #
              ############################
              Python recognizes 'pybinding.tests.utils' as an importable package[^1],
              but it is absent from setuptools' `packages` configuration.

              This leads to an ambiguous overall configuration. If you want to distribute this
              package, please make sure that 'pybinding.tests.utils' is explicitly added
              to the `packages` configuration field.

              Alternatively, you can also rely on setuptools' discovery methods
              (for example by using `find_namespace_packages(...)`/`find_namespace:`
              instead of `find_packages(...)`/`find:`).

              You can read more about "package discovery" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

              If you don't want 'pybinding.tests.utils' to be distributed and are
              already explicitly excluding 'pybinding.tests.utils' via
              `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
              you can try to use `exclude_package_data`, or `include-package-data=False` in
              combination with a more fine grained `package-data` configuration.

              You can read more about "package data files" on setuptools documentation page:

              - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


              [^1]: For Python, any directory (with suitable naming) can be imported,
                    even if it does not contain any `.py` files.
                    On the other hand, currently there is no concept of package data
                    directory, all directories are treated like packages.
              ********************************************************************************

      !!
        check.warn(importable)
      copying tests\local.cfg -> build\lib.win-amd64-cpython-311\pybinding\tests
      creating build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data
      creating build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\kpm
      copying tests\baseline_data\kpm\conductivity[graphene-const_potential].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\kpm
      copying tests\baseline_data\kpm\conductivity[graphene-magnetic_field].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\kpm
      copying tests\baseline_data\kpm\dos[graphene-const_potential].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\kpm
      copying tests\baseline_data\kpm\dos[graphene-magnetic_field].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\kpm
      copying tests\baseline_data\kpm\ldos[graphene-const_potential].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\kpm
      copying tests\baseline_data\kpm\ldos[graphene-magnetic_field].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\kpm
      copying tests\baseline_data\kpm\ldos[graphene-pristine-oversized].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\kpm
      copying tests\baseline_data\kpm\ldos[graphene-pristine].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\kpm
      copying tests\baseline_data\kpm\ldos[mos2].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\kpm
      creating build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\lattice
      copying tests\baseline_data\lattice\expected[graphene-bilayer].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\lattice
      copying tests\baseline_data\lattice\expected[graphene-monolayer-4atom].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\lattice
      copying tests\baseline_data\lattice\expected[graphene-monolayer-nn].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\lattice
      copying tests\baseline_data\lattice\expected[graphene-monolayer].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\lattice
      creating build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\parallel
      copying tests\baseline_data\parallel\ndsweep.pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\parallel
      copying tests\baseline_data\parallel\sweep.pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\parallel
      creating build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\shape
      copying tests\baseline_data\shape\freeform.pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\shape
      copying tests\baseline_data\shape\polygon_expected[diamond].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\shape
      copying tests\baseline_data\shape\polygon_expected[pentagon].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\shape
      copying tests\baseline_data\shape\polygon_expected[square].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\shape
      copying tests\baseline_data\shape\polygon_expected[triangle90].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\shape
      copying tests\baseline_data\shape\polygon_expected[triangle].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\shape
      creating build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\solver
      copying tests\baseline_data\solver\dos[arpack-graphene-magnetic_field].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\solver
      copying tests\baseline_data\solver\dos[feast-graphene-magnetic_field].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\solver
      copying tests\baseline_data\solver\eigenvalues[arpack-graphene-magnetic_field].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\solver
      copying tests\baseline_data\solver\eigenvalues[feast-graphene-magnetic_field].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\solver
      copying tests\baseline_data\solver\lapack.pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\solver
      copying tests\baseline_data\solver\spatial_ldos[arpack-graphene-magnetic_field].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\solver
      copying tests\baseline_data\solver\spatial_ldos[feast-graphene-magnetic_field].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\solver
      creating build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\system
      copying tests\baseline_data\system\expected[graphene-bilayer].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\system
      copying tests\baseline_data\system\expected[graphene-monolayer-4atom-periodic-2d].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\system
      copying tests\baseline_data\system\expected[graphene-monolayer-4atom].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\system
      copying tests\baseline_data\system\expected[graphene-monolayer-alt].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\system
      copying tests\baseline_data\system\expected[graphene-monolayer-nn].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\system
      copying tests\baseline_data\system\expected[graphene-monolayer-periodic-1d-alt].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\system
      copying tests\baseline_data\system\expected[graphene-monolayer-periodic-1d].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\system
      copying tests\baseline_data\system\expected[graphene-monolayer-periodic-2d].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\system
      copying tests\baseline_data\system\expected[graphene-monolayer].pbz -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_data\system
      creating build\lib.win-amd64-cpython-311\pybinding\tests\baseline_plots
      creating build\lib.win-amd64-cpython-311\pybinding\tests\baseline_plots\results
      copying tests\baseline_plots\results\structure_map_plot.png -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_plots\results
      creating build\lib.win-amd64-cpython-311\pybinding\tests\baseline_plots\system
      copying tests\baseline_plots\system\system_plot.png -> build\lib.win-amd64-cpython-311\pybinding\tests\baseline_plots\system
      creating build\lib.win-amd64-cpython-311\pybinding\tests\utils
      copying tests\utils\__init__.py -> build\lib.win-amd64-cpython-311\pybinding\tests\utils
      copying tests\utils\compare_figures.py -> build\lib.win-amd64-cpython-311\pybinding\tests\utils
      copying tests\utils\fuzzy_equal.py -> build\lib.win-amd64-cpython-311\pybinding\tests\utils
      copying tests\utils\path.py -> build\lib.win-amd64-cpython-311\pybinding\tests\utils
      running build_ext
      C:\Users\yx\AppData\Local\Temp\pip-install-pf38gbti\pybinding_a46e61d141a041bd978e585bdac3dd21\setup.py:33: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
      -- Building for: NMake Makefiles
      CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.5 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.


      CMake Error at CMakeLists.txt:2 (project):
        Generator

          NMake Makefiles

        does not support platform specification, but platform

          x64

        was specified.


      CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
      -- Configuring incomplete, errors occurred!
      -- Building for: NMake Makefiles
      CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
        Compatibility with CMake < 3.5 will be removed from a future version of
        CMake.

        Update the VERSION argument <min> value or use a ...<max> suffix to tell
        CMake that the project does not need compatibility with older versions.


      CMake Error at CMakeLists.txt:2 (project):
        Generator

          NMake Makefiles

        does not support platform specification, but platform

          x64

        was specified.


      CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
      -- Configuring incomplete, errors occurred!
      Traceback (most recent call last):
        File "C:\Users\yx\AppData\Local\Temp\pip-install-pf38gbti\pybinding_a46e61d141a041bd978e585bdac3dd21\setup.py", line 73, in build_extension
          build()
        File "C:\Users\yx\AppData\Local\Temp\pip-install-pf38gbti\pybinding_a46e61d141a041bd978e585bdac3dd21\setup.py", line 69, in build
          check_call(["cmake", ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
        File "C:\Users\yx\miniconda3\Lib\subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\yx\\AppData\\Local\\Temp\\pip-install-pf38gbti\\pybinding_a46e61d141a041bd978e585bdac3dd21', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\yx\\AppData\\Local\\Temp\\pip-install-pf38gbti\\pybinding_a46e61d141a041bd978e585bdac3dd21\\build\\lib.win-amd64-cpython-311', '-DPYTHON_EXECUTABLE=C:\\Users\\yx\\miniconda3\\python.exe', '-DPB_WERROR=OFF', '-DPB_TESTS=OFF', '-DPB_NATIVE_SIMD=ON', '-DPB_MKL=OFF', '-DPB_CUDA=OFF', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\yx\\AppData\\Local\\Temp\\pip-install-pf38gbti\\pybinding_a46e61d141a041bd978e585bdac3dd21\\build\\lib.win-amd64-cpython-311', '-A', 'x64']' returned non-zero exit status 1.

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\yx\AppData\Local\Temp\pip-install-pf38gbti\pybinding_a46e61d141a041bd978e585bdac3dd21\setup.py", line 100, in <module>
          setup(
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
          dist.run_commands()
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\dist.py", line 1244, in run_command
          super().run_command(command)
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\yx\miniconda3\Lib\site-packages\wheel\bdist_wheel.py", line 325, in run
          self.run_command("build")
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\dist.py", line 1244, in run_command
          super().run_command(command)
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
          self.run_command(cmd_name)
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\dist.py", line 1244, in run_command
          super().run_command(command)
        File "C:\Users\yx\miniconda3\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\yx\AppData\Local\Temp\pip-install-pf38gbti\pybinding_a46e61d141a041bd978e585bdac3dd21\setup.py", line 38, in run
          self.build_extension(ext)
        File "C:\Users\yx\AppData\Local\Temp\pip-install-pf38gbti\pybinding_a46e61d141a041bd978e585bdac3dd21\setup.py", line 76, in build_extension
          build()
        File "C:\Users\yx\AppData\Local\Temp\pip-install-pf38gbti\pybinding_a46e61d141a041bd978e585bdac3dd21\setup.py", line 69, in build
          check_call(["cmake", ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
        File "C:\Users\yx\miniconda3\Lib\subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\yx\\AppData\\Local\\Temp\\pip-install-pf38gbti\\pybinding_a46e61d141a041bd978e585bdac3dd21', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\yx\\AppData\\Local\\Temp\\pip-install-pf38gbti\\pybinding_a46e61d141a041bd978e585bdac3dd21\\build\\lib.win-amd64-cpython-311', '-DPYTHON_EXECUTABLE=C:\\Users\\yx\\miniconda3\\python.exe', '-DPB_WERROR=OFF', '-DPB_TESTS=OFF', '-DPB_NATIVE_SIMD=ON', '-DPB_MKL=OFF', '-DPB_CUDA=OFF', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\yx\\AppData\\Local\\Temp\\pip-install-pf38gbti\\pybinding_a46e61d141a041bd978e585bdac3dd21\\build\\lib.win-amd64-cpython-311', '-A', 'x64']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pybinding
  Running setup.py clean for pybinding
Failed to build pybinding
ERROR: Could not build wheels for pybinding, which is required to install pyproject.toml-based projects
@BertJorissen
Copy link
Collaborator

Hi
there is a known bug on Windows in Pybind11, a subpackage of Pybinding.
When you have the dependencies installed using pip install scipy numpy pytest matplotlib, you can install the new development version using pip install -i https://test.pypi.org/simple/ pybinding.
Please let me know if this worked.
Best
Bert

@yangxing844
Copy link
Author

running above command give the following error
this is on linux using fresh pyenv python 3.11

  error: subprocess-exited-with-error
  
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      Looking in indexes: https://test.pypi.org/simple/
      ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
      ERROR: No matching distribution found for setuptools>=40.8.0
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

@yangxing844
Copy link
Author

hi, I just booted up windows, and the successfully installed pybinding, thank you!, however the linux version still can not be installed

@BertJorissen
Copy link
Collaborator

BertJorissen commented Sep 4, 2023

You also need the 'setuptools' package, from pip install setuptools. This is a temporary issue, as when we push to the main PyPi repo, dependencies are installed automatically.
Best
Bert

@yangxing844
Copy link
Author

thanks that resolved my issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants