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

Unoserver installation on Windows #153

Open
SimonAnnetts opened this issue Dec 13, 2024 · 0 comments
Open

Unoserver installation on Windows #153

SimonAnnetts opened this issue Dec 13, 2024 · 0 comments

Comments

@SimonAnnetts
Copy link

Hi,

I know that Unoserver on Windows is not yet fully tested.

I'm having issues just getting it to run at all!

I've installed unoserver.exe unoconvert.exe and unocompare.exe into the main LibreOffice folder in C:\Program Files\LibreOffice\program

LibreOffice version is 24.8.3.2

I've tried installing the unoserver library files into all these locations:

C:\Program Files\LibreOffice\program\site-packages\unoserver
C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\unoserver
C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\site-packages\unoserver

I always get the following error when running unoserver.exe

Traceback (most recent call last):
  File "C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\site-packages\unoserver\converter.py", line 2, in <module>
    import uno
ModuleNotFoundError: No module named 'uno'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\LibreOffice\program\unoserver.exe\__main__.py", line 4, in <module>
  File "C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\site-packages\unoserver\server.py", line 21, in <module>
    from unoserver import converter, comparer
  File "C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\site-packages\unoserver\converter.py", line 4, in <module>
    raise ImportError(
ImportError: Could not find the 'uno' library. This package must be installed with a Python installation that has a 'uno' library. This typically means you should install it with the same Python executable as your Libreoffice installation uses.

and a slightly different error running unoconvert.exe

Traceback (most recent call last):
  File "C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\LibreOffice\program\unoconvert.exe\__main__.py", line 4, in <module>
  File "C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\site-packages\unoserver\client.py", line 10, in <module>
    __version__ = metadata.version("unoserver")
  File "C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\importlib\metadata.py", line 569, in version
    return distribution(distribution_name).version
  File "C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\importlib\metadata.py", line 542, in distribution
    return Distribution.from_name(distribution_name)
  File "C:\Program Files\LibreOffice\program\python-core-3.9.20\lib\importlib\metadata.py", line 196, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: unoserver

Any ideas where things should be installed at to get this working properly?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant