| Summary: | [abrt] unoconv-0.4-4.fc15: uno.py:318:_uno_struct__getattr__:AttributeError: ErrCode | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Antonio T. (sagitter) <anto.trande> |
| Component: | unoconv | Assignee: | David Tardon <dtardon> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | anto.trande, bugzilla, caolanm, christopher.svanefalk, cristi.falcas, dag, dtardon, ibelkov, icj, josian2200, phirestalker, sbergman, susi.lehtola |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:b4a67db5696d9f21cc65c958e2073b98df28f7d1 | ||
| Fixed In Version: | unoconv-0.6-1.fc19 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-14 01:12:00 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Is this simply because LibreOffice/OpenOffice.org can't import abiword, i.e. it literally is "The provided document cannot be converted to the desired format." >Is this simply because LibreOffice/OpenOffice.org can't import abiword, i.e. it
>literally is "The provided document cannot be converted to the desired format."
Why ?
Abiword and OpenOffice are both free software.
Moreover, OpenOffice uses standard document format.
(In reply to comment #2) > >Is this simply because LibreOffice/OpenOffice.org can't import abiword, i.e. it > >literally is "The provided document cannot be converted to the desired format." > > Why ? > > Abiword and OpenOffice are both free software. > Moreover, OpenOffice uses standard document format. But Abiword does not :) And LibreOffice cannot import .abw . Of course, both are free software, so we accept patches to LibreOffice to correct the situation :) The only bug there is that unoconv should not crash in such situation. Ok, thank you. The problem appears to be with unoconv. At least the version I found on the net (<http://github.com/dagwieers/unoconv>) has code from com.sun.star.uno import Exception as UnoException [...] except UnoException, e: error("unoconv: UnoException during conversion in %s: %s" % (repr(e.__class__), e.Message)) error("ERROR: The provided document cannot be converted to the desired format. (Error code %s)" % e.ErrCode) exitcode = e.ErrCode that tries to read the value of a non-existing ErrCode member of a com.sun.star.uno.Exception. (A UNO exception type that does have an ErrCode member is com.sun.star.task.ErrorCodeIOException; maybe that was meant instead. Will contact Dag Wieers.) Package: unoconv-0.4-4.fc15 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- Gnome-Documents is unable to handle any OpenOffice/LibreOffice document. Package: unoconv-0.4-4.fc15 Architecture: i686 OS Release: Fedora release 16 (Verne) Comment ----- Trying to open an odt file with gnome-documents as preview Package: unoconv-0.4-4.fc15 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- open a word document in gnome-documents input files is not exist rating: (null) Package: unoconv-0.4-4.fc15 Architecture: x86_64 OS Release: Fedora release 16 (Verne) I ran the command on a file to convert to pdf and I got this error rating: (null) Package: unoconv-0.4-4.fc15 Architecture: x86_64 OS Release: Fedora release 16 (Verne) the file was an odt file by the way, certainly unoconv supports odt files?? Tried to convert from odp to pdf with following command: unoconv --doctype=presentation --format=pdf 01\ Project\ Overview.ppt Package: unoconv-0.4-4.fc15 Architecture: i686 OS Release: Fedora release 16 (Verne) I improved the code to show an ErrCode only when there is one available. I also improved the documentation and manual to give instructions on how to convert to ErrCode to something sensible, hopefully this helps us find when a failing conversion is caused by unoconv or by LibreOffice.
The changes are available from:
http://github.com/dagwieers/unoconv
Feedback is appreciated.
I believe that my errors are caused by libreoffice. I was able to get it to work by opening writer and then running the command again. Somehow it is unable to start libreoffice in the background on its own?? I'd like to learn under what conditions this is the case. Also, if you could do your test again with the latest release from Github, I would appreciate it. I'd like to release this as 0.5. BTW This release also fixes the change in LibreOffice options (where before it was eg. -headless, it now is --headless if you want to avoid warnings). try convert not existed file
[kotofos@kotofos-laptop ~]$ unoconv -f pdf dsf.odt
unoconv: file `dsf.odt' does not exist.
unoconv: UnoException during conversion in <class '__main__.com.sun.star.lang.IllegalArgumentException'>: URL seems to be an unsupported one.
Traceback (most recent call last):
File "/usr/bin/unoconv", line 801, in <module>
main()
File "/usr/bin/unoconv", line 780, in main
convertor.convert(inputfn)
File "/usr/bin/unoconv", line 690, in convert
error("ERROR: The provided document cannot be converted to the desired format. (code: %s)" % e.ErrCode)
File "/usr/lib64/python2.7/site-packages/uno.py", line 318, in _uno_struct__getattr__
return __builtin__.getattr(self.__dict__["value"],name)
AttributeError: ErrCode
Package: unoconv-0.4-4.fc15
OS Release: Fedora release 16 (Verne)
start Writter try convert file [kotofos@kotofos-laptop Documents]$ unoconv -f pdf dropped\ text\ 2.txt Error: Unable to connect or start own listener. Aborting. Package: unoconv-0.4-4.fc15 Architecture: x86_64 OS Release: Fedora release 16 (Verne) *** Bug 709066 has been marked as a duplicate of this bug. *** Could you please try the latest version from Github ? We fixed a load of issues in the upcoming 0.5 release, improving the error output, etc... Fixing 0.4 is no longer an option if 0.5 is around the corner. We just need sufficient testing to make sure we don't have any regressions. version fron git ./unoconv -f pdf WISHLIST1 unoconv: file `WISHLIST1' does not exist. UNO IllegalArgument during import phase: Source file cannot be read. URL seems to be an unsupported one. This message is a reminder that Fedora 16 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 16. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '16'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 16's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 16 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged to click on "Clone This Bug" and open it against that version of Fedora. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed. (In reply to comment #20) > version fron git > ./unoconv -f pdf WISHLIST1 > unoconv: file `WISHLIST1' does not exist. > UNO IllegalArgument during import phase: Source file cannot be read. URL > seems to be an unsupported one. This behavior is seen with unoconv-0.6-1.fc19 now. |
libreport version: 2.0.6 abrt_version: 2.0.4.981 cmdline: /usr/bin/python /usr/bin/unoconv -f odt install.abw comment: Trying to convert .abw file (abiword) to odt file format. executable: /usr/bin/unoconv kernel: 3.0.1-3.fc16.x86_64 reason: uno.py:318:_uno_struct__getattr__:AttributeError: ErrCode time: Sun Oct 23 19:57:03 2011 uid: 1000 username: verne backtrace: :uno.py:318:_uno_struct__getattr__:AttributeError: ErrCode : :Traceback (most recent call last): : File "/usr/bin/unoconv", line 801, in <module> : main() : File "/usr/bin/unoconv", line 780, in main : convertor.convert(inputfn) : File "/usr/bin/unoconv", line 690, in convert : error("ERROR: The provided document cannot be converted to the desired format. (code: %s)" % e.ErrCode) : File "/usr/lib64/python2.7/site-packages/uno.py", line 318, in _uno_struct__getattr__ : return __builtin__.getattr(self.__dict__["value"],name) :AttributeError: ErrCode : :Local variables in innermost frame: :self: File could not be loaded by OpenOffice :name: 'ErrCode'