BlueTeaLondon / heroku-buildpack-libreoffice-for-heroku-18

Other
17 stars 29 forks source link

Cached current version will never get updated when a new version of libreoffice is released #5

Open vesatoivonen opened 5 years ago

vesatoivonen commented 5 years ago

When the AppImage url is pointing to the current version (e.g. LibreOffice-fresh.basic-x86_64.AppImage) the image is stuck to the version that was installed initially, since the cache is never cleared. Maybe the cache should be used only if it's recent enough?

sita-prajapati-bullhorn commented 5 years ago

Getting following error File "/app/.apt/usr/bin/unoconv", line 1236, in <module> from com.sun.star.document.UpdateDocMode import QUIET_UPDATE File "/app/.apt/usr/lib/python3/dist-packages/uno.py", line 428, in _uno_import ImportError: No module named 'com' (or 'com.sun.star.document.UpdateDocMode.QUIET_UPDATE' is unknown)

geomic commented 5 years ago

@sita-prajapati-bullhorn what is your setup, and version of LibreOffice-fresh defined?

Is your issue related to this Github issue?

And finally, can you confirm you are indeed trying an AppImage version of LibreOffice 6.X? E.g. http://libreoffice.soluzioniopen.com/stable/fresh/LibreOffice-6.2.5.en-GB-x86_64.AppImage ?

sita-prajapati-bullhorn commented 5 years ago

I'm trying to use unocovn to convert files to PDF and which required libre office. It's not working in heroku server 18.Which python version is required? In python3.7 ,it didn't find dist packages

On Mon, 22 Jul 2019, 20:00 Georgios Michalakidis, notifications@github.com wrote:

@sita-prajapati-bullhorn https://github.com/sita-prajapati-bullhorn what is your setup, and version of LibreOffice-fresh defined?

Is your issue related to this Github issue?

And finally, can you confirm you are indeed trying an AppImage version of LibreOffice 6.X? E.g. http://libreoffice.soluzioniopen.com/stable/fresh/LibreOffice-6.2.5.en-GB-x86_64.AppImage ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BlueTeaLondon/heroku-buildpack-libreoffice-for-heroku-18/issues/5?email_source=notifications&email_token=AKMDWAMNNATZ6XWDAO3KDADQAXAA3A5CNFSM4GQZWYPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2QDOIY#issuecomment-513816355, or mute the thread https://github.com/notifications/unsubscribe-auth/AKMDWAM55TZ6ZRZCGGGGSM3QAXAA3ANCNFSM4GQZWYPA .

geomic commented 5 years ago

I'm trying to use unocovn to convert files to PDF and which required libre office. It's not working in heroku server 18.Which python version is required? In python3.7 ,it didn't find dist packages

@sita-prajapati-bullhorn there might be bit of confusion here. Are you following the instructions in README.md precisely, in a RoR project, with the contents specified in Aptfile only and the buildpacks added per the instructions? This repo is a solution specifically for issues in the way recent non-AppImage versions of LibreOffice refuse to work on heroku-18 (can you confirm also as above you are using LibreOffice 6.X and an AppImage distribution only).

alexandre-paroissien commented 5 years ago

As @vesatoivonen I also noticed libreoffice version is not updated when a new version is released. But not sure how the script can handle it, timestamp of the app image could be used, and then if it is the same minor version it would overwrite the installation?

And if it is a new minor version, it would install the new version along the previous one, but I guess the user still has to perform the manual step of pointing to the new version with UNO_PATH for example

So for anyone wondering, here is the solution I used to manually update libreoffice version:

heroku plugins:install heroku-repo
heroku repo:purge_cache -a appname
git commit --allow-empty -m "Purge cache"
git push heroku master

Source: https://help.heroku.com/18PI5RSY/how-do-i-clear-the-build-cache

Also if you are using Unoconv, do not forget to change the environment variable to the new version UNO_PATH = /app/vendor/libreoffice/opt/libreoffice6.3

@geomic Maybe this could be included in the README on how to update libreoffice version

vesatoivonen commented 5 years ago

Currently the easiest way to (manually) handle updates is to use an LibreOfficeAppImage and pin the version down with an url pointing to some specific version of libreoffice.