Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up Python bindings issues deprecation warnings #1645

Open
rbeezer opened this issue Oct 7, 2024 · 5 comments
Open

Setting up Python bindings issues deprecation warnings #1645

rbeezer opened this issue Oct 7, 2024 · 5 comments
Labels
help wanted Maintainers want help because they don't have the knowledge or the time, or for another reason needs maintainer Requires action of table (or Python/JS/…) maintainer. If there is no maintainer we need to find one. python An issue concerning the Python bindings

Comments

@rbeezer
Copy link
Contributor

rbeezer commented Oct 7, 2024

Can't see that this has been reported here. Apologies if it is a duplicate or known. Setting up Python bindings issues a few deprecation warnings. My install just now (into a fresh version of Python) seems to be working fine. Python 3.12, Ubuntu 24.04.

Rob

/tmp/liblouis-3.31.0/python# python3 setup.py install
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  self.initialize_options()
/usr/lib/python3/dist-packages/setuptools/dist.py:172: SetuptoolsDeprecationWarning: Invalid config.
!!

        ********************************************************************************
        newlines are not allowed in `summary` and will break in the future
        ********************************************************************************

!!
  write_field('Summary', single_line(summary))
zip_safe flag not set; analyzing archive contents...
@Hrishi-R
Copy link

Hrishi-R commented Oct 31, 2024

Hey Rob,
I just ran into this issue too. Would you mind sharing how you moved past it? I did not have this problem the last time I tried to install it (approx 3 months ago - python 3.12 + Debian). This seems like a new issue.

Thanks!

Edit: I found a workaround. After encountering this error, I ran "pip install louis", and it seemed to have installed it! Source for the workaround: #1114 (comment)

@bertfrees bertfrees added the python An issue concerning the Python bindings label Nov 26, 2024
@egli
Copy link
Member

egli commented Dec 10, 2024

Somebody should sit down and create a proper Python package for liblouis. I thought @BueVest was working on one. Looking at the Python Packaging User Guide it really doesn't seem that hard. What makes it a bit tricky is that you have to make sure the liblouis library is installed. There is a chapter in the guide about Packaging binary extensions which deals with that subject.

I do not have time to work on this but I could help someone to get this done.

@egli egli added help wanted Maintainers want help because they don't have the knowledge or the time, or for another reason needs maintainer Requires action of table (or Python/JS/…) maintainer. If there is no maintainer we need to find one. labels Dec 10, 2024
@bertfrees bertfrees added needs maintainer Requires action of table (or Python/JS/…) maintainer. If there is no maintainer we need to find one. and removed needs maintainer Requires action of table (or Python/JS/…) maintainer. If there is no maintainer we need to find one. labels Dec 10, 2024
@BueVest
Copy link
Contributor

BueVest commented Dec 10, 2024 via email

@egli
Copy link
Member

egli commented Dec 10, 2024

Am I right in assuming that gnulib has been updated?

Yes, gnulib has been updated

@rbeezer
Copy link
Contributor Author

rbeezer commented Dec 11, 2024

Just a note to say that this will greatly simplify matters for PreTeXt authors wishing to produce braille, and for the creation of tactile diagrams with PreFigure, which is integrated into PreTeXt. So thanks very much for the work in this direction.

I have no direct experience with Python packaging, but could troll our PreTeXt dev group to see if anybody would be interested in helping. Let me know if that would be desirable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Maintainers want help because they don't have the knowledge or the time, or for another reason needs maintainer Requires action of table (or Python/JS/…) maintainer. If there is no maintainer we need to find one. python An issue concerning the Python bindings
Projects
None yet
Development

No branches or pull requests

5 participants