joe-jordan / pyvoro

2D and 3D Voronoi tessellations: a python entry point for the voro++ library
Other
107 stars 26 forks source link

Package install failed with errors #23

Open marcohoepner opened 1 year ago

marcohoepner commented 1 year ago

Hi,

i need some help to install the package.

My Python Version ist 3.11.3. During the installation process i got always the following error messages:

Collecting pyvoro Downloading pyvoro-1.3.2.tar.gz (123 kB) ---------------------------------------- 123.5/123.5 kB 3.7 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Building wheels for collected packages: pyvoro Building wheel for pyvoro (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [30 lines of output] C:\Python311\Lib\site-packages\setuptools\dist.py:755: SetuptoolsDeprecationWarning: Invalid dash-separated options !!

          ********************************************************************************
          Usage of dash-separated 'description-file' will not be supported in future
          versions. Please use the underscore name 'description_file' instead.

          By 2023-Sep-26, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.

          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************

  !!
    opt = self.warn_dash_deprecation(opt, section)
  voroplusplus.cpp
  pyvoro/voroplusplus.cpp(678): error C2106: "=": Linker Operand muss ein L-Wert sein
  pyvoro/voroplusplus.cpp(699): error C2106: "=": Linker Operand muss ein L-Wert sein
  pyvoro/voroplusplus.cpp(1184): warning C4244: "=": Konvertierung von "Py_ssize_t" in "int", m”glicher Datenverlust
  pyvoro/voroplusplus.cpp(2571): error C2660: "PyCode_New": Funktion akzeptiert keine 15 Argumente
  C:\Python311\include\cpython/code.h(148): note: Siehe Deklaration von "PyCode_New"
  pyvoro/voroplusplus.cpp(2583): error C2660: "PyCode_New": Funktion akzeptiert keine 15 Argumente
  C:\Python311\include\cpython/code.h(148): note: Siehe Deklaration von "PyCode_New"
  pyvoro/voroplusplus.cpp(3063): warning C4996: 'PyUnicode_GET_SIZE': deprecated in 3.3
  pyvoro/voroplusplus.cpp(3079): warning C4996: 'PyUnicode_GET_SIZE': deprecated in 3.3
  pyvoro/voroplusplus.cpp(3995): error C2660: "PyCode_New": Funktion akzeptiert keine 15 Argumente
  C:\Python311\include\cpython/code.h(148): note: Siehe Deklaration von "PyCode_New"
  pyvoro/voroplusplus.cpp(4041): error C2027: Verwendung des undefinierten Typs "_frame"
  C:\Python311\include\pytypedefs.h(22): note: Siehe Deklaration von "_frame"
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\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 pyvoro Running setup.py clean for pyvoro Failed to build pyvoro ERROR: Could not build wheels for pyvoro, which is required to install pyproject.toml-based projects

Any help is welcome.

Best Regards Marco

Leon-sorrow commented 1 year ago

Hello Macro, sorry to bother you. I've encountered the same question. May I ask have you fixed this problem?:)

tu-maurice commented 1 year ago

It seems this is a compatibility issue with python 3.11. It works with python 3.10 for me.

Leon-sorrow commented 11 months ago

It seems this is a compatibility issue with python 3.11. It works with python 3.10 for me.

Thanks you! I've sovled this problem by downloading Visual Studio Build Tools. Maybe my issue comes from no suitable compiler?