Closed algent-al closed 2 years ago
You need to run SWIG before running setup.py, as described in the README. This generates the "swigged" files that setup.py compiles.
Oh, I should have run python3 developer/build_swig.py system
. Now it is compiling.
Thank you!
Is having to run SWIG a big hassle for packaging? If there's anything I can do to make a packager's job easier I would welcome suggestions.
I haven't included the SWIG generated files in the GitHub repository as they're quite large and not really source files. If I added them people would not need to run SWIG at all.
Is having to run SWIG a big hassle for packaging?
I think it is fine as it is.
This page is for reporting problems with the Python interface to libgphoto2. If your question is about using libgphoto2 you should ask on the gphoto2 mailing list.
Your system What version of Python are you using? python3 version: 3.9.9
What version of libgphoto2 have you installed? libgphoto2 v2.5.28
How have you installed (or attempted to install) python-gphoto2? Packaging in Solus.
Your problem Please describe what you are trying to do and what goes wrong. A short Python script that shows the problem may be useful. I get this error:
Usig swig version 4.0.2