djsilva99 / heatrapy

Python library for simulating heat transfer processes
https://djsilva99.github.io/heatrapy
MIT License
72 stars 14 forks source link

Upgrade matplotlib usage to latest version #19

Open CoffeeMarten opened 1 year ago

CoffeeMarten commented 1 year ago

Have 3 Windows 11 computers with different Python Installs. In all cases, can't install through pip because matplotlib won't build the wheel with heatrapy. Matplotlib otherwise works.

Any ideas?

Building wheels for collected packages: matplotlib Building wheel for matplotlib (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for matplotlib (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [583 lines of output] .....

  UPDATING build\lib.win-amd64-cpython-311\matplotlib\_version.py
  set build\lib.win-amd64-cpython-311\matplotlib\_version.py to '3.3.4'
  running build_ext
  Extracting freetype-2.6.1.tar.gz
  Building freetype in build\freetype-2.6.1
  msbuild build\freetype-2.6.1\builds\windows\vc2010\freetype.sln /t:Clean;Build /p:Configuration=Release;Platform=x64
  error: command 'msbuild' failed: None
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for matplotlib Failed to build matplotlib ERROR: Could not build wheels for matplotlib, which is required to install pyproject.toml-based projects

CoffeeMarten commented 1 year ago

Update, I installed Anaconda... I normally use native Python and VSCode.

Anyway, the break is from Python 3.9 to 3.10 - installs fine in a Conda environment with Python <=3.9.

mmarras commented 1 year ago

Works for me fine with 3.11.

CoffeeMarten commented 1 year ago

Works for me fine with 3.11.

Are you in Linux or Windows? The issue seems to be widespread can't install Matplotlib311 in Python 3.7+ in Windows... would be nice if package could just use latest version of Matplotlib that has the wheels for newer Python.

mmarras commented 1 year ago

I‘m on Linux 🐧

Eheran1 commented 1 year ago

Same problem here.

      UPDATING build\lib.win-amd64-cpython-310\matplotlib\_version.py
      set build\lib.win-amd64-cpython-310\matplotlib\_version.py to '3.3.4'
      running build_ext
      Extracting freetype-2.6.1.tar.gz
      Building freetype in build\freetype-2.6.1
      msbuild build\freetype-2.6.1\builds\windows\vc2010\freetype.sln /t:Clean;Build /p:Configuration=Release;Platform=x64
      error: command 'msbuild' failed: None
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for matplotlib
  Running setup.py clean for matplotlib
Successfully built heatrapy
Failed to build matplotlib
ERROR: Could not build wheels for matplotlib, which is required to install pyproject.toml-based projects