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

Issue Installing the mDriveOOo Extension on LibreOffice 25 (Arch Linux) #17

Open
palonza opened this issue Feb 13, 2025 · 4 comments
Open

Comments

@palonza
Copy link

palonza commented Feb 13, 2025

Dear,

I hope this email finds you well.

I am reaching out because I encountered an error while attempting to install the mDriveOOo extension in LibreOffice 25 on Arch Linux. I have ensured that all prerequisites are met, including Python 3.8 and the necessary dependencies.

However, during the installation process, I receive the following error message:

ERROR: Exception occurred: <class 'ImportError'>: No module named 'com' (or 'com.sun.star.ucb.RestDataSourceSyncMode.SYNC_RETRIEVED' is unknown), traceback follows
  File "/usr/lib/libreoffice/program/pythonloader.py", line 147, in writeRegistryInfo
    mod = self.getModuleFromUrl( locationUrl )
  File "/usr/lib/libreoffice/program/pythonloader.py", line 102, in getModuleFromUrl
    exec(codeobject, mod.__dict__)
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/libreoffice/share/uno_packages/cache/uno_packages/lu4764253s1r0.tmp_/mDriveOOo.oxt/service/NamedProvider.py", line 42, in <module>
    from mdrive import ContentProvider
  File "/usr/lib/python3.13/site-packages/uno.py", line 349, in _uno_import
    return _builtin_import(name, *optargs, **kwargs)
  File "/usr/lib/libreoffice/share/uno_packages/cache/uno_packages/lu4764253s1r0.tmp_/mDriveOOo.oxt/service/pythonpath/mdrive/__init__.py", line 30, in <module>
    from .contentprovider import ContentProvider
  File "/usr/lib/python3.13/site-packages/uno.py", line 349, in _uno_import
    return _builtin_import(name, *optargs, **kwargs)
  File "/usr/lib/libreoffice/share/uno_packages/cache/uno_packages/lu4764253s1r0.tmp_/mDriveOOo.oxt/service/pythonpath/mdrive/contentprovider.py", line 45, in <module>
    from .ucp import Identifier
  File "/usr/lib/python3.13/site-packages/uno.py", line 349, in _uno_import
    return _builtin_import(name, *optargs, **kwargs)
  File "/usr/lib/libreoffice/share/uno_packages/cache/uno_packages/lu4764253s1r0.tmp_/mDriveOOo.oxt/service/pythonpath/mdrive/ucp/__init__.py", line 40, in <module>
    from .provider import Provider
  File "/usr/lib/python3.13/site-packages/uno.py", line 349, in _uno_import
    return _builtin_import(name, *optargs, **kwargs)
  File "/usr/lib/libreoffice/share/uno_packages/cache/uno_packages/lu4764253s1r0.tmp_/mDriveOOo.oxt/service/pythonpath/mdrive/ucp/provider.py", line 38, in <module>
    from com.sun.star.ucb.RestDataSourceSyncMode import SYNC_RETRIEVED
  File "/usr/lib/python3.13/site-packages/uno.py", line 428, in _uno_import
    raise uno_import_exc
  File "/usr/lib/python3.13/site-packages/uno.py", line 349, in _uno_import
    return _builtin_import(name, *optargs, **kwargs)

The full traceback suggests that there might be an issue with the UNO bindings or missing modules within LibreOffice’s Python environment. Given that all requirements are fulfilled, I would appreciate any guidance on resolving this issue.

Could you please provide any insight or recommendations to address this problem?

Thank you in advance for your assistance.

Chère équipe d’assistance,

J’espère que ce message vous trouvera en bonne santé.

Je vous contacte car j’ai rencontré une erreur lors de l’installation de l’extension mDriveOOo sur LibreOffice 25 sous Arch Linux. J’ai vérifié que toutes les conditions préalables sont respectées, y compris Python 3.8 et les dépendances nécessaires.

Cependant, au cours du processus d’installation, je reçois le message d’erreur suivant :

Le message d’erreur complet suggère qu’il pourrait y avoir un problème avec les bindings UNO ou des modules manquants dans l’environnement Python de LibreOffice. Étant donné que toutes les conditions requises sont remplies, j’apprécierais toute aide pour résoudre ce problème.

Pourriez-vous me fournir des informations ou recommandations afin de remédier à cette situation ?

Merci d’avance pour votre aide.

Cordialement,

Best regards,

@prrvchr
Copy link
Owner

prrvchr commented Feb 13, 2025

Hi palonza,

From the error messages you have a version of Python 3.13 which is not yet supported (the maximum for now is 3.12).
I need to make some changes to support it.

@prrvchr
Copy link
Owner

prrvchr commented Feb 16, 2025

If you reinstall OAuth2OOo and mDriveOOo with their latest version it should work under Python 3.13.

I could not verify so please confirm.

@palonza
Copy link
Author

palonza commented Feb 20, 2025

Hola palonza,

Según los mensajes de error, tienes una versión de Python 3.13 que aún no es compatible (la máxima por ahora es 3.12 ). Necesito realizar algunos cambios para que sea compatible.

Hi @prrvchr, Thank you very much for your quick reply. You are right about the version of python I am using, unfortunately I cannot change it because it is the one used by my arch operating system and I am afraid of doing so and losing compatibility with my operating system.

@palonza
Copy link
Author

palonza commented Feb 20, 2025

Si reinstala OAuth2OOo y mDriveOOo con su última versión, debería funcionar con Python 3.13.

No pude verificarlo, por favor confirme.

ohhh, sounds good!! let me check!

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

2 participants