-
Notifications
You must be signed in to change notification settings - Fork 374
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
/usr/local/bin/unoconv:19: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives #591
Comments
+1 |
+1 how to solve? |
Having the same problem, but with a slightly different message:
Happens when converting a .docx file to a pdf. For the record: Using Ubuntu 22.04 with the apt-get version of unoconv:
|
+1 |
1 similar comment
+1 |
Maybe you are trying to convert a docx to doc like me, finally i used libreoffice:
libreoffice-writer needed to do that
|
Any solution? |
In Ubuntu 24.04, unoconv provided by APT unoconv package fails to run now due to this: $ which unoconv
/usr/bin/unoconv
$ unoconv
Traceback (most recent call last):
File "/usr/bin/unoconv", line 19, in <module>
from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils' The script at /usr/bin/unoconv has a "crunchbang" line of |
A colleague of mine figured out a workaround that would work. Insert the following line import setuptools.dist before this line in /usr/bin/unoconv: from distutils.version import LooseVersion As you can see, it means running the unoconv script then has a runtime dependency on the |
/usr/local/bin/unoconv:19: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.version import LooseVersion unoconv: Cannot find a suitable office installation on your system. ERROR: Please locate your office installation and send your feedback to: https://github.com/dagwieers/unoconv/issues
The text was updated successfully, but these errors were encountered: