camUrban / PteraSoftware

Ptera Software is a fast, easy-to-use, and open-source software package for analyzing flapping-wing flight.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workaround to Issue Installing WebP Package

camUrban opened this issue · comments

As pointed out by @RaphZufferey via email, installing Ptera Software's WebP dependency can be problematic on Windows. @RaphZufferey came up with the following useful workaround:

  1. Download Visual Studio 2022 Community. Before installing, check the box to also install "Desktop development with C++" tools. The default installation options are okay.
  2. Run pip install conan in the local Windows Terminal.
  3. Run conan profile update "settings.compiler=Visual Studio" default in the local Windows Terminal.
  4. Run conan profile update "settings.compiler.version=14" default in the local Windows Terminal.
  5. If downloading the package via PyPI, run pip install pterasoftware in the local Windows Terminal. If you've forked or cloned the repository, instead run pip install -r requirments.txt.

This procedure worked for me while running PteraSoftware-2.0.0 on Windows 11.

I'll open a new issue on the WebP package's repository to see if this process can be automated during the package's installation.

Thank you to @anibali, who released a new version (v0.1.4) of pywebp that fixes this issue! I've updated the requirements.txt file to require using versions >= v0.1.4 in the new "trim" feature branch I'm working on. I will merge this feature into a new release of Ptera Software within a few days.