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't use pip install iced #124

Open
sunsetprayer1965 opened this issue Nov 20, 2024 · 0 comments
Open

Can't use pip install iced #124

sunsetprayer1965 opened this issue Nov 20, 2024 · 0 comments

Comments

@sunsetprayer1965
Copy link

219: _Warning: Package 'iced.tests' is absent from the packages configuration.
!!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'iced.tests' 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 'iced.tests' 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 'iced.tests' to be distributed and are
          already explicitly excluding 'iced.tests' 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\weilu\AppData\Local\Temp\pip-build-env-esjqlwnb\overlay\Lib\site-packages\setuptools\command\build_py.py:219: _Warning: Package 'iced.utils.tests' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'iced.utils.tests' 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 'iced.utils.tests' 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 'iced.utils.tests' to be distributed and are
          already explicitly excluding 'iced.utils.tests' 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 iced\_filter_.c -> build\lib.win-amd64-cpython-39\iced
  copying iced\_filter_.pyx -> build\lib.win-amd64-cpython-39\iced
  copying iced\normalization\_normalization_.pyx -> build\lib.win-amd64-cpython-39\iced\normalization
  creating build\lib.win-amd64-cpython-39\iced\tests
  copying iced\tests\test_filter.py -> build\lib.win-amd64-cpython-39\iced\tests
  creating build\lib.win-amd64-cpython-39\iced\datasets\data\duan2009
  copying iced\datasets\data\duan2009\duan.SC.10000.raw_sub.bed -> build\lib.win-amd64-cpython-39\iced\datasets\data\duan2009
  copying iced\datasets\data\duan2009\duan.SC.10000.raw_sub.matrix -> build\lib.win-amd64-cpython-39\iced\datasets\data\duan2009
  creating build\lib.win-amd64-cpython-39\iced\datasets\data\servant2018
  copying iced\datasets\data\servant2018\simulation_3.bed -> build\lib.win-amd64-cpython-39\iced\datasets\data\servant2018
  copying iced\datasets\data\servant2018\simulation_3.mat -> build\lib.win-amd64-cpython-39\iced\datasets\data\servant2018
  creating build\lib.win-amd64-cpython-39\iced\datasets\tests
  copying iced\datasets\tests\test_base.py -> build\lib.win-amd64-cpython-39\iced\datasets\tests
  creating build\lib.win-amd64-cpython-39\iced\io\tests
  copying iced\io\tests\test_io.py -> build\lib.win-amd64-cpython-39\iced\io\tests
  copying iced\normalization\_normalization_.c -> build\lib.win-amd64-cpython-39\iced\normalization
  creating build\lib.win-amd64-cpython-39\iced\normalization\tests
  copying iced\normalization\tests\test_ca_utils.py -> build\lib.win-amd64-cpython-39\iced\normalization\tests
  copying iced\normalization\tests\test_normalization.py -> build\lib.win-amd64-cpython-39\iced\normalization\tests
  creating build\lib.win-amd64-cpython-39\iced\random\tests
  copying iced\random\tests\test_init.py -> build\lib.win-amd64-cpython-39\iced\random\tests
  creating build\lib.win-amd64-cpython-39\iced\utils\tests
  copying iced\utils\tests\test_genome.py -> build\lib.win-amd64-cpython-39\iced\utils\tests
  copying iced\utils\tests\test_validation.py -> build\lib.win-amd64-cpython-39\iced\utils\tests
  running build_ext
  building 'iced._filter_' extension
  creating build\temp.win-amd64-cpython-39\Release\iced
  "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\weilu\AppData\Local\Temp\pip-build-env-esjqlwnb\overlay\Lib\site-packages\numpy\_core\include -IC:\Users\weilu\miniconda3\envs\pastis_env\include -IC:\Users\weilu\miniconda3\envs\pastis_env\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tciced/_filter_.c /Fobuild\temp.win-amd64-cpython-39\Release\iced/_filter_.obj
  _filter_.c
  C:\Users\weilu\AppData\Local\Temp\pip-build-env-esjqlwnb\overlay\Lib\site-packages\numpy\_core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
  iced/_filter_.c(3498): error C2039: "subarray": 不是 "_PyArray_Descr" 的成员
  C:\Users\weilu\AppData\Local\Temp\pip-build-env-esjqlwnb\overlay\Lib\site-packages\numpy\_core\include\numpy\ndarraytypes.h(618): note: 参见“_PyArray_Descr”的声明
  iced/_filter_.c(3498): error C2198: “void _Py_INCREF(PyObject *)”: 用于调用的参数太少
  iced/_filter_.c(3499): error C2039: "subarray": 不是 "_PyArray_Descr" 的成员
  C:\Users\weilu\AppData\Local\Temp\pip-build-env-esjqlwnb\overlay\Lib\site-packages\numpy\_core\include\numpy\ndarraytypes.h(618): note: 参见“_PyArray_Descr”的声明
  iced/_filter_.c(4574): warning C4018: “>=”: 有符号/无符号不匹配
  error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for iced
Failed to build iced
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (iced)

I struggle with this problem for three days... How should I solve it? thank you

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

1 participant