Comments (5)
Sorry for the delay, I haven't had the ability to put some additional time into this. If we're running into this again, I'll update the issue. Thanks!
from unoserver.
Same issue here, running on…
- AlmaLinux 9.1 (Lime Lynx)
- LibreOffice 7.1.8.1 10(Build:1)
- Python 3.9.14
unoserver starts without issues:
# unoserver
INFO:unoserver:Starting unoserver.
INFO:unoserver:Command: libreoffice --headless --invisible --nocrashreport --nodefault --nologo --nofirststartwizard --norestore -env:UserInstallation=file:///tmp/tmprvf8kqu5 --accept=socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;StarOffice.ComponentContext
INFO:unoserver:Server PID: 33008
unoconvert doesn't seem to connect to the server at all when trying to convert a file, or at least there is no sign of activity at the unoserver side.
# unoconvert BookmarkService.csv BookmarkService.ods
INFO:unoserver:Starting unoconverter.
INFO:unoserver:Opening BookmarkService.csv
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/unoserver/converter.py", line 173, in convert
import_type = get_doc_type(document)
File "/usr/local/lib/python3.9/site-packages/unoserver/converter.py", line 43, in get_doc_type
if doc.supportsService(t):
AttributeError: 'NoneType' object has no attribute 'supportsService'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/unoconvert", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/unoserver/converter.py", line 276, in main
result = converter.convert(
File "/usr/local/lib/python3.9/site-packages/unoserver/converter.py", line 225, in convert
document.close(True)
AttributeError: 'NoneType' object has no attribute 'close'
Maybe this is actually LibreOffice related?
# libreoffice --headless --convert-to ods BookmarkService.csv
Error: source file could not be loaded
FWIW, unoconv also doesn't work:
# unoconv --verbose --output=BookmarkService.ods BookmarkService.csv
Input file: BookmarkService.csv
unoconv: UnoException during import phase:
The document 'file:///opt/test/BookmarkService.csv' could not be opened.
Anything I can provide to help solving this?
Regards,
Michael
from unoserver.
D'oh… I relied on previously working automatic package installation dependency resolving. Apparently that doesn't work anymore with Alma 9, none of calc, writer etc. were installed, just pyuno & core + some aux packages.
Shortcut to install everything missing was dnf install -y libreoffice-filters
. Now everything works, unoserver/unoconvert & unoconv.
Sorry & regards,
Michael
from unoserver.
Great!
from unoserver.
@mbardelmeijer Does that solve it for you as well?
from unoserver.
Related Issues (20)
- Issue with unoconverter initialization: Binary URP bridge disposed during call on Windows 10 HOT 1
- Error code -11 when converting docx to pdf via unoconvert HOT 7
- Details about concurrent executions of unoconv in the README could be useful HOT 5
- Unoserver PV6 Interface Support HOT 3
- Convert a specific PDF page to a PNG HOT 1
- Unoserver Hangs randomly HOT 3
- unoserver sometimes generates errored PDF files without crashing HOT 3
- Kill LibreOffice? Save a pid file? HOT 2
- Error converting from odt to txt HOT 1
- unoserver crash randomly HOT 4
- Setting PNG export resolution? HOT 4
- Setting page number for PNG export? HOT 1
- How to start service properly? HOT 5
- unable to start UnoServer from python HOT 1
- How to apply filter to export data from xslx to csv keeping utf-8 HOT 1
- Ability to set --infilter HOT 2
- DeprecationWarning Is this slated to be fixed? HOT 2
- Troubleshooting unoconvert Network Connection Error on Ubuntu 22.04 with Python 3.10 and LibreOffice 7.3.7.2 in a Closed Network Environment HOT 7
- Why --uno-interface defaulting to --interface value instead of 127.0.0.1 HOT 2
- The value of --host-location ignored for outfile HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unoserver.