exiv2 installation error

#2 · open · 1 comments

View on GitHub ↗

pribadihcr

Hi, I got the following error when install exiv2 ``` Collecting exiv2 (from -r requirements.txt (line 15)) Using cached exiv2-0.17.0.tar.gz (1.6 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [1 lines of output] ERROR: No SWIG source for libexiv2 version [0, 25, 0] [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel 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. ```

Comments

Neurone

Interesting. What system are you using? I think you don't have the build tools needed to build the libexiv2 library used by exiv2. Just for the sake of a test, can you try installing pyexiv2 with `pip install pyexiv2`? I did some tests with that library before switching to the exiv2 library, so maybe it installed something that make libexiv2 work. If you are using Ubuntu/Debian for example, another test is installing the dev version of the libexiv2, that should contain the source code to build it, with: ```bash sudo apt update sudo apt install libexiv2-dev ``` As a last resort, you can try to install swig, even though the error seems to imply libexiv2 explicitly: ```bash sudo apt install swig ```